@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

@page {
    margin: 1cm;
    size: A4;
}

body {
    background-color: #fff;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.container_marksheet_template1 {
    width: 100%;
    height: auto;
    background: #fff;
    border: 1px solid #0b722d; /* Primary color */
}

.content_container_template1 {
    padding: 10px 2%;
}

/* --- Header Styles --- */
.header_template1 {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #0b722d; /* Primary color */
    padding-bottom: 5px;
}

.logo_div_img_template1 img {
    width: 70px;
    height: auto;
    margin-right: 20px;
}

.header_institution {
    text-align: center;
}

.heading_template1 {
    font-size: 18pt;
    font-weight: 700;
    color: #0b722d; 
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.heading_code_info_template1,
.heading_address_template1,
.contact_template1 {
    font-size: 9pt;
    font-weight: 600;
    color: #7f8c8d;
}

/* --- Report Title --- */
.header_info_container {
    margin: 10px 0;
    text-align: center;
}

.heading_report_template1 {
    font-size: 14pt;
    font-weight: 700;
    color: #0b722d; 
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.year_template1 {
    font-size: 10pt;
    font-weight: 600;
    color: #7f8c8d;
}

/* --- Student Info --- */
.student-info-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.student_info_template1 {
    background: #f8f9fa;
    padding: 5px;
    border-radius: 6px;
    border-left: 3px solid #0b722d; 
}

.student_info_table_template1 {
    width: 100%;
}

.student_info_table_template1 tr {
    line-height: 1.5;
}

.student_info_table_template1 td:first-child {
    font-weight: 700;
    font-size: 9pt;
    color: #0b722d;
    min-width: 80px;
    padding-right: 5px;
}

.student_info_table_template1 td:last-child {
    font-weight: 400;
    font-size: 9pt;
    color: #000;
}

/* --- Assessment Tables --- */
.assessment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 10px auto;
    /*margin-top: 5px;*/
}

.assessment-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.assessment-table th {
    background-color: #0b722d; 
    color: white;
    padding: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 10pt;
}

.assessment-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    font-size: 8pt;
}

.assessment-table tr:nth-child(even) {
    background-color: #f8f9fa; 
}

.subject-header {
    background-color: #d1e7d1 !important; 
    color: #0b722d !important; 
    font-weight: 700 !important;
    text-transform: uppercase;
}

.section-header {
    background-color: #f3fcf4 !important;
    color: #0b722d !important; 
    font-style: italic;
    font-weight: 600;
}

/* --- Promotion Message --- */
.promotion-container {
    background: #f3fcf4;
    padding: 8px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid #0b722d; 
    text-align: left;
}

.promotion-table {
    width: 100%;
    border-collapse: collapse;
}

.promotion-table td {
    padding: 5px;
}

.promotion-label {
    font-weight: 700;
    color: #0b722d;
    font-size: 10pt;
    padding-right: 15px;
    white-space: nowrap;
}

.form-control {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 9pt;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
}

input[type="date"].form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 6px 10px;
}

select.form-control {
    cursor: pointer;
}

.congratulate_message {
    font-size: 12pt;
    color: #0b722d; 
    font-weight: 700;
}

.new_session {
    font-size: 10pt;
    color: #0b722d;
    font-weight: 500;
}

/* --- Signatures --- */
.signature-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding-top: 10px;
}

.signature-box {
    text-align: center;
}

.signature-title {
    font-weight: 600;
    color: #0b722d;
    font-size: 9pt;
    margin-bottom: 5px;
}

.signature-line {
    border-top: 1px solid #0b722d;
    width: 90%;
    margin: 5px auto;
}

/* --- Footer Note --- */
.footer-note {
    text-align: center;
    font-size: 9pt;
    color: #e74c3c;
    margin-top: 20px;
    font-style: italic;
}

/* --- Utility Classes for Printing --- */
@media print {
    body {
        margin: 0;
        padding: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        font-size: 9pt;
    }
    
    .container_marksheet_template1 {
        width: 96.5% !important;
        height: 97.5% !important;
        background: none !important;
        border: none !important;
        font-size: 9pt !important;
        margin: 0 auto !important; 
        padding: 0 !important;
        page-break-after: always;
        margin-top: 0.5cm !important;
    }
    
    .content_container_template1 {
        padding: 0.5cm 1cm !important;
    }
    
    .header_template1 {
        flex-direction: column;
        align-items: center;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .logo_div_img_template1 {
        display: none !important;
    }
    
    .header_institution {
        text-align: center !important;
        margin-left: 0 !important;
        color: #000 !important;
    }
    
    .heading_template1 {
        opacity: 0 !important;
        margin: 0;
        padding: 0;
        height: 0;
        line-height: 0;
        font-size: 0;
    }
    
    .heading_code_info_template1, 
    .heading_address_template1, 
    .contact_template1 {
        font-size: 9pt !important;
        color: #000 !important;
        font-weight: normal !important;
        text-transform: none !important;
    }
    
    .heading_report_template1 {
        font-size: 14pt !important;
        font-weight: 700 !important;
        color: #000 !important;
        margin-top: 3px !important;
        text-transform: uppercase !important;
        letter-spacing: 1px;
    }
    
    .year_template1 {
        font-size: 10pt !important;
        color: #000 !important;
        font-weight: normal !important;
    }
    
    /* --- Student Info --- */
    .student_info_template1 {
        background: #fff !important;
        padding: 5px !important ;
        border-radius: none !important;
        border-left: none !important;
    }

    .student_info_table_template1 td:first-child {
        color: #000 !important;
    }
    
    /* --- Assessment Tables --- */
    .assessment-table {
        width: 100%;
        border-collapse: collapse;
        border: 1px solid #000 !important;
        border-radius: 0px !important;
        overflow: hidden;
    }
    
    .assessment-table th {
        background-color: #fff !important; 
        color: #000 !important;
        border-bottom: 1px solid #000 !important;
    }
    
    .assessment-table td {
        border-bottom: 1px solid #000 !important;
    }
    
    .assessment-table tr:nth-child(even) {
        background-color: #fff !important; 
    }
    
    .subject-header {
        background-color: #fff !important; 
        color: #000 !important; 
    }
    
    .section-header {
        background-color: #fff !important;
        color: #000 !important; 
    }
    
    /* --- Promotion Message --- */
    .promotion-container {
        background: #fff !important;
        border-left: 0px solid #000 !important; 
    }
    
    .promotion-label {
        color: #000 !important;
    }
    
    .congratulate_message {
        color: #000 !important; 
    }
    
    .new_session {
        color: #000 !important;
    }
    
    /* --- Signatures --- */
    .signature-title {
        color: #000 !important;
    }
    
    .signature-line {
        border-top: 1px solid #000 !important;
    }
}