@charset "utf-8";
/* 🎯 Marksheet Template - Print Safe */

/* Force A4 page size */
@page {
    size: A4 portrait;
    margin: 8mm;  /* Safe margins */
}

/* Print settings */

/* Base Reset */
* {
    margin: 0;
    padding: 0;
}

/* Container */
.container_marksheet_template1 {
    width: 97%;
    height: 94%;
    page-break-after: always;
    border-width: thick;
    border-style: double;
    border-color: #2c5aa0;
    margin: 1% auto;
    background: #f8fafc;
    font-family: calibri, sans-serif;
    padding: 20px 1.5%;
}

/* Content */
.content_container_template1 {
    padding: 10px 1%;
}

/* Header */
.header_template1 {
    font-size: 12pt;
    text-transform: capitalize;
    font-family: cambria, serif;
    margin-bottom: 15px;
}
.heading_template1 {
    font-size: 20pt;
    text-transform: uppercase;
    font-weight: bold;
}
.fullstretch {
    width: 100%;
}
.heading_report_template1 {
    font-size: 26pt;
    font-weight: bold;
    margin-top: 11px;
    /*font-family: "Monotype Corsiva", cursive;*/
    color: #1e40af;
}

/* Table 1 */
.table1_container_template1 {
    margin-top: 20px;
}
.table1_template1 {
    border-collapse: collapse;
    max-width: 99%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 3.5px;
    overflow: hidden;
    width: 100%;
}
.table1_template1 td,
.table1_template1 th {
    padding: 4px 6px;
    border: 1px solid #cbd5e1;
}
.table1_template1 th {
    background-color: #2c4dbc;
    color: white;
    font-weight: 550;
    font-size: 0.9rem;
    letter-spacing: 0.26px;
}
.table1_template1 td {
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}
.table1_template1 tr:nth-child(even) td {
    background-color: #f1f5f9;
}
.table1_template1 tr:hover td {
    background-color: #e0f2fe;
}

/* Student Info */
.student_info_template1 {
    width: 40%;
    display: inline-block;
}
.student_info_table_template1 td {
    padding-right: 5px;
}

/* Text Utilities */
.texttransformupper {
    text-transform: uppercase;
}
.alignleft {
    text-align: left;
}
.alignright {
    text-align: right;
}
.aligncenter {
    text-align: center;
}

/* Signature */
.principal_signature_template1 {
    text-align: center;
    margin-top: 75px;
}
.signature_div {
    margin-top: 40px;
}

/* Margin Helpers */
.margintop20 {
    margin-top: 20px;
}
.margintop35 {
    margin-top: 35px;
}
.margintop50 {
    margin-top: 30px;
}
.margintop5 {
    margin-top: 5px;
}

/* Logo */
.logo_div_img_template1 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
}
.logo_div_img_template1 img {
    width: 65px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Flex Utilities */
.flexbox-row-center-start {
    justify-content: center;
    display: flex;
    align-items: flex-start;
}
.flexbox-row-spacearound-start {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
}

/* Message */
.congratulate_message {
    font-weight: normal;
    margin: 8px 0;
    font-size: 12pt;
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}
.line-height1-4 {
    line-height: 1.4;
}
.fontsize11 {
    font-size: 11pt;
}

/* Transparent Table */
.transparent_table {
    border-collapse: collapse;
    max-width: 99%;
    min-width: 60%;
    background: none;
    border: none transparent;
}

/* Evaluation Table */
.evaluation_table {
    border-collapse: collapse;
    max-width: 99%;
    min-width: 60%;
    width: 100%;
    font-size: 0.9rem;
}
.evaluation_table th,
.evaluation_table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: left;
}
.evaluation_table th {
    background: #2c3e50;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}
.evaluation_table tr:nth-child(even) {
    background: #f1f5f9;
}

/* Table Container */
.table_container {
    margin-top: 20px;
    margin-bottom: 20px;
    /*border: 2px solid #2c5aa0;*/
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.fullstretch {
    width: 100%;
    display: block;
}

.table_padding {
    width: auto;
    padding: 12px;
}

/* === Editable Table (#template_table_edit) styled like evaluation_table === */
#template_table_edit {
    border-collapse: collapse;
    max-width: 99%;
    min-width: 60%;
    width: 100%;
    font-size: 0.9rem;
}
#template_table_edit th,
#template_table_edit td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: left;
    vertical-align: middle;
}
#template_table_edit th {
    /*background: #2c3e50;*/
    /*color: black;*/
    /*font-weight: 600;*/
    text-transform: uppercase;
    font-size: 0.9rem;
}
.texttransformupper alignleft{
    background: none! important;
}
#template_table_edit tr:nth-child(even) td {
    background: #f1f5f9;
}
#template_table_edit .head {
    background-color: #2c3e50 !important;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}
