* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Times New Roman', Times, serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
}

/* Course Selection Buttons */
.course-selection {
    max-width: 210mm;
    margin: 0 auto 20px;
    display: flex;
    gap: 10px;
    padding: 0 20px;
}

.course-btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #e61e25;
    background-color: white;
    color: #e61e25;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-btn:hover {
    background-color: #e61e25;
    color: white;
}

.course-btn.active {
    background-color: #e61e25;
    color: white;
}

.container {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    background: white;
    padding: 15mm;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 12pt;
    line-height: 1.3;
}

/* Header Styles */
.header-banner {
    display: flex;
    align-items: center;
    background-color: #e61e25;
    padding: 10px;
    margin-bottom: 15px;
}

.logo {
    width: 100px;
    margin-right: 100px;
}

.logo img {
    width: 200%;
    display: block;
}

.header-title {
    flex: 1;
    color: white;
    text-align: center;
    font-size: 16pt;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.5;
}

/* Section Styles */
.section {
    margin-bottom: 20px;
    page-break-inside: avoid;
}

h2 {
    color: #1c1e85;
    font-size: 14pt;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

h3 {
    font-size: 12pt;
    margin: 15px 0 5px 0;
    font-weight: bold;
}

/* Info Table Styles */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    border: 1px solid #000;
}

.info-cell {
    flex: 1;
    padding: 8px 10px;
    border-right: 1px solid #000;
    display: flex;
    flex-direction: column;
}

.info-cell:last-child {
    border-right: none;
}

.info-cell.single-row {
    flex: 2;
}

.info-cell label {
    font-weight: normal;
    margin-bottom: 5px;
}

.info-input {
    border: none;
    border-bottom: 1px solid #aaa;
    padding: 5px 0;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    outline: none;
    background: transparent;
}

.info-input:focus {
    border-bottom: 1px solid #1c1e85;
}

input[type="date"].info-input {
    font-family: 'Times New Roman', Times, serif;
}

/* Description Style */
.description {
    margin-bottom: 15px;
    text-align: justify;
}

/* Evaluation Table Styles */
.evaluation-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
    margin-bottom: 20px;
}

.table-header {
    display: flex;
    background-color: #f0f0f0;
    border-bottom: 1px solid #000;
}

.header-cell {
    padding: 8px 10px;
    font-weight: bold;
    text-align: center;
}

.header-cell.ability {
    flex: 3;
    border-right: 1px solid #000;
}

.header-cell.level {
    flex: 1;
}

.ability-section {
    border-bottom: 1px solid #000;
}

.ability-section:last-child {
    border-bottom: none;
}

.ability-header {
    padding: 8px 10px;
    font-weight: bold;
    background-color: #f0f0f0;
    border-bottom: 1px solid #000;
}

.note {
    font-size: 10pt;
    font-style: italic;
    color: #666;
    font-weight: normal;
}

.ability-row {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.ability-row:last-child {
    border-bottom: none;
}

.ability-desc {
    flex: 3;
    padding: 8px 10px;
    border-right: 1px solid #000;
}

/* New Rating Options Style */
.rating-options {
    display: flex;
    justify-content: space-around;
    flex: 1;
    border-left: 1px solid #000;
}

.rating-options label {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    position: relative;
    cursor: pointer;
    border-right: 1px solid #ddd;
    height: 100%;
}

.rating-options label:last-child {
    border-right: none;
}

.rating-options span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-weight: bold;
}

.rating-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.rating-options input[type="radio"]:checked + span {
    background-color: #e7f5e7;
    color: #1c1e85;
    font-weight: bold;
}

/* Print styles for rating options */
@media print {
    .rating-options span {
        padding: 6px 0;
    }
    
    .rating-options input[type="radio"]:checked + span {
        background-color: #e7f5e7 !important;
        color: #e61e25 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Remove old styles that are no longer needed */
.ability-level,
.ability-check {
    display: none;
}

/* Overall Evaluation Styles */
.overall-evaluation {
    margin-top: 20px;
}

.average-score-container {
    display: flex;
    border: 1px solid #000;
    margin: 15px 0;
}

.score-label {
    flex: 1;
    padding: 8px 10px;
    text-align: center;
    font-weight: bold;
    background-color: #f0f0f0;
    border-right: 1px solid #000;
}

.score-value {
    flex: 1;
    padding: 8px 10px;
}

.evaluation-levels {
    margin-top: 20px;
}

.level-section {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 3px solid #1c1e85;
}

.level-icon {
    font-size: 14pt;
    margin-right: 10px;
    display: inline-block;
}

.level-section h4 {
    color: #1c1e85;
    display: inline-block;
    margin-bottom: 5px;
    font-size: 12pt;
}

.level-section p {
    text-align: justify;
    margin-top: 5px;
    font-size: 11pt;
}

/* Teacher Comment Styles */
.teacher-comment {
    margin-top: 20px;
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    resize: vertical;
    margin-top: 10px;
}

.comment-textarea:focus {
    border-color: #1c1e85;
    outline: none;
}

/* Print Styles */
@media print {
    body {
        background: none;
        padding: 0;
    }

    .container {
        width: 210mm;
        padding: 10mm;
        margin: 0;
        box-shadow: none;
    }

    .course-selection {
        display: none;
    }

    /* Ensure proper page breaks */
    .section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .ability-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .level-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
} 