* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
    color: #263238;
}

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    padding: 30px 20px;
    background-color: #243447;
    color: white;
    flex-shrink: 0;
}

.sidebar h1 {
    margin: 0 0 35px;
    font-size: 24px;
    line-height: 1.3;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar button {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    background-color: transparent;
    color: white;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
}

.sidebar button:hover {
    background-color: #34495e;
}

.content {
    flex: 1;
    padding: 50px;
}

.content h2 {
    margin-top: 0;
    font-size: 32px;
    color: #243447;
}

.content p {
    font-size: 18px;
    color: #607080;
}
.tool-page {
    width: 100%;
    max-width: 1000px;
}

.tool-heading {
    margin-bottom: 28px;
}

.tool-heading h2 {
    margin-bottom: 10px;
}

.tool-heading p {
    margin: 0;
}

.form-card,
.output-card {
    background-color: white;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.form-card label {
    display: block;
    margin-top: 18px;
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: bold;
    color: #263238;
}

.form-card label:first-child {
    margin-top: 0;
}

.form-card input,
.form-card textarea,
.output-box {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #b8c1ca;
    border-radius: 7px;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.form-card input:focus,
.form-card textarea:focus {
    border-color: #2457a6;
    outline: 2px solid rgba(36, 87, 166, 0.15);
}

.task-box {
    min-height: 70px;
    resize: vertical;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.button-row button,
.copyButton {
    padding: 11px 18px;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

#generateButton {
    background-color: #2457a6;
    color: white;
}

#generateButton:hover {
    background-color: #1c478a;
}

#clearButton {
    background-color: #6c757d;
    color: white;
}

#clearButton:hover {
    background-color: #565e64;
}

.status-message {
    min-height: 22px;
    margin-top: 14px;
    font-weight: bold;
    color: #2457a6;
}

.results-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 28px;
}

.output-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 22px;
    color: #243447;
}

.small-note {
    margin-top: 0;
    margin-bottom: 14px;
    color: #607080;
    font-size: 14px;
}

.output-box {
    min-height: 260px;
    resize: vertical;
    background-color: #f8fafb;
    white-space: pre-wrap;
}

.copyButton {
    margin-top: 14px;
    background-color: #2e7d32;
    color: white;
}

.copyButton:hover {
    background-color: #246628;
}

@media (max-width: 900px) {
    .results-section {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 30px;
    }
}
textarea {
    overflow-y: hidden;
}
.form-card select {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #b8c1ca;
    border-radius: 7px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    background-color: white;
}

.form-card select:focus {
    border-color: #2457a6;
    outline: 2px solid rgba(36, 87, 166, 0.15);
}

#generateStudentWorkButton {
    background-color: #2457a6;
    color: white;
}

#generateStudentWorkButton:hover {
    background-color: #1c478a;
}

#clearStudentWorkButton {
    background-color: #6c757d;
    color: white;
}

#clearStudentWorkButton:hover {
    background-color: #565e64;
}

.single-result {
    grid-template-columns: 1fr;
}
#generateStudentVoiceButton {
    background-color: #2457a6;
    color: white;
}

#generateStudentVoiceButton:hover {
    background-color: #1c478a;
}

#clearStudentVoiceButton {
    background-color: #6c757d;
    color: white;
}

#clearStudentVoiceButton:hover {
    background-color: #565e64;
}
.sidebar-heading {
    font-size: 0.9rem;
}
.sidebar nav button:not(:disabled):hover {
    background-color: #810d0d;
    color: white;
}
.lesson-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 16px;
}

.lesson-info-field {
    display: flex;
    flex-direction: column;
}

@media (max-width: 750px) {
    .lesson-info-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
.lemar-plan {
    margin-top: 24px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    overflow: hidden;
}

.lemar-plan > h3 {
    margin: 0;
    padding: 14px 16px;
    background-color: #f3f3f3;
}

.lemar-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-top: 1px solid #d6d6d6;
}

.lemar-label {
    padding: 14px;
    font-weight: 600;
    background-color: #f8f8f8;
}

.lemar-fields {
    padding: 10px 14px;
}

.lemar-fields .task-box {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.lemar-fields .success-criterion-row + .success-criterion-row {
    margin-top: 8px;
}

.lemar-fields .add-field-button {
    margin-top: 8px;
}

@media (max-width: 750px) {
    .lemar-row {
        grid-template-columns: 1fr;
    }

    .lemar-label {
        padding-bottom: 8px;
    }
}
.formatted-output {
    height: auto;
    overflow: visible;
    line-height: 1.5;
}

.formatted-output p {
    margin: 0 0 16px;
    color: #263238;
    font-size: 16px;
}

.formatted-output table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
    background-color: white;
}

.formatted-output th,
.formatted-output td {
    padding: 12px;
    border: 1px solid #8f9aa5;
    text-align: left;
    vertical-align: top;
}

.formatted-output th {
    background-color: #e9eef3;
}

.formatted-output .lemar-output-label {
    width: 190px;
    background-color: #f3f5f7;
    font-weight: bold;
}

.formatted-output .output-line {
    white-space: pre-wrap;
}
#crtResults {
    grid-template-columns: 1fr;
}