/* Inputs inside table */
#template_table_edit input[type="number"],
#template_table_edit input[type="text"],
#template_table_edit input[type="file"] {
    width: 90%;
    padding: 4px 6px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #fff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}
#template_table_edit input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 4px rgba(37,99,235,0.3);
}
/* Print safe */
@media print {
    html, body {
        /*width: 210mm;*/
        /*height: 297mm;*/
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    @page{
         size: A4 portrait;
        margin: 30px; 
    }
    /*.evaluation_table th{*/
    /*    background: #2c3e50;*/
    /*}*/
    .container_marksheet_template1 {
        width: 100% !important;
        height: auto !important;
        page-break-inside: avoid !important;
        page-break-after: auto !important;
        transform: scale(0.95);   /* shrink slightly to fit */
        transform-origin: top left;
        /*page-break-after:always;*/
    }
     .table_container .fullstretch .table_padding{
        width:auto;
        margin:0;
        padding:0;
    }
    .evaluation_table,
    .student_info_template1,
    .content_container_template1,
    .table1_template1 {
        page-break-inside: avoid !important;
    }
    
    table {
        max-width: 100% !important;
        table-layout: fixed;
        word-wrap: break-word;
    }
    #template_table_edit th,
    #template_table_edit td {
        font-size: 10pt;
        padding: 5px;
    }
    #template_table_edit input {
        border: none;
        background: transparent;
        width: auto;
    }
  #template_table_edit .head {
    background-color: #2c3e50 !important;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}
}

/* Upload Button */
.btn-upload {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-upload:hover {
    background: linear-gradient(135deg, #43A047, #1B5E20);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}
.btn-upload:active {
    transform: translateY(0);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.15);
}

/* Container: center in page */
#displayadd_homework_success {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}

/* Badge Style */
.success-badge {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(76,175,80,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: fadeInScale 0.5s ease forwards;
    transform: scale(0);
}
.success-badge span::before {
    content: "✔";
    font-size: 22px;
    margin-right: 10px;
}
@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0); }
    70% { opacity: 1; transform: scale(1.15); }
    100% { transform: scale(1); }
}
.success-badge.fade-out {
    animation: fadeOutScale 0.5s forwards;
}
@keyframes fadeOutScale {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0); }
}

/* Modern Select Style */
.modern-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    border-radius: 12px;
    /*border: 2px solid #94a3b8;*/
    background: #f8fafc;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    color: #1f2937;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'14'%20height%3D'8'%20viewBox%3D'0%200%2014%208'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M1%201l6%206%206-6'%20stroke%3D'%231f2937'%20stroke-width%3D'2'%20fill%3D'none'%20/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 8px;
}
/*.modern-select:hover {*/
/*    border-color: #2563eb;*/
/*    box-shadow: 0 0 8px rgba(37,99,235,0.2);*/
/*}*/
/*.modern-select:focus {*/
/*    border-color: #2563eb;*/
/*    box-shadow: 0 0 10px rgba(37,99,235,0.3);*/
/*}*/
.modern-select option {
    padding: 10px;
    font-weight: 500;
    background: #ffffff;
    color: #1f2937;
}
.modern-select option:checked {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
}
