/* Consolidated media queries for header_btns_group (max-width: 1024px and 991.98px) */
@media screen and (max-width: 1024px), screen and (max-width: 991.98px) {
    .header_btns_group .login_btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .header_btns_group .login_btn .login-label {
        display: block !important;
        font-size: 8px;
        margin-left: 0;
        margin-top: 2px;
        text-align: center;
    }
    .header_btns_group .login_btn i {
        display: block;
        font-size: 16px !important;
        margin-bottom: 0;
        line-height: 1;
    }
}
.tooltip {
    position: absolute;
    z-index: 1070;
    display: block;
    margin: 0;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-break: normal;
    word-spacing: normal;
    white-space: normal;
    line-break: auto;
    font-size: 0.875rem;
    word-wrap: break-word;
    opacity: 0;
}

.tooltip.show {
    opacity: 0.9;
}

.tooltip-arrow {
    position: absolute;
    display: block;
    width: 0.8rem;
    height: 0.4rem;
}

.tooltip-arrow::before {
    position: absolute;
    content: "";
    border-color: transparent;
    border-style: solid;
}

.bs-tooltip-bottom {
    padding: 0.4rem 0;
}

.bs-tooltip-bottom .tooltip-arrow {
    top: 0;
}

.bs-tooltip-bottom .tooltip-arrow::before {
    bottom: 0;
    border-width: 0 0.4rem 0.4rem;
    border-bottom-color: #000;
}

.tooltip-inner {
    max-width: 200px;
    padding: 0.25rem 0.5rem;
    color: #fff;
    text-align: center;
    background-color: #000;
    border-radius: 0.25rem;
}

/* Student page Start*/
/* download file in student chapters page  */
.download_icon {
    color: rgb(2, 72, 102);
    display: flex;
    justify-content: flex-end;
}
.topic_indent {
    text-indent: 50px;
}

.cheer_up {
    color: #036564;
    font-weight: 900;
}

.question_number {
    color: #036564;
    font-weight: 600;
}
.mx-green {
    color: green;
    margin-top: 13px;
}
.mx-blue {
    color: rgb(2, 107, 136);
}
.mx-bold {
    font-weight: 700;
}
.ans_description {
    color: darkslategray;
}
.ans_wrong {
    position: relative;
    top: 1px;
    text-shadow: 0 0 10px red;
    left: 1px;
    color: red;
}
.ans_right {
    position: relative;
    top: 1px;
    text-shadow: 0 0 10px rgb(3, 150, 91);
    left: 1px;
    color: rgb(2, 130, 39);
}

.form-check_item {
    width: 100%;
    display: table;
    margin-bottom: 30px;
}
.form-check_item input {
    float: left;
    width: 20px;
    height: 20px;
    cursor: pointer;

    margin-right: 10px;
    position: relative;
    border-radius: 4px;
    -webkit-transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid #039c80;
}
.form-check_item input:before {
    top: 50%;
    left: 50%;
    opacity: 0;
    font-size: 12px;
    content: "\f00c";
    font-weight: 400;
    position: absolute;
    color: #ffffff;
    -webkit-transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: "Font Awesome 5 Pro";
}
.form-check_item input:checked {
    border-color: #4506f3;
    background-color: #2005f1;
}
/* .form-check_item input:checked:before {
  opacity: 1;
} */
.form-check_item label {
    display: table;
    cursor: pointer;
    margin: -3px 0 0;
    position: relative;
    bottom: -3px;
}

.form-check_group > li:not(:last-child) {
    margin-bottom: 5px;
}
.form-check_group .form-check_item {
    margin: 0;
}

/* Report Generation - report type radios */
.report-type-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.report-type-row .report-type-label {
    flex: 0 0 auto;
}

.report-type-row .form-check-inline {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.report-type-row .form-check-inline + .form-check-inline {
    margin-left: 0 !important;
}

@media screen and (max-width: 767px) {
    .report-type-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .report-type-row .form-check-inline {
        width: 100%;
    }

    .report-type-row .form-check-label {
        padding-left: 0.35rem !important;
    }
}

/* .sotrans .fa-times:hover {
animation: times 1s cubic-bezier(.36,.07,.57,.99) infinite;
} */

/* @media screen and (max-width: 1199px) */
.btns {
    border: 2px solid black;
    background-color: white;
    min-width: 200px;
    max-width: 500px;
    color: black;
    padding: 3px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 5px;
}
.info {
    border-color: #a85dd3;
    color: 114c7c;
}

/* CSS */
.button-52 {
    font-size: 16px;
    font-weight: 200;
    letter-spacing: 1px;
    padding: 13px 20px 13px;
    outline: 0;
    border: 1px solid black;
    cursor: pointer;
    position: relative;
    background-color: rgba(0, 0, 0, 0);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-52:after {
    content: "";
    background-color: #ffe54c;
    width: 100%;
    z-index: -1;
    position: absolute;
    height: 100%;
    top: 7px;
    left: 7px;
    transition: 0.2s;
}

.button-52:hover:after {
    top: 0px;
    left: 0px;
}

/* Consolidated (min-width: 768px) for button-52, button-53, button-51 */
@media (min-width: 768px) {
    .button-52,
    .button-53,
    .button-51 {
        padding: 13px 50px 13px;
    }
}

/* CSS */
.button-53 {
    font-size: 16px;
    font-weight: 200;
    letter-spacing: 1px;
    padding: 13px 20px 13px;
    outline: 0;
    border: 1px solid black;
    cursor: pointer;
    position: relative;
    background-color: rgba(0, 0, 0, 0);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-53:after {
    content: "";
    background-color: #3dc282;
    width: 100%;
    z-index: -1;
    position: absolute;
    height: 100%;
    top: 7px;
    left: 7px;
    transition: 0.2s;
}

.button-53:hover:after {
    top: 0px;
    left: 0px;
}

/* CSS */
.button-51 {
    font-size: 16px;
    font-weight: 200;
    letter-spacing: 1px;
    padding: 13px 20px 13px;
    outline: 0;
    border: 1px solid black;
    cursor: pointer;
    position: relative;
    background-color: rgba(0, 0, 0, 0);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-51:after {
    content: "";
    background-color: #339e9d;
    width: 100%;
    z-index: -1;
    position: absolute;
    height: 100%;
    top: 7px;
    left: 7px;
    transition: 0.2s;
}

.button-51:hover:after {
    top: 0px;
    left: 0px;
}

.floating {
    animation-name: floating;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    margin-left: 10px;
    margin-top: 5px;
}

@keyframes floating {
    0% {
        transform: translate(0, 0px);
    }
    50% {
        transform: translate(0, 15px);
    }
    100% {
        transform: translate(0, -0px);
    }
}

.view_ans_title {
    color: #036564;
    font-size: smaller;
}

.file_name {
    color: #339e9d;
    font-weight: 600;
    align-items: center;
}

.test_title {
    font-size: 40px;
}
.qus_test_box {
    color: #039c80;
    font-size: smaller;
    font-weight: 500;
}
.btn_start_test {
    width: 20px;
    height: 10px;
}

.btn_stu_test {
    font-size: 16px;
    font-weight: bold;
    position: relative;
    padding: 0%;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    color: #3a10e5;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.chap_sub {
    font-size: 14px;
    color: rgb(134, 2, 132);
}

.header_style_5 .header_top {
    color: #ffffff;
    height: 50px;
    -webkit-animation: gradientChange 5s ease infinite;
    animation: gradientChange 5s ease infinite;
    background-image: -webkit-gradient(
        linear,
        right top,
        left top,
        from(#3d9bfc),
        color-stop(#7b40e4),
        color-stop(#f53a8b),
        color-stop(#ee704a),
        to(#ddd24c)
    );
    background-image: linear-gradient(
        270deg,
        #3d9bfc,
        #7b40e4,
        #f53a8b,
        #ee704a,
        #ddd24c
    );
}

/* content of chapters in "course detail page" */
.topic_content {
    font-weight: 500;
    font-size: 15px;
    color: #3d4949;
}
.btn_sub_chap {
    color: #4e0479;
    font-size: 17px;
    text-decoration: underline;
}

/* Consolidated header gradient for mobile (max-width: 600px) */
/* Consolidated all (max-width: 600px) media queries */
@media screen and (max-width: 600px) {
    .header_style_5 .header_top {
        -webkit-animation: gradientChange 5s ease infinite;
        animation: gradientChange 5s ease infinite;
        background-image: -webkit-gradient(
            linear,
            right top,
            left top,
            from(#3d9bfc),
            color-stop(#7b40e4),
            color-stop(#f53a8b),
            color-stop(#ee704a),
            to(#ddd24c)
        );
        background-image: linear-gradient(
            270deg,
            #3d9bfc,
            #7b40e4,
            #f53a8b,
            #ee704a,
            #ddd24c
        );
    }
    .formstatus {
        display: block;
        margin-left: 0px;
    }
}

/* Admin page Start*/

/* admin_home page */
.school_details {
    font-size: 14px;
    word-wrap: break-word;
}

/* admin_create_institute page */
.formstatus {
    margin-left: 45px;
}

.skul-img input[type="file"]::file-selector-button {
    margin-top: 9px;
}

/* admin_add_staff page */

.sidepannel {
    height: 265px;
    border-radius: 10px;
    width: 250px;
}

.managestaff_title {
    font-size: 30px;
    line-height: 1.4;
    margin-bottom: 25px;
    margin-left: 10px;
}

.main_panal {
    border-radius: 10px;
}

.staff_dis_fields {
    line-height: 1;
    display: block;
    font-size: 15px;
    font-weight: 500;
    padding: 9px 22px;
    color: #101213;
    border-radius: 5px;
    background-color: #f0f3ff;
    text-align: center;
}
.staff_data_field {
    text-align: center;
    font-size: small;
    font-weight: 600;
}

/* admin_staff_register page */
.right_sidepanal {
    height: 235px;
    border-radius: 10px;
}

.permission_check_data {
    display: inline;
    padding: 2px 5px 2px;
    font-size: 13px;
    font-weight: bold;
    line-height: 2;
    text-align: left;
    color: rgb(48, 47, 47);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25em;
    border: 1px solid rgba(53, 84, 88, 0.597);
    background-color: #04ea7b82;
}

.item-list {
    /* min-width: 350px; */
    max-width: 400px;
}

.filter-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1 1 250px; /* allows wider input */
}

.filter-group.button-group {
    flex: 0 1 auto; /* makes the button only as wide as it needs */
}

.filter-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
}

/* admin_designation page */
.designation_panal {
    border-radius: 10px;
    height: 300px;
}

.desig_form {
    height: 100px;
    width: 396px;
    resize: none;
}

.desig_exist {
    height: 100px;
    width: 396px;
}

/* admin_edit_staff page */
.staff_edit_formstatus {
    margin-left: 312px;
    margin-top: -26px;
}

.edit_staff_det {
    margin-left: 321px;
    border-radius: 5px;
}
/* admin_add_class page */
.class_rowline {
    display: flex;
    justify-content: space-between;
}
/* admin_add_subject page */

.comment_form .form_item select {
    border-color: #f0f3ff;
    background-color: #f0f3ff;
}

.comment_form .form_item select:hover {
    border-color: #ebebeb;
    background-color: #ffffff;
}

.search_stu_data {
    position: relative;
}

/* admin_add_students page */
.search_stu_data input {
    width: 368px;
    height: 53px;
    border: none;
    outline: none;
    border-radius: 5px;
    padding: 0 50px 0 20px;
    -webkit-transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-color: #f0f3ff;
    background-color: #f0f3ff;
}
.search_stu_data input:hover,
.search_stu_data input:focus {
    outline: none;
    background-color: #ffffff;
    -webkit-box-shadow: 0 2px 3px 0 rgba(16, 18, 19, 0.3);
    box-shadow: 0 2px 3px 0 rgba(16, 18, 19, 0.3);
}

.search_stu_data button {
    top: 12px;
    right: 80px;
    max-width: 16px;
    position: absolute;
}

.stu_add_new_but {
    padding-left: 80px;
}

.stu_action_btn {
    line-height: 3;
    background-color: #3bc81247;
    color: #013b25;
    bottom: 7px;
}
.stu_action_btn:hover {
    background-color: #23710b47;
    color: #013b25;
    font-weight: bold;
}

/* admin_add_new_students page */
.picture-container {
    position: relative;
    /* cursor: pointer; */
    text-align: center;
}
.picture {
    width: 106px;
    height: 106px;
    background-color: #999999;
    border: 4px solid #cccccc;
    color: #ffffff;
    border-radius: 50%;
    margin: 0px auto;
    overflow: hidden;
    transition: all 0.2s;
    -webkit-transition: all 0.2s;
}
.picture:hover {
    border-color: #2ca8ff;
}
.content.ct-wizard-green .picture:hover {
    border-color: #05ae0e;
}
.content.ct-wizard-blue .picture:hover {
    border-color: #3472f7;
}
.content.ct-wizard-orange .picture:hover {
    border-color: #ff9500;
}
.content.ct-wizard-red .picture:hover {
    border-color: #ff3b30;
}
.picture input[type="file"] {
    cursor: pointer;
    height: 100px;
    width: 100px;
    left: 566px;
    opacity: 0 !important;
    position: absolute;
    top: 0;
    border-radius: 25px;
}

.picture-src {
    width: 100%;
}
/*Profile Pic End*/

/* admin_add_new_chapters page */
.plus_add_links {
    left: 200px;
    font-weight: 700;
}

span .plus_add_links {
    margin-left: 30px;
    color: blue;
    margin-top: 20px;
}

/* admin_add_chapters page */
.chap_details_chapters {
    display: flex;
    justify-content: space-between;
}

.sub_chap_ter_list a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 500;
    font-size: 15px;
    line-height: 18px;
    color: #101213;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 12px 18px 11px;
    border-radius: 6px;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: center;
    border: 1px solid #ebebeb;
    margin-left: 30px;
    margin-bottom: 5px;
}
.sub_chap_ter_list a:hover {
    color: #3a10e5;
    border-color: #f0f3ff;
    background-color: #f0f3ff;
}

/* admin_notify page */

.receiver_sele {
    bottom: 7px;
    font-size: 15px;
    font-family: Arial;
    width: 180px;
    height: 50px;
    border-width: 1px;
    color: #fff;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    box-shadow: 3px 4px 0px 0px #4320ec;
    text-shadow: 0px 1px 0px #4320ec;
    background: linear-gradient(#4320ec, #4320ec);
    border-color: #4320ec;
}

.receiver_sele:hover {
    background: linear-gradient(#4320ec, #4320ec);
}

/*dropdown menu margin changed*/
.dropdown .items_dropdown {
    margin-bottom: 6px;
}
/* admin_assessment page */

.total_ques_count {
    margin-top: 10px;
    display: flex;
    position: relative;
}
/* admin_assess_single */

.radio_option_input {
    height: 50px;
    padding: 0 70px 0 20px;
    width: 815px;
    outline: none;
    display: block;
    font-size: 14px;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 6px;
    background-color: #ffffff;
    border: 1px solid #ebebeb;
    margin-bottom: 5px;
    margin-left: 9px;
}
.radio_option_input:hover {
    outline: none;
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
    background-color: #ffffff;
    -webkit-box-shadow: 0 2px 3px 0 rgba(16, 18, 19, 0.3);
    box-shadow: 0 2px 3px 0 rgba(16, 18, 19, 0.3);
}

/* admin_assess_match */
.match_option_input {
    height: 50px;
    padding: 0 70px 0 20px;
    outline: none;

    font-size: 14px;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 6px;
    background-color: #ffffff;
    border: 1px solid #ebebeb;
    margin-bottom: 5px;
    margin-left: 9px;
}

.match_option_input:hover {
    outline: none;
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
    background-color: #ffffff;
    -webkit-box-shadow: 0 2px 3px 0 rgba(16, 18, 19, 0.3);
    box-shadow: 0 2px 3px 0 rgba(16, 18, 19, 0.3);
}
/* admin_view_stu_data */

.blog_item .stu_doct img {
    width: 110px;
    display: block;
    -webkit-transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Principal */
.princi_search {
    position: relative;
}
.princi_search input {
    width: 194px;
    height: 53px;
    border: none;
    outline: none;
    border-radius: 5px;
    padding: 0 60px 0 25px;
    -webkit-transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: #f8f8f8;
}
.princi_search input:hover,
.princi_search input:focus {
    outline: none;
    background-color: #ffffff;
    -webkit-box-shadow: 0 2px 3px 0 rgba(16, 18, 19, 0.3);
    box-shadow: 0 2px 3px 0 rgba(16, 18, 19, 0.3);
}
.princi_search button {
    top: 12px;
    right: 24px;
    max-width: 16px;
    position: absolute;
}

.toggle-button .toggle {
    display: inline-block !important;
    margin-left: 80px;
}

.go_out {
    display: inline-block;
    margin-right: 0;
}

/* login page */
input:invalid {
    border: 2px solid red;
    animation: shake 0.2s 2;
}
@keyframes shake {
    25% {
        translate: 6px 0;
    }
    50% {
        translate: -6px 0;
    }
    75% {
        translate: 6px 0;
    }
}

.staff_data_field {
    word-break: break-word;
}

.fal {
    font-size: small;
}

.highlighter {
    border: 2px solid #06ade8;
}

.regen {
    font-weight: 400;
    font-size: small;
    color: #065245;
}

/*header changes */
.find-us {
    max-width: 800px;
}
.find-us-li {
    max-width: 900px;
}

.fee_details {
    list-style: none;
    color: black;
    text-align: center;
}
.printbtn {
    margin-left: 15px;
}

.total-amount-fee {
    color: black;
    margin-left: 576px;
}

.fe_amount {
    border-bottom: #000000;
    margin: 0px;
}

.balance-amt {
    color: red;
    margin-left: 150px;
}

.totl_amt-paid {
    color: green;
    margin-left: 140px;
}

.submit_icon {
    mix-blend-mode: darken;
}

.edit-admin:hover {
    color: blue;
}

.description-institute {
    padding: 0px !important;
    min-height: 30px !important;
}

.idphone {
    line-height: 3;
    background-color: rgb(5, 135, 128);
    border-radius: 10px 100px/120px;
}

.stuidcard {
    width: 74px;
    height: 89px;
    border: 4px solid #48b5fd;
    color: #ffffff;
    border-radius: 10px;
    margin: 0px auto;
    overflow: hidden;
    transition: all 0.2s;
    -webkit-transition: all 0.2s;
    margin-top: 5px;
}

.idcard {
    width: 80px;
    height: 80px;
    background-color: #999999;
    color: #ffffff;
    margin: 0px auto;
    overflow: hidden;
    transition: all 0.2s;
    -webkit-transition: all 0.2s;
}

.stu_pro_logo {
    height: 50px;
    width: 50px;
    margin-left: 79px;
}

.hrpro {
    border: solid rgb(9, 9, 9);
    border-radius: 5px;
    border-width: 1px;
}

.stu_img_det {
    border: 3px solid rgba(10, 10, 10, 0.555);
    border-radius: 5px;
    width: 130px;
    margin-left: 18px;
    margin-top: 20px;
}

.designrow {
    background-color: #d7f7f763;
    margin-left: -1px;
    width: 845px;
    padding-top: 8px;
    margin-top: 0px;
    padding: 0px;
    border-radius: 10px 100px/120px;
    height: 136px;
}

.hrreceipt {
    width: 664px;
    border: solid rgb(9, 9, 9);
    border-radius: 5px;
    border-width: 1px;
}

.sectionsitemap {
    padding: 160px;
}

.overview {
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    padding-left: 32px;
    position: relative;
    margin: 0 0 12px;
    text-transform: uppercase;
}
overview::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.s1 {
    list-style-type: square;
    padding: 40px;
    margin-left: 40px;
}

.site {
    color: black;
}

.site::marker {
    color: darksalmon;
}

.icon_list > li > .studclass {
    color: blue !important;
}
.card-header .chapactivate {
    display: flex;
    padding: 0px;
}

.card-header .chapactivate .subchapactivate {
    padding: 0px;
}

.poweredby {
    margin-right: -538px;
}

.category_list a:hover {
    border-color: #2442bb;
    background-color: #1239d2;
    color: white;
}

.stuprint {
    margin-left: 35px;
}

.printheader {
    margin-top: 150px;
}

.unordered_list_center li a {
    cursor: pointer;
}

.designationview {
    margin-left: 460px;
}

.bounceInUp {
    caret-color: red;
    width: 503px;
}

.noschooltext {
    color: #090e23;
}

.sitemapcontainer {
    max-width: 700px;
    margin: 20px;
    margin-top: 50px;
    margin-left: 150px;
}

.ac-label {
    font-weight: 700;
    position: relative;
    padding: 0.5em 1em;
    margin-bottom: 0.5em;
    display: block;
    cursor: pointer;
    background-color: #dcdde3;
    transition: background-color 0.15s ease-in-out;
}

.ac-input:checked + label,
.ac-label:hover {
    background-color: #6c78a7;
    color: rgb(9, 9, 9);
}

.ac-label:after,
.ac-input:checked + .ac-label:after {
    content: "+";
    position: absolute;
    display: block;
    right: 0;
    top: 0;
    width: 2em;
    height: 100%;
    line-height: 2.25em;
    text-align: center;
    background-color: #e5e5e5;
    transition: background-color 0.15s ease-in-out;
}

.ac-label:hover:after,
.ac-input:checked + .ac-label:after {
    background-color: #9fa7c6;
    color: rgb(9, 9, 9);
}

.ac-input:checked + .ac-label:after {
    content: "-";
}

.ac-input {
    display: none;
}

.ac-text,
.ac-sub-text {
    opacity: 0;
    height: 0;
    transition: opacity 0.5s ease-in-out;
    overflow: hidden;
}

.ac-input:checked ~ .ac-text,
.ac-sub .ac-input:checked ~ .ac-sub-text {
    opacity: 1;
    height: auto;
}

.ac-sub .ac-label {
    background: none;
    font-weight: 600;
    padding: 0.5em 2em;
    margin-bottom: 0;
}

.ac-sub .ac-label:checked {
    background: none;
    border-bottom: 1px solid whitesmoke;
}

.ac-sub .ac-label:after,
.ac-sub .ac-input:checked + .ac-label:after {
    left: 0;
    background: none;
}

.ac-sub .ac-input:checked + label,
.ac-sub .ac-label:hover {
    background: none;
}

.ac-sub-text {
    padding: 0 1em 0 2em;
}

.sl {
    list-style-type: square;
    color: black;
    font-weight: 500;
}

/*/////////////////////////////////*/
/*/////////  chat styles  /////////*/
/*/////////////////////////////////*/
.chat {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chat li {
    margin-bottom: 40px;
    padding-bottom: 5px;
    margin-top: 10px;
    width: 80%;
}

.chat li .chat-body p {
    margin: 0;
}

.chat-care {
    overflow-y: scroll;
    height: 350px;
}
.chat-care .chat-img {
    width: 50px;
    height: 50px;
}
.chat-care .img-circle {
    border-radius: 50%;
}
.chat-care .chat-img {
    display: inline-block;
}
.chat-care .chat-body {
    display: inline-block;
    max-width: 80%;
    background-color: #ffc195;
    border-radius: 12.5px;
    padding: 15px;
}
.chat-care .chat-body strong {
    color: #0169da;
}

.chat-care .admin {
    text-align: right;
    float: right;
}
.chat-care .admin p {
    text-align: left;
}
.chat-care .agent {
    text-align: left;
    float: left;
}
.chat-care .left {
    float: left;
}
.chat-care .right {
    float: right;
}

.clearfix {
    clear: both;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #f5f5f5;
}

::-webkit-scrollbar {
    width: 12px;
    background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #555;
}

.button-box {
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nineteen {
    border-radius: 4px;
    background: linear-gradient(to right, #630ee1, #4ca2cb);
    color: #fff;
    padding: 12px 0;
    text-transform: uppercase;
    font-weight: 600;
    width: 177px;
    outline: none;
    border: none;
    border-radius: 20px;
}

.nineteen span {
    position: relative;
    transition: 400ms;
}

.nineteen span::after {
    content: "\00bb";
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 500ms;
}

.nineteen:hover span {
    padding-right: 25px;
}

.nineteen:hover span::after {
    opacity: 1;
    right: 0;
}

.unordered_list {
    padding-left: 25px;
}

.edit_staff {
    cursor: pointer;
}

.chatbox {
    height: 900px;
}

/* Consolidated all (max-width: 768px) media queries */
@media (max-width: 768px) {
    /* matchmedia and button-52 */
    .matchmedia {
        width: 40%;
    }
    .button-52 {
        font-size: 10px;
        padding: 0;
        word-break: break-all;
        width: 70px;
    }

    /* mobile layout for .page_heading, .designrow, .page_banner, .details_section, .test-main-container, .page_content */
    .page_heading {
        margin-left: 0 !important;
    }
    .designrow {
        flex-direction: column;
        align-items: center;
    }
    .page_banner.padding_breadcrumb {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    .details_section.d-flex.justify-content-center {
        min-height: calc(100vh - 40px) !important;
        align-items: stretch !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .test-main-container {
        min-height: calc(100vh - 40px) !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    .page_content {
        min-height: 100vh;
        background: #f8fafc;
    }

    /* settings-sidebar and settings-button */
    .settings-sidebar {
        margin-bottom: 30px;
    }
    .settings-button {
        min-height: 50px;
        font-size: 13px;
    }

    /* match-questions-container, match-answers-container, question-btn, answer-btn */
    .match-questions-container,
    .match-answers-container {
        margin-bottom: 1rem;
        min-height: 200px;
        padding: 0.75rem;
    }
    .question-btn,
    .answer-btn {
        min-height: 40px;
        font-size: 0.85rem;
    }

    /* result-card-correct, result-card-incorrect, result-card-partial, card-header h6 */
    .result-card-correct,
    .result-card-incorrect,
    .result-card-partial {
        margin-left: 0;
        margin-right: 0;
    }
    .card-header h6 {
        font-size: 0.95rem;
    }

    /* modal-content, member-details, amount-input, association-buttons */
    .modal-content {
        width: 100%;
        max-height: 90vh;
    }
    .member-details {
        flex-direction: column;
    }
    .amount-input {
        max-width: none;
    }
    .association-buttons {
        flex-direction: column;
    }

    /* stud_det, polaroid, sub_docs, pdf_format, list_files, polaroid p */
    .stud_det [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 8px;
        padding-right: 8px;
    }
    .polaroid {
        padding: 12px 12px 8px 12px;
        margin-bottom: 15px;
    }
    .sub_docs {
        min-height: 120px;
    }
    .pdf_format {
        font-size: 60px;
    }
    .list_files {
        max-height: 100px;
    }
    .polaroid p {
        font-size: 12px;
        font-weight: 600;
    }
}

.testsubmit {
    margin-right: 210px;
    color: red;
    font-size: large;
}

.studentlife {
    width: 100%;
    font-size: 300px;
    letter-spacing: -8px;
}

.buttonClass {
    font-size: 15px;
    font-family: Arial;
    width: 180px;
    height: 50px;
    border-width: 1px;
    color: #fff;
    border-color: #337bc4;
    font-weight: bold;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    box-shadow: 3px 4px 0px 0px #1564ad;
    text-shadow: 0px 1px 0px #528ecc;
    background: linear-gradient(#0041bd, #378de5);
}

.buttonClass:hover {
    background: linear-gradient(#378de5, #79bbff);
    .form_item {
        position: relative;
    }
}

.dropdown_search {
    position: absolute;
    top: 100%;
    width: max-content;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 5px;
    color: #0a0808;
    margin-top: 1%;
}

.bannercustom {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 75px 0;
    min-height: 252px;
    text-align: center;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    background: -webkit-gradient(
        linear,
        left bottom,
        left top,
        from(transparent),
        color-stop(#fff0e5),
        to(#fff0e5)
    );
    background: linear-gradient(0deg, transparent, #fff0e5, #fff0e5);
    -webkit-box-shadow: 0 -2px 2px 0 rgba(16, 18, 19, 0.1);
    box-shadow: 0 -2px 2px 0 rgba(16, 18, 19, 0.1);
}

.search_header {
    position: relative;
}
.search_header input {
    width: 100px;
    height: 53px;
    border: none;
    border-radius: 148px;
    outline: none;
    padding: 0 40px 0 15px;
    -webkit-transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: #f8f8f8;
    transition: width 24;
}
.search_header input:hover,
.search_header input:focus {
    outline: none;
    width: 100px;
    border-radius: 35px;
    background-color: #ffffff;
    -webkit-box-shadow: 0 2px 3px 0 rgba(16, 18, 19, 0.3);
    box-shadow: 0 2px 3px 0 rgba(16, 18, 19, 0.3);
}
.search_header button {
    top: 12px;
    right: 17px;
    max-width: 16px;
    position: absolute;
}

.banner_section.banner_style_new {
    padding: 0px;
    background: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(5%, transparent),
        color-stop(rgba(141, 239, 255, 0.5)),
        to(rgba(255, 175, 251, 0.7))
    );
    background: linear-gradient(
        0deg,
        transparent 5%,
        rgba(141, 239, 255, 0.5),
        rgba(255, 175, 251, 0.7)
    );
}

.section_space_new {
    padding-top: 20px;
}

.banner_image_3 {
    width: 500px;
    margin-top: 97px;
}

.alert-push {
    width: 140px;
}

.notify_message_wrapper {
    padding: 70px;
    border-radius: 30px;
    background-image: linear-gradient(0deg, transparent, #f0f3ff);
}

.search_student {
    position: relative;
}
.search_student input {
    width: 100%;
    height: 53px;
    border: none;
    outline: none;
    padding: 0 40px 0 15px;
    -webkit-transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-color: #f0f3ff;
    background-color: #f0f3ff;
    transition: width 24;
}
.search_student input:hover,
.search_student input:focus {
    outline: none;
    width: 100%;
    background-color: #ffffff;
    -webkit-box-shadow: 0 2px 3px 0 rgba(16, 18, 19, 0.3);
    box-shadow: 0 2px 3px 0 rgba(16, 18, 19, 0.3);
}
.search_student button {
    top: 12px;
    right: 17px;
    max-width: 16px;
    position: absolute;
}

.right-aligned {
    text-align: right;
    padding-right: 30px;
}

.pagebannerfont p {
    font-size: 15px;
}

.profile {
    width: 845px;
    height: 170px;
}

.instimage {
    border-radius: 70px;
    margin-left: -26px;
}

.studdet {
    margin-top: -140px;
    margin-left: 10px;
}

.colorcontent {
    height: 992px;
    background-color: white;
}

.file {
    border-block-color: lightgray;
    display: block;
    font-size: large;
    margin-top: -5px;
    border-radius: 6px;
    width: 190px;
    margin-left: -14px;
}

.btncolor {
    margin-left: 20px;
    background-color: hsl(0, 0%, 70%);
    color: white;
    border-radius: 10px;
    transition: 2ms;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
}

.btncolor:hover {
    margin-left: 20px;
    background-color: hsl(0, 0%, 60%);
    color: white;
    border-radius: 10px;
}

.scroll_data {
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 380px;
    margin-top: 0 !important; /* Removes any top margin */
    border-top: none; /* Optional: remove border if visible */
}

.dropdown-association {
    bottom: 7px;
    font-size: 15px;
    font-family: Arial;
    width: 180px;
    height: 50px;
    border-width: 1px;
    border: 1px solid rgb(223, 222, 222);
    color: #454444;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding: 10px;
    background-color: #ffffff;
    width: 569px;
}

.dropdown-association:hover {
    color: #454444;
}

/* admin_edit_staff page */
.expense_edit_formstatus {
    margin-left: 600px;
    margin-top: -40px;
}

.form-control-plaintext {
    border: none;
    border-bottom: 1px solid #ced4da;
    border-radius: 0;
    background-color: transparent;
}

.user_search {
    margin-top: -6%;
    margin-left: -22px;
}

.menu_navbar {
    margin-top: -13%;
}

.polaroid {
    width: 30%;
    background-color: white;
    box-shadow:
        0 4px 8px 0 rgba(0, 0, 0, 0.2),
        0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin-bottom: 25px;
}

.stud_det {
    display: flex;
    justify-content: space-between;
}

/* Style for the accordion card */
.card {
    border: 1px solid #ddd;
    margin-bottom: 25px;
    border-radius: 4px;
}

/* Style for the card header */
.card-header {
    background-color: #f7f7f7;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
}

/* Style for the collapsed button */
.card-header .btn {
    text-decoration: none;
    color: #333;
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    font-size: 16px;
    outline: none;
}

/* Style for the card body */
.card-body {
    display: flex;
    flex-direction: column;
    height: 107%;
    padding: 10px; /* Add padding to provide space between elements */
}

.search-input {
    flex: 0 0 auto; /* Prevent the input from extending */
    margin-bottom: 10px; /* Add some space below the input if needed */
}

/* Style for the collapse */
.collapse {
    display: none;
}

/* Show the collapse content when active */
.collapse.show {
    display: block;
    height: 50%;
    overflow: hidden;
}

.subjects .collapse.show {
    height: max-content;
}

/* Additional styling for hover and focus states */
.card-header .btn:hover,
.card-header .btn:focus {
    color: #3b424a;
    text-decoration: none;
}

.collapse_color {
    color: rgb(126, 129, 134);
}
.inst_name {
    margin-left: 64px;
    margin-top: -96px;
    text-transform: uppercase;
}

/* Chrome, Safari, Edge, Opera */
.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Firefox */
.no-spinner {
    -moz-appearance: textfield !important;
}

.toast {
    width: auto;
    max-width: 100%;
    background-color: #49c8d1;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background-color: #49c8d1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    color: antiquewhite;
}

.toast-header .me-auto {
    font-weight: bold;
    margin-right: auto;
}

.toast-body {
    padding: 0.75rem 1rem;
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 420px;
    padding: 10px;
}

.search-input {
    margin-bottom: 10px;
}

.scrollable-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    white-space: nowrap;
}

.scrollable-list ul {
    display: flex;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
    list-style: none;
    white-space: nowrap;
}

.asst_list {
    margin-top: 10px;
    display: flex;
    flex-wrap: nowrap;
}

.asst_list > div {
    padding: 5px;
}

.instit_image {
    margin-left: -35px;
    height: 100px;
    margin-top: 14px;
}

.list_files {
    width: 150px;
    margin-top: 15px;
}

.doc_images {
    width: 75px;
}

.IDCard {
    width: 489px;
    border: 1px solid chocolate;
    border-radius: 10px;
    height: 317px;
    margin-left: -41px;
    margin-top: -39px;
    position: relative;
}

.inst_img_id_card {
    border-radius: 30px;
    margin-top: -2px;
    height: 69px;
}

.parent_info_id {
    margin-left: -75px;
    color: rgb(6, 92, 92);
    font-size: 15px;
}

.bld_grp_id {
    margin-left: -75px;
    color: rgb(6, 92, 92);
    margin-top: -3px;
    font-size: 15px;
}

.address_id {
    margin-left: -75px;
    color: rgb(6, 92, 92);
    margin-bottom: 44px;
}

.id_contact {
    margin-left: -75px;
    color: rgb(6, 92, 92);
}

.id_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(299px, 1fr));
}

.custom-button {
    padding: 1vw;
    background-color: #ffd700;
    border: none;
    font-size: 1em;
    cursor: pointer;
}

.custom-button:hover {
    background-color: #866605;
}

.custom-btn1 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    height: 2rem;
    padding: 0 1.5rem;
}
.contain_page {
    position: relative;
    margin-top: -14%;
    z-index: 1;
}

.chap_box {
    border-radius: 10px 100px/120px;
    background-color: #f0f3ff;
    height: 120%;
    padding-top: 5%;
}

.stud_profile {
    width: 100%;
    margin-top: -167px;
    position: relative;
    z-index: 1;
}

.logo_contain {
    color: black;
}

.login_btn {
    display: ruby-base-container;
}
.test_tab {
    margin-top: -3%;
}

.test_name {
    margin-top: 12%;
}

.question_tab {
    margin-top: -28%;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .page_heading {
        margin-left: 50px !important;
    }
}

.institute {
    color: green;
    margin-top: 3%;
    font-size: 1rem;
}

.instit_image {
    width: 80%;
    height: auto;
    margin-left: 35%;
    margin-top: 10%;
}

.stud_profile {
    flex: 1;
    margin-bottom: 20px;
}

.image_container {
    flex: 0 0 auto;
    padding-left: 20px;
}

@media (min-width: 240px) {
    .institute {
        font-size: 1rem;
        text-align: center;
        margin-top: 6%;
        margin-left: 20%;
    }

    .stud_profile {
        width: 80%;
        margin-top: -100px;
    }

    .instit_image {
        max-width: 50%;
    }

    .image_container {
        max-width: 80px;
    }

    .student_enroll_id {
        font-size: 1rem;
    }

    .stud_name {
        margin-top: 30%;
        font-size: 1.2rem;
    }
}

@media (min-width: 740px) {
    .institute {
        font-size: 1.5rem;
        text-align: center;
    }

    .stud_profile {
        width: 80%;
        margin-top: -100px;
    }

    .instit_image {
        max-width: 70%;
    }

    .image_container {
        max-width: 100px;
    }

    .student_enroll_id {
        font-size: 1rem;
    }

    .stud_name {
        margin-top: 18%;
        font-size: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 990px) {
    .institute {
        font-size: 1.5rem;
        text-align: center;
    }

    .stud_profile {
        width: 70%;
        margin-top: -100px;
    }

    .instit_image {
        max-width: 70%;
    }

    .image_container {
        max-width: 100px;
    }

    .student_enroll_id {
        font-size: 1rem;
    }

    .stud_name {
        margin-top: 0%;
        font-size: 3rem;
    }
}
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .institute {
        font-size: 2rem;
        text-align: center;
    }
    .stud_profile {
        width: 60%;
        margin-top: -100px;
    }
    .image_container {
        max-width: 100px;
    }

    .instit_image {
        width: 100%;
    }
    .student_enroll_id {
        font-size: 1.3rem;
    }
    .stud_name {
        font-size: 3rem;
        margin-left: 6%;
    }
}

.logout_icon {
    margin-top: -6%;
}

.logout_btn {
    margin-top: -8%;
}

.drop_d_search {
    margin-top: 11%;
    margin-left: -13%;
    width: 130%;
}

.id_container {
    display: flex;
}

.detail_content {
    width: 508px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    height: 338px;
}

.detail_content h6 {
    font-size: 12px;
}

.detail_content p {
    font-size: 10px;
}

.detail_content {
    padding: 5px;
    margin: 5px;
}

.detail_content ul {
    padding: 0;
    font-size: 12px;
}

.detail_content ul li {
    padding: 2px;
    margin: 0;
    font-size: 12px;
}

.decor_item {
    right: 330px;
    bottom: 375px;
    max-width: 154px;
}

.newtonian {
    width: 100%;
}

.decor_item_1 {
    left: 255px;
    bottom: 150px;
    max-width: 100px;
}

.file_upload_btn {
    border-color: blue;
    color: white;
    background-color: blue;
    width: 56%;
    height: 68%;
    border-radius: 10px;
}

.question_form {
    margin-top: 470px;
}

@media (min-width: 240px) and (max-width: 790px) {
    .question_form {
        margin-top: 50px !important;
    }
}

.submit-test-modal .modal-dialog {
    max-width: 60%;
    margin: auto;
}

.submit-test-modal .modal-content {
    padding: 2%;
}

.submit-test-modal .modal-title {
    color: red;
    font-size: 2vw;
}

.submit-test-modal .modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-test-modal .modal-footer .btn {
    background-color: red;
    color: white;
    width: 100%;
    max-width: 300px;
    height: 50px;
    text-align: center;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .submit-test-modal .modal-dialog {
        max-width: 50%;
    }

    .submit-test-modal .modal-title {
        font-size: 1.5vw;
    }

    .submit-test-modal .modal-footer .btn {
        width: 60%;
    }
}

@media (min-width: 992px) {
    .submit-test-modal .modal-dialog {
        max-width: 40%;
    }

    .submit-test-modal .modal-title {
        font-size: 1.2vw;
    }

    .submit-test-modal .modal-footer .btn {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .submit-test-modal .modal-dialog {
        max-width: 30%;
    }

    .submit-test-modal .modal-title {
        font-size: 1vw;
    }

    .submit-test-modal .modal-footer .btn {
        width: 100%;
    }
}

.submit-test-modal .modal-footer .btn:hover {
    background-color: darkred;
    color: white;
}

.collapsible-header {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 10px;
    cursor: pointer;
    margin-bottom: 5px;
    height: 50px;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.dropdown-label {
    white-space: normal;
    word-wrap: break-word;
    display: block;
    padding: 5px;
    overflow-wrap: break-word;
}

.institute_image img {
    width: 100%;
    height: 220px;
    object-fit: fill;
}

.institute_item {
    width: 300px;
    margin: 15px;
    box-sizing: border-box;
}

.fixed-principal {
    position: absolute;
    bottom: 10px;
    right: 20px;
}

.padding_breadcrumb {
    min-height: 100px;
}

.custom-hr {
    border: 1px solid #000;
}

.no-scroll {
    overflow: hidden;
}

.design_rows {
    height: 184px;
}

.handy_pointer {
    cursor: pointer;
}
.eye-view-panel {
    display: flex;
    flex-direction: row !important;
    position: relative;
    top: -37px !important;
    left: 65px;
}

.buttonColor {
    font-size: 15px;
    font-family: Arial;
    width: 180px;
    height: 50px;
    border-width: 1px;
    color: black;
    border-color: #337bc4;
    font-weight: bold;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    background-color: lavender;
}

.card-header-homework {
    background-color: #f7f7f7;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    width: 245px;
}

.course_item .item_content_1 {
    padding: 7px 30px;
}

.scroll_data_sub {
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 153px;
}

.card-header_sub {
    background-color: #f7f7f7;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    margin-bottom: 20px;
    width: 345px;
}

.line_shape_img {
    top: -160px;
    position: relative;
    right: -1442px;
}

.text_breaking {
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: wrap;
    display: flex;
    flex-wrap: wrap;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #3b3d48;
    pointer-events: auto;
}

.payment_mode {
    height: 55px;
}

.sub_docs {
    width: 150px;
    margin-left: 88px;
}

.pdf_format {
    font-size: 48px;
    margin-top: 50px;
}

.attached_image {
    max-width: 300px;
    max-height: 200px;
    margin-top: 10px;
}

.file_link {
    margin-top: 10px;
    display: inline-block;
    color: #007bff;
    text-decoration: none;
}

.file_link:hover {
    text-decoration: underline;
}
@font-face {
    font-family: "MyCustomFont";
    src: url("/assets/fonts/text_gyre.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.applicant-font {
    font-family: "MyCustomFont", sans-serif !important;
    font-size: 40px;
}

.content-font {
    font-family: "MyCustomFont", sans-serif !important;
    font-size: 29px;
}

.paragraph-font {
    font-family: "MyCustomFont", sans-serif !important;
    font-size: 20px;
}

.select_all_stud {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 5px;
    border-radius: 4px;
    font-size: 12px;
    transform: translateY(-100%);
    margin-top: -5px;
}

.scroll_sub {
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 200px;
}

.card-sub {
    display: flex;
    flex-direction: column;
    height: 200px;
    padding: 10px;
}

.chatbox {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.chatbox-header {
    background-color: #e0e0e0;
    color: #343a40;
}

.chatbox-body {
    max-height: 858px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.chat-bubble {
    display: flex;
    margin: 10px 0;
    align-items: flex-start;
}

.chat-bubble.sent {
    flex-direction: row-reverse;
}

.chat-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 10px;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-content {
    max-width: 70%;
    background-color: #ffffff;
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-bubble.sent .chat-content {
    background-color: ivory;
}

.chat-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #000000;
}

.chat-actions {
    margin-top: 10px;
}

.chat-actions .btn {
    font-size: 0.85rem;
}

.page_upper {
    background-color: #fff0e5;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.page_heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.breadcrumb_nav li {
    font-size: 1.2rem;
    color: #000000;
}

.comment_area {
    margin-top: -2rem;
}

.comment_card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.comment_card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.comment_header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.comment_message {
    margin-top: 1rem;
    font-size: 1rem;
    color: #555;
}

.attached_image {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: 5px;
}

.attached_video {
    margin-top: 1rem;
    border-radius: 5px;
}

.comment_hero_name {
    margin: 0;
}

.class-badge {
    cursor: pointer;
    border-block-color: #8d8d8d;
}

.class-badge:hover {
    background-color: #3a10e5;
    color: #f0f0f0;
}

.class-badge.selected {
    background-color: #3a10e5;
    color: white;
}

.badges {
    line-height: 4;
    font-size: 14px;
    font-weight: bold;
    font-family: "Roboto", sans-serif;
    box-shadow: 1px 2px 8px 1px #838789c9;
}

.highlighted {
    border: 2px solid #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.comment_area_notify {
    padding: 30px;
    background-color: #f4f7f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow: hidden;
}

.comment_area_title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.comments_list_container {
    max-height: 895px;
    overflow-y: auto;
    padding-right: 10px;
}

.comment_item {
    flex-direction: row;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 20px;
    background-color: #dedede;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.comment_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.comment_hero_thumbnail {
    flex-shrink: 0;
    margin-right: 20px;
}

.comment_hero_thumbnail img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2980b9;
}

.comment_hero_content {
    flex-grow: 1;
    font-family: "Roboto", sans-serif;
}

.comment_hero_name {
    font-size: 1.2rem;
    color: #34495e;
    font-weight: 500;
}

.comments_post_time {
    display: flex;
    list-style-type: none;
    gap: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
    justify-content: flex-end;
    padding-left: 0;
}

.received_time {
    display: flex;
    list-style-type: none;
    gap: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
    justify-content: flex-start;
    padding-left: 0;
}

.comments_post_time li {
    margin-right: 10px;
}

.subject {
    font-size: 1rem;
    color: #2980b9;
    font-weight: 600;
    margin: 10px 0;
}

.comment_item p {
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.5;
}

.comment_file {
    margin-top: 15px;
}

.comment_file img,
.comment_file video {
    max-width: 100%;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.comment_file img:hover,
.comment_file video:hover {
    transform: scale(1.05);
}

.comment_item.d-flex {
    justify-content: flex-end;
    text-align: right;
}

.encomment_item.d-flex {
    justify-content: flex-end;
    text-align: left;
}

.comment_item.d-flex .comment_hero_thumbnail {
    margin-left: 20px;
}

.comment_item.d-flex .comment_hero_content {
    background-color: #ecf0f1;
    border-radius: 10px;
    padding: 15px;
}

.card_message {
    border: 1px solid #ddd;
    margin-bottom: -5px;
    border-radius: 4px;
}

.message_history_scroll {
    max-height: 750px;
    overflow-y: auto;
    padding-right: 50px;
}

.media_unordered_list_sender {
    cursor: pointer;
    padding-right: 25px;
}

.media_unordered_list_receiver {
    cursor: pointer;
    padding-left: 25px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
    cursor: default;
}

.comments_post_time_stud {
    display: flex;
    list-style-type: none;
    gap: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
    padding-left: 0;
}

.cursor-default {
    cursor: default;
}

.unordered_li {
    cursor: pointer;
}

td,
th {
    cursor: default;
}

.site_header .container {
    width: 90%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.book-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    perspective: 1000px;
}

.book {
    position: relative;
    width: 200px;
    height: 140px;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg);
}

.static-page {
    backdrop-filter: blur(6px);

    position: absolute;
    width: 49%;
    height: 100%;
    background: #fffdf7;
    border: 1px solid #ccc;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.static-page.left {
    left: 0;
    border-right: none;
    border-radius: 5px 0 0 5px;
    transform: translateZ(1px);
}

.static-page.right {
    right: 0;
    border-left: none;
    border-radius: 0 5px 5px 0;
    transform: translateZ(-1px);
}

.flipping-pages {
    position: absolute;
    left: 50%;
    top: 0;
    width: 50%;
    height: 100%;
    transform-origin: left center;
    transform-style: preserve-3d;
}

.flip-page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    transform-origin: left center;
    animation: flipPage 0.5s ease-in-out infinite;
}

.page1 {
    background-color: #f8f4e8;
    animation-delay: 0s;

    /* ==========================================================================
   Team cards: uniform sizing and responsive adjustments
   Ensures all team images and cards have consistent sizes and layout.
   ========================================================================== */
    .amazing-team-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        align-items: stretch;
    }
    .amazing-team-card {
        width: 240px;
        height: 340px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 16px;
        border-radius: 12px;
        background: #ffffff;
        text-align: center;
        overflow: hidden;
        -webkit-box-shadow: 0 6px 18px rgba(23, 23, 23, 0.06);
        box-shadow: 0 6px 18px rgba(23, 23, 23, 0.06);
    }
    .amazing-team-avatar {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid #f3f4f6;
        flex: 0 0 auto;
    }
    .amazing-team-card img {
        width: 120px;
        height: 120px;
        object-fit: cover;
    }
    .amazing-team-name {
        margin-top: 12px;
        font-weight: 700;
        font-size: 16px;
        color: #111827;
    }
    .amazing-team-role {
        font-size: 13px;
        color: #6b7280;
        margin-top: 6px;
    }
    .amazing-team-desc {
        font-size: 13px;
        color: #374151;
        margin-top: 8px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        line-height: 1.3;
    }

    @media (max-width: 576px) {
        .amazing-team-card {
            width: 100%;
            height: auto;
            flex-direction: row;
            align-items: center;
            padding: 12px;
        }
        .amazing-team-avatar {
            width: 64px;
            height: 64px;
            margin-right: 12px;
        }
        .amazing-team-name {
            font-size: 15px;
        }
        .amazing-team-desc {
            -webkit-line-clamp: 2;
        }
    }

    z-index: 1;
}

.page2 {
    background-color: #e8f4f8;
    animation-delay: 0.05s;
    z-index: 2;
}

.page3 {
    background-color: #f4e8f8;
    animation-delay: 0.1s;
    z-index: 3;
}

.page4 {
    background-color: #f8f4e8;
    animation-delay: 0.15s;
    z-index: 4;
}
.page5 {
    background-color: #e8f8f4;
    animation-delay: 0.2s;
    z-index: 5;
}
.page6 {
    background-color: #f4e8f8;
    animation-delay: 0.25s;
    z-index: 6;
}
.page7 {
    background-color: #f8f4e8;
    animation-delay: 0.3s;
    z-index: 7;
}
.page8 {
    background-color: #e8f4f8;
    animation-delay: 0.35s;
    z-index: 8;
}
.page9 {
    background-color: #f4e8f8;
    animation-delay: 0.4s;
    z-index: 9;
}
.page10 {
    background-color: #f8f4e8;
    animation-delay: 0.45s;
    z-index: 10;
}
.page11 {
    background-color: #e8f8f4;
    animation-delay: 0.5s;
    z-index: 11;
}
.page12 {
    background-color: #f4e8f8;
    animation-delay: 0.55s;
    z-index: 12;
}
.page13 {
    background-color: #f8f4e8;
    animation-delay: 0.6s;
    z-index: 13;
}
.page14 {
    background-color: #e8f4f8;
    animation-delay: 0.65s;
    z-index: 14;
}
.page15 {
    background-color: #f4e8f8;
    animation-delay: 0.7s;
    z-index: 15;
}
.page16 {
    background-color: #f8f4e8;
    animation-delay: 0.75s;
    z-index: 16;
}
.page17 {
    background-color: #e8f8f4;
    animation-delay: 0.8s;
    z-index: 17;
}
.page18 {
    background-color: #f4e8f8;
    animation-delay: 0.85s;
    z-index: 18;
}
.page19 {
    background-color: #f8f4e8;
    animation-delay: 0.9s;
    z-index: 19;
}
.page20 {
    background-color: #e8f4f8;
    animation-delay: 0.95s;
    z-index: 20;
}

@keyframes flipPage {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    50% {
        transform: rotateY(-90deg);
        opacity: 0.8;
    }
    100% {
        transform: rotateY(-180deg);
        opacity: 0.2;
    }
}

/* Loading animation
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
 }

.loading-label {color: #333;
  font-size: 16px;
  font-weight: 500;
}

.loading-dots {
  display: flex;
  gap: 6px;
}

.loading-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3498db;
  animation: dot-pulse 1.4s infinite ease-in-out both;
}

.loading-dots .dot-1 {
  animation-delay: -0.32s;
}
.loading-dots .dot-2 {
  animation-delay: -0.16s;
}

@keyframes dot-pulse {
  0%, 80%, 100% {
      transform: scale(0.5);
      opacity: 0.5;
  }
  40% {
      transform: scale(1);
      opacity: 1;
  }
}

.filter-section {
  padding: 20px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end; /* Aligns all items to the bottom */

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-label {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* Enhanced dropdown */
.filter-input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #f9f9ff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background-color: #fff;
}

/* Filter Button - Secondary theme */
.filter-btn {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    color: white;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #495057, #6c757d);
}

/* Carry Forward Button - Primary theme */
.carry-forward-btn {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.carry-forward-btn:hover {
    background: linear-gradient(135deg, #0056b3, #0096c7);
    box-shadow: 0 6px 14px rgba(0, 123, 255, 0.4);
}

.attendance-badge {
    min-width: 130px;
    display: inline-block;
    text-align: center;
}

.min-vh-100 {
    min-height: 100vh !important;
}

.test-main-container {
    max-width: 950px;
    min-width: 0;
    min-height: 540px;
}

.test-title {
    font-size: 1.8rem;
}

.test-badge {
    font-size: 1.1rem;
}

.test-question {
    font-size: 1.25rem;
    letter-spacing: 0.01em;
}

.test-match-container {
    max-width: 100%;
}

.test-match-inner {
    font-size: 1.45rem;
    padding: 2rem 0.5rem;
}

.next-btn {
    margin-top: 1rem !important;
    padding: 0.5rem 2rem !important;
    border-radius: 50px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 600;
    font-size: 1.25rem;
    border: 0;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    letter-spacing: 0.03em;
    transition: background 0.2s;
}
.next-btn:hover,
.next-btn:focus {
    background: linear-gradient(90deg, #0056b3 0%, #007bff 100%);
}

.prev-btn {
    margin-top: 1rem !important;
    margin-right: 0.5rem !important;
    padding: 0.5rem 2rem !important;
    border-radius: 50px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 600;
    font-size: 1.25rem;
    border: 0;
    background: linear-gradient(90deg, #6c757d 0%, #343a40 100%);
    letter-spacing: 0.03em;
    transition: background 0.2s;
}
.prev-btn:hover,
.prev-btn:focus {
    background: linear-gradient(90deg, #343a40 0%, #6c757d 100%);
}

.submit-btn {
    margin-top: 1rem !important;
    padding: 0.5rem 2rem !important;
    border-radius: 50px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 600;
    font-size: 1.25rem;
    border: 0;
    background: linear-gradient(90deg, #28a745 0%, #218838 100%);
    letter-spacing: 0.03em;
    transition: background 0.2s;
}
.submit-btn:hover,
.submit-btn:focus {
    background: linear-gradient(90deg, #218838 0%, #28a745 100%);
}

.next-btn,
.prev-btn,
.submit-btn {
    margin-top: 1rem !important;
    padding: 0.5rem 2rem !important;
    border-radius: 12px !important; /* Less rounded, more square */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 600;
    font-size: 1.25rem;
    border: 0;
    letter-spacing: 0.03em;
    transition: background 0.2s;
}

.next-btn {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
}
.next-btn:hover,
.next-btn:focus {
    background: linear-gradient(90deg, #0056b3 0%, #007bff 100%);
}

.prev-btn {
    margin-right: 0.5rem !important;
    background: linear-gradient(90deg, #6c757d 0%, #343a40 100%);
}
.prev-btn:hover,
.prev-btn:focus {
    background: linear-gradient(90deg, #343a40 0%, #6c757d 100%);
}

.submit-btn {
    background: linear-gradient(90deg, #28a745 0%, #218838 100%);
    color: #fff !important;
}
.submit-btn:hover,
.submit-btn:focus {
    background: linear-gradient(90deg, #218838 0%, #28a745 100%);
}

.next-btn-attractive {
    background: linear-gradient(90deg, #4f8cff 0%, #0056b3 100%);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 2.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 16px 0 rgba(79, 140, 255, 0.12);
    transition:
        background 0.2s,
        transform 0.15s;
    letter-spacing: 0.04em;
}
.next-btn-attractive:hover,
.next-btn-attractive:focus {
    background: linear-gradient(90deg, #0056b3 0%, #4f8cff 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.03);
}

.prev-btn-attractive {
    background: linear-gradient(90deg, #6c757d 0%, #343a40 100%);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 2.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 0.5rem;
    box-shadow: 0 4px 16px 0 rgba(108, 117, 125, 0.12);
    transition:
        background 0.2s,
        transform 0.15s;
    letter-spacing: 0.04em;
}
.prev-btn-attractive:hover,
.prev-btn-attractive:focus {
    background: linear-gradient(90deg, #343a40 0%, #6c757d 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.03);
}

.submit-btn-attractive {
    background: linear-gradient(90deg, #28a745 0%, #218838 100%);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 2.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 16px 0 rgba(40, 167, 69, 0.12);
    transition:
        background 0.2s,
        transform 0.15s;
    letter-spacing: 0.04em;
}
.submit-btn-attractive:hover,
.submit-btn-attractive:focus {
    background: linear-gradient(90deg, #218838 0%, #28a745 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.03);
}

.user-dropdown-menu {
    min-width: 150px;
    max-width: 180px;
    left: auto;
    right: 0;
}

/* Test Results Progress Bar Animations and Effects */
@keyframes bounce {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-10px);
    }
}

@keyframes celebration {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.2) rotate(5deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1) rotate(-5deg);
        opacity: 0.9;
    }
    75% {
        transform: scale(1.3) rotate(3deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes sparkle {
    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.celebration-container {
    position: relative;
    display: inline-block;
}

.celebration-emoji {
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

.progress {
    overflow: visible !important;
}

.progress-bar {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Custom Progress Bar Colors */
.progress-bar-red {
    background: linear-gradient(45deg, #dc3545, #e85563) !important;
}

.progress-bar-orange {
    background: linear-gradient(45deg, #fd7e14, #ffa94d) !important;
}

.progress-bar-green {
    background: linear-gradient(45deg, #28a745, #6f42c1) !important;
}

/* Explosion Container for Emojis */
.emoji-explosion-container {
    position: relative;
    overflow: visible;
}

.emoji-explosion {
    position: absolute;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 10;
}

.emoji-explosion.top-left {
    top: -10px;
    left: -10px;
    animation: explosion-tl 2s ease-in-out infinite;
}

.emoji-explosion.top-right {
    top: -10px;
    right: -10px;
    animation: explosion-tr 2s ease-in-out infinite;
}

.emoji-explosion.bottom-left {
    bottom: -10px;
    left: -10px;
    animation: explosion-bl 2s ease-in-out infinite;
}

.emoji-explosion.bottom-right {
    bottom: -10px;
    right: -10px;
    animation: explosion-br 2s ease-in-out infinite;
}

.emoji-explosion.center-top {
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    animation: explosion-ct 2s ease-in-out infinite;
}

@keyframes explosion-tl {
    0% {
        transform: scale(0) translate(0, 0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) translate(-10px, -10px);
        opacity: 1;
    }
    100% {
        transform: scale(0.8) translate(-20px, -20px);
        opacity: 0;
    }
}

@keyframes explosion-tr {
    0% {
        transform: scale(0) translate(0, 0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) translate(10px, -10px);
        opacity: 1;
    }
    100% {
        transform: scale(0.8) translate(20px, -20px);
        opacity: 0;
    }
}

@keyframes explosion-bl {
    0% {
        transform: scale(0) translate(0, 0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) translate(-10px, 10px);
        opacity: 1;
    }
    100% {
        transform: scale(0.8) translate(-20px, 20px);
        opacity: 0;
    }
}

@keyframes explosion-br {
    0% {
        transform: scale(0) translate(0, 0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) translate(10px, 10px);
        opacity: 1;
    }
    100% {
        transform: scale(0.8) translate(20px, 20px);
        opacity: 0;
    }
}

@keyframes explosion-ct {
    0% {
        transform: translateX(-50%) scale(0) translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateX(-50%) scale(1.3) translateY(-15px);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(0.9) translateY(-30px);
        opacity: 0;
    }
}

.course_item {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.course_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.settings-button.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.settings-button span {
    word-wrap: break-word;
    max-width: 100%;
}

/* Settings Panel Responsive Styles */
.settings-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-button {
    width: 100%;
    min-height: 60px;
    margin-bottom: 10px;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    color: #495057;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.settings-button:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
    text-decoration: none;
}

/* =============================================================================
   UNIFIED PRINT DOCUMENT STYLES (Fee Receipt & History Fee)
   ============================================================================= */

/* Dynamic Print Page Settings - adapts to printer selection */
@page {
    margin: 1mm;
    /* Size will adapt based on browser/printer selection */
}
.page-break {
    page-break-before: always;
}
/* Base Styles for Print Documents */
.print-document-body {
    font-family: "Roboto", Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #fff;
    color: #333;
    line-height: 1.5;
}

.print-container {
    width: 98%;
    max-width: 98%;
    min-height: auto;
    margin: 0 auto;
    padding: 8mm 12mm 12mm 12mm;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    background: white;
    border-radius: 4px;
}

/* Enhanced Header Styles with Box */
.print-header-h {
    text-align: center;
    margin-bottom: -8mm;
    position: relative;
}

.print-school-name {
    font-size: clamp(22px, 5vw, 29px);
    font-weight: bold;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #2c3e50;
}

.print-school-motto {
    font-style: italic;
    font-size: clamp(11px, 3vw, 14px);
    margin-bottom: 6px;
    color: #6c757d;
}

.print-school-address {
    font-size: clamp(10px, 3vw, 13px);
    margin-bottom: 8px;
    color: #495057;
}

.print-title {
    font-size: clamp(18px, 4vw, 22px);
    font-weight: bold;
    position: static; /* in normal flex flow, not absolute */
    transform: none;
    text-align: center;
    flex: 1; /* takes middle space in flex row */
    color: rgb(0, 0, 0);
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

.print-info {
    display: flex;
    flex-direction: row; /* always a single row: Date | FEE RECEIPT | Receipt No */
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 4px;
    font-size: clamp(12px, 3.5vw, 15px);
    margin-bottom: 3mm;
}

.print-info-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: clamp(12px, 3.5vw, 15px);
    margin-top: -3%;
}

/* .print-info is always a row — no breakpoint override needed */

.print-info-label {
    font-weight: bold;
    display: inline-block;
    min-width: 18px;
    color: #2c3e50;
}

.print-info-value {
    font-weight: 500;
    color: #495057;
}
.print-info-history-label {
    display: inline-block;
    min-width: 18px;
    color: #2c3e50;
}

/* Student Details Box Container */
.print-student-details-container {
    border-radius: 8px;
    padding: 0px 15px;
    margin-bottom: 4mm;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.print-student-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 2fr));
    gap: 12px;
    font-size: clamp(2px, 3vw, 4px);
    font-weight: 400;
    margin-bottom: 25px;
    margin-top: 50px;
}

.print-student-detail-item {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px 0;
    font-size: clamp(11px, 3vw, 13px);
    font-weight: 400;
}

.print-student-detail-label {
    font-weight: 500;
    color: #2c3e50;
    min-width: 40px;
    font-size: clamp(11px, 3vw, 13px);
}

.print-student-detail-value {
    font-weight: 400;
    color: #495057;
    flex: 1;
    font-size: clamp(11px, 3vw, 13px);
}

/* Enhanced Signatures Container with Box */
.print-signatures-container {
    border: 0.8px solid black;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 10mm;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(11px, 3vw, 14px);
    border: 1px solid #303030;
    margin-left: 10px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.print-table th {
    text-align: left;
    padding: 10px 8px;
    color: #2c3e50 !important;
    font-weight: bold;
    background: transparent !important;
    border: 2.5px solid #000000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.print-table td {
    padding: 8px;
    vertical-align: top;
    border: 2.5px solid #000000 !important;
    background: transparent !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.print-table .right {
    text-align: left;
}

.print-table .center {
    text-align: center;
}

.print-total-row {
    font-weight: bold;
    background-color: transparent !important;
}

.print-section {
    margin-bottom: -1mm;
}

.print-fee-item {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    border-bottom: 1px dotted #ccc;
    font-size: clamp(10px, 3vw, 12px);
}

.print-fee-amount {
    font-weight: bold;
}

/* Toggle Section */
.print-toggle-section {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.print-toggle-switch {
    margin-left: 10px;
}

.print-watermark-logo {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    object-fit: contain;
    object-position: center;
    opacity: 0.15;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1; /* negative: always behind in-flow siblings */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.print-watermark-logo-history {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    object-fit: contain;
    object-position: center;
    opacity: 0.1;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1; /* negative: always behind in-flow siblings */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* New section below student name */
.print-student-section {
    margin: 10mm 0 5mm 0;
    padding: 5mm 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Signatures - Always in row direction for all sizes */
.print-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: -5mm;
    padding-top: 2mm;
    margin-bottom: 5mm;
    flex-direction: row; /* Always row */
    flex-wrap: wrap;
    gap: 10mm;
}

.print-signature-block {
    text-align: center;
    font-weight: bold;
    font-size: clamp(12px, 3vw, 14px);
    flex: 1;
    min-width: 40mm; /* Reduced min-width to fit A5 */
}

.print-document-number {
    position: static; /* in normal flex flow */
    text-align: right;
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: clamp(12px, 3.5vw, 14px);
    color: rgb(0, 0, 0);
    padding: 0;
    margin: 0;
}

/* Print/No-Print */
.print-no-print {
    display: none;
}

/* Screen-specific Styles */
@media screen {
    .print-document-body {
        background-color: #f5f5f5;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 20px;
    }

    .print-container {
        background-color: #fff;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        height: auto;
        min-height: 85vh;
        max-height: 90vh;
        overflow-y: auto;
    }

    .print-no-print {
        display: block;
        text-align: center;
        margin-top: 10mm;
    }

    .print-btn {
        background: #2c3e50;
        color: #fff;
        border: none;
        padding: 12px 30px;
        cursor: pointer;
        font-family: inherit;
        border-radius: 4px;
        font-size: 15px;
        transition: all 0.3s;
        margin: 10px 5px;
        width: 100%;
        max-width: 200px;
    }

    .print-btn:hover {
        background: #1a252f;
        transform: translateY(-2px);
    }

    .print-btn.cancel {
        background: #e74c3c;
    }

    .print-btn.cancel:hover {
        background: #c0392b;
    }
}
.print-date-top-left {
    position: static;
    flex: 0 0 auto;
    white-space: nowrap;
    color: rgb(0, 0, 0);
    padding: 0;
    margin: 0;
}

/* Student Status Stamp Styles */
.status-stamp {
    background: var(--stamp-bg, rgba(220, 53, 69, 0.1));
    border: 3px solid var(--stamp-color, #dc3545);
    border-radius: 15px;
    color: var(--stamp-color, #dc3545);
    font-size: 22px;
    font-weight: bold;
    padding: 15px 25px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    font-family: "Courier New", monospace;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-style: double;
    border-width: 4px;
    min-width: 120px;
    backdrop-filter: blur(1px);
    z-index: 10;
    pointer-events: none;
    position: relative;
    margin: 0 auto;
    margin-bottom: 10px;
}
.status-stamp-enrolled {
    --stamp-color: #28a745;
    --stamp-bg: rgba(0, 123, 255, 0.1);
}
.status-stamp-promoted {
    --stamp-color: #007bff;
    --stamp-bg: rgba(40, 167, 69, 0.1);
}
.status-stamp-failed {
    --stamp-color: #6c757d;
    --stamp-bg: rgba(108, 117, 125, 0.1);
}
.status-stamp-dropped {
    --stamp-color: #fd7e14;
    --stamp-bg: rgba(253, 126, 20, 0.1);
}
.status-stamp-transferred {
    --stamp-color: #ffc107;
    --stamp-bg: rgba(255, 193, 7, 0.1);
}
.status-stamp-graduated {
    --stamp-color: #17a2b8;
    --stamp-bg: rgba(23, 162, 184, 0.1);
}
.status-stamp .status-stamp-inner {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    pointer-events: none;
}

/* Match Questions Styling */
.match-questions-container,
.match-answers-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    min-height: 300px;
}

.match-question-item,
.match-answer-item {
    transition: all 0.2s ease;
}

.match-question-item:hover,
.match-answer-item:hover {
    transform: translateY(-2px);
}

.match-question-item,
.match-answer-item {
    transition: all 0.2s ease;
}

.question-card,
.answer-card {
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
}

.question-card:hover,
.answer-card:hover {
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15) !important;
}

.question-btn,
.answer-btn {
    border: none !important;
    background: transparent !important;
    font-size: 0.9rem;
    line-height: 1.3;
    min-height: 45px;
    transition: all 0.2s ease;
}

.question-btn:hover,
.answer-btn:hover {
    transform: scale(1.02);
}

.answer-btn[draggable="true"] {
    cursor: grab;
}

.answer-btn[draggable="true"]:active {
    cursor: grabbing;
}

.dragging {
    transform: rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
    z-index: 1000;
}

/* Match result colors */
.btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.btn-outline-danger {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

/* Add some spacing for better visual separation */
.match-questions-container h6,
.match-answers-container h6 {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Match Questions Text Visibility Improvements */
.match-question-item .question-btn {
    background-color: #f8f9fa !important;
    border: 2px solid #0d6efd !important;
    color: #212529 !important;
    transition: all 0.2s ease;
}

.match-question-item .question-btn:hover:not(:disabled) {
    background-color: #e7f1ff !important;
    transform: translateY(-1px);
}

.match-answer-item .answer-btn {
    background-color: #ffffff !important;
    border: 2px solid #198754 !important;
    color: #212529 !important;
    transition: all 0.2s ease;
    cursor: grab;
}

.match-answer-item .answer-btn:hover:not(:disabled) {
    background-color: #f0fff4 !important;
    transform: translateY(-1px);
}

.match-answer-item .answer-btn:active:not(:disabled) {
    cursor: grabbing;
}

.match-answer-item .answer-btn.dragging {
    background-color: #e3f2fd !important;
    border-color: #1976d2 !important;
    cursor: grabbing;
}

/* Ensure text is always visible */
.question-btn small,
.answer-btn small {
    color: #212529 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

/* Container improvements */
.match-questions-container,
.match-answers-container {
    min-height: 200px;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.match-questions-container h6,
.match-answers-container h6 {
    color: #495057 !important;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* Assessment Results Review Styling */
.border-left {
    border-left: 4px solid #007bff !important;
}

.result-card-correct {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745 !important;
}

.result-card-incorrect {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545 !important;
}

.result-card-partial {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107 !important;
}

.results-summary-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.answer-item-correct {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.answer-item-incorrect {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.explanation-box {
    background-color: #f8f9fa;
    border-left: 4px solid #ffc107;
    border-radius: 0 4px 4px 0;
    padding: 12px 16px;
    margin-top: 10px;
}

.marks-badge {
    font-size: 0.9rem;
    padding: 6px 12px;
}

/* Modal Styles for Member/Student Selection */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 720px;
    max-height: 100vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 1rem;
}

.search-container {
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.member-list,
.student-list {
    max-height: 300px;
    overflow-y: auto;
}

.member-item {
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.member-item:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.member-item.selected {
    background-color: #e3f2fd;
    border-color: #1976d2;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-name {
    font-weight: 500;
    color: #333;
}

.member-details {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.amount-input,
.desc-input {
    flex: 1;
    padding: 0.375rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.875rem;
}

.amount-input {
    max-width: 120px;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

.association-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.association-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.association-buttons .badge {
    font-size: 0.75rem;
}

/* Main Page WASM Loading Indicator Starts */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e9ecef;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    color: #007bff;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    margin-top: 20px;
}

.loading-subtext {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
    margin-top: 10px;
    text-align: center;
}

.progress-container {
    width: 80%;
    max-width: 300px;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #007bff;
    width: 0%;
    transition: width 0.3s ease;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

.loading-text.pulse {
    animation: pulse 2s infinite;
}

#app-placeholder {
    display: none;
}
/* Main Page WASM Loading Indicator Ends */

/* Login toggle container: aligns buttons and ensures clickability above overlays */
.login-toggle {
    display: flex;
    width: 100%;
    gap: 8px;
    position: relative;
    z-index: 999;
    pointer-events: auto;
}

/* Toggle buttons share sizing and typography */
.login-toggle__btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #0d6efd;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

/* Active (selected) state */
.login-toggle__btn--active {
    background: #0d6efd;
    color: #fff;
}

/* Inactive (unselected) state */
.login-toggle__btn--inactive {
    background: #fff;
    color: #0d6efd;
}

/* Institutions Page Styles */
.expiry-warning-expired {
    color: #140d0dff;
    background: #fff3e0;
    border: 1px solid #ff9800;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 12px;
}

.expiry-warning-soon {
    color: #140d0dff;
    background: #fff3e0;
    border: 1px solid #ff9800;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 12px;
}

.expiry-warning-icon {
    margin-right: 8px;
}

.loading-placeholder {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.date-container {
    margin-left: 65px;
}

/* Profile Page Styles */
.profile-flex-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f6fa 0%, #e8eaf6 100%);
}
.profile-main-content {
    flex: 1;
    padding: 3rem;
    background: #d2d7e6ad;
    min-height: 100vh;
    box-sizing: border-box;
    width: 100%;
}
.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 2px solid #e1e8ed;
}
.profile-bottom-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 1.5rem 0;
    box-sizing: border-box;
}
.profile-back-btn {
    background: #222f3e;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(34, 47, 62, 0.2);
}
.profile-back-btn:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 47, 62, 0.3);
}
.profile-back-icon {
    margin-right: 0.5rem;
}
.profile-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #222f3e;
    text-align: center;
    flex: 1;
    margin: 0;
    background: linear-gradient(90deg, #222f3e, #576574);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.profile-card {
    background: #fff;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(34, 47, 62, 0.12);
    position: relative;
    border: 1px solid #e1e8ed;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(34, 47, 62, 0.15);
}
.profile-edit-btn {
    background: linear-gradient(135deg, #222f3e, #576574);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(34, 47, 62, 0.2);
}
.profile-edit-btn:hover {
    background: linear-gradient(135deg, #1a252f, #485563);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(34, 47, 62, 0.3);
}
.profile-edit-icon {
    margin-right: 0.5rem;
}
.profile-loading {
    text-align: center;
    padding: 2rem;
    color: #576574;
}
.profile-loading-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.profile-error {
    color: #ee5253;
    background: #fee;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}
.profile-error-icon {
    margin-right: 0.5rem;
}
.profile-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border-left: 5px solid #222f3e;
}
.profile-avatar {
    border-radius: 50%;
    width: 110px;
    height: 110px;
    border: 4px solid #fff;
    margin-right: 2rem;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(34, 47, 62, 0.15);
    transition: transform 0.3s ease;
}
.profile-avatar:hover {
    transform: scale(1.05);
}
.profile-name {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a252f;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.profile-designation {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #ced4da;
}
.profile-email {
    color: #2c3e50;
    font-size: 1.05rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}
.profile-email-icon {
    margin-right: 0.5rem;
}
.profile-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.profile-label {
    font-weight: 700;
    color: #2c3e50;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #2c3e50, #4a6572);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.profile-value {
    color: #1a252f;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.85rem 1.2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border-left: 4px solid #222f3e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.profile-date-of-birth {
    grid-column: 1 / span 2;
}

/* Profile edit form */
.profile-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.profile-edit-label {
    font-weight: bold;
    color: #576574;
    display: block;
    margin-bottom: 0.5rem;
}
.profile-edit-full {
    grid-column: 1 / span 2;
}
.profile-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 2px solid #e1e8ed;
    font-size: 1rem;
    transition: border-color 0.3s;
    outline: none;
}
.profile-input:focus {
    border-color: #222f3e;
}
.profile-edit-actions {
    text-align: right;
    margin-top: 2rem;
}
.profile-btn-icon {
    margin-right: 0.5rem;
}
.profile-btn-save {
    background: #222f3e;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    margin-right: 1rem;
    transition: background-color 0.3s;
}
.profile-btn-save:hover {
    background-color: #1a252f;
}
.profile-btn-cancel {
    background: #ee5253;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.profile-btn-cancel:hover {
    background-color: #d63031;
}

/* Profile page — responsive (mobile + small desktop) */
@media screen and (max-width: 768px) {
    .profile-main-content {
        padding: 1.25rem 1rem;
    }
    .profile-card {
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
    }
    .profile-title {
        font-size: 1.5rem;
    }
    .profile-bottom-actions {
        gap: 1rem;
        margin: 1.25rem auto 0;
        padding: 1rem 0;
    }
    /* Equal-width buttons, centered, never overflow */
    .profile-back-btn,
    .profile-edit-btn {
        flex: 1 1 0;
        min-width: 0;
        width: 100%;
        padding: 0.7rem 0.75rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    /* Edit form: stack fields in a single column on mobile */
    .profile-edit-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .profile-edit-full {
        grid-column: 1 / span 1;
    }
    .profile-edit-actions {
        text-align: center;
    }
    .profile-btn-save,
    .profile-btn-cancel {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .profile-main-content {
        padding: 1rem 0.75rem;
    }
    .profile-back-btn,
    .profile-edit-btn {
        padding: 0.65rem 0.5rem;
        font-size: 0.9rem;
    }
}

/* Fee Structure Variable Checkbox Customization */
.variable-checkbox-container {
    font-size: 2rem;
}
.variable-checkbox {
    transform: scale(1.3);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* dropdown menu for fee structure admission type */
.fee-structure-dropdown-menu {
    position: absolute;
    padding: 6px 10px;
    width: 100%;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dropdown.position-relative {
    position: relative;
}

.dropdown.position-relative .dropdown-menu {
    position: absolute !important;
    top: 130% !important;
    left: 0 !important;
    z-index: 2000;
}

.print-receipt-right-align {
    text-align: right !important;
}

#report-print-section .fw-bold {
    margin-top: 10px !important;
}

#report-print-section .nums {
    margin-top: 30px !important;
}

/* Header Mobile View Fixes */
@media screen and (max-width: 991px) {
    /* Mobile Header Layout */
    .site_header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        z-index: 1003;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin-bottom: 0 !important;
    }

    .site_header .container {
        padding: 10px 15px;
        max-width: 100%;
        margin-bottom: 0;
    }

    .site_header .row.my-2 {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Mobile header column alignment */
    .site_header .row > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Add padding to main content to account for fixed header */
    main {
        margin-top: 60px;
    }

    /* Remove any default body padding */
    body {
        padding-top: 0 !important;
    }

    /* Ensure no gap between header and content */
    .site_header + main,
    main {
        padding-top: 0;
    }

    .site_header + main > .banner_section,
    .site_header + main > section:first-child {
        margin-top: 80px;
    }

    /* Main Logo Styling */
    .main-logo {
        max-height: 40px;
        width: auto;
    }

    /* School Logo Styling */
    .school-logo-img {
        max-height: 35px;
        max-width: 45px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    /* Mobile User Button */
    .mobile-user-btn {
        background: transparent;
        border: none;
        font-size: 18px;
        color: #101213;
        padding: 8px 12px;
        margin-left: 10px;
    }

    .mobile-user-btn:hover {
        color: #3a10e5;
    }

    /* Hamburger Button Styling */
    .navbar-toggler {
        border: 1px solid #dedfe0;
        padding: 8px 12px;
        font-size: 18px;
        margin-right: 0;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        border-color: #3a10e5;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Backdrop overlay for mobile menu - only behind content, not navbar */
    body::after {
        content: "";
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    body.navbar-open::after {
        opacity: 1;
        pointer-events: auto;
    }

    /* Hide the duplicate mobile menu button in header_btns_group */
    .header_btns_group .mobile_menu_btn {
        display: none !important;
    }

    /* Make navbar collapse scrollable and full width */
    .main_menu .navbar-collapse {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100vw;
        height: auto;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        overflow-x: hidden;
        background: white;
        z-index: 1002;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        margin: 0;
        padding: 0;
    }

    .main_menu .navbar-collapse.collapsing {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100vw;
        height: auto;
    }

    .main_menu .navbar-collapse.show {
        display: block !important;
        height: auto;
    }

    /* Smooth scrolling for the navigation */
    .navbar-collapse::-webkit-scrollbar {
        width: 6px;
    }

    .navbar-collapse::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .navbar-collapse::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

    .navbar-collapse::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    /* Mobile Menu Sections */
    .mobile-menu-section {
        border-bottom: 1px solid #e0e0e0;
        width: 100%;
    }

    .mobile-academic-year,
    .mobile-search {
        background: #f8f9fa;
        width: 100%;
    }

    .mobile-search .header_search {
        margin: 0;
        width: 100%;
    }

    .mobile-search .header_search input {
        border-radius: 6px;
        border: 1px solid #dedfe0;
        padding: 10px 12px;
        width: 100%;
    }

    /* Ensure the menu items are visible and properly spaced */
    .main_menu_list {
        padding: 10px 0 20px 0;
        width: 100%;
    }

    /* Fix dropdown menus in mobile view */
    .main_menu_list .dropdown-menu {
        display: none;
        position: static !important;
        float: none;
        width: 100% !important;
        margin: 0 !important;
        border: none;
        box-shadow: none;
        background-color: #f0f3ff;
        padding: 5px 0;
        transform: none !important;
        inset: auto !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Show dropdown when parent has .show class (Bootstrap toggle) */
    .main_menu_list .dropdown.show > .dropdown-menu,
    .main_menu_list .dropdown-menu.show {
        display: block !important;
    }

    /* Style dropdown items in mobile */
    .main_menu_list .dropdown-menu > li {
        width: 100%;
    }

    .main_menu_list .dropdown-menu > li > a {
        padding: 12px 20px 12px 40px;
        color: #707070;
        display: block;
        width: 100%;
        font-size: 14px;
    }

    .main_menu_list .dropdown-menu > li:hover > a,
    .main_menu_list .dropdown-menu > li.active > a {
        color: #3a10e5;
        background-color: #e8ecff;
    }

    /* Adjust dropdown arrow for mobile */
    .main_menu_list .dropdown > a:after {
        float: right;
        margin-left: 10px;
        transition: transform 0.3s ease;
    }

    /* Rotate arrow when dropdown is open */
    .main_menu_list .dropdown.show > a:after {
        transform: rotate(180deg);
    }

    /* Make dropdown links clickable in mobile */
    .main_menu_list .dropdown > a {
        cursor: pointer;
    }

    /* Ensure dropdown toggle works */
    .main_menu_list .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
    }

    /* Mobile Menu List Styling */
    .main_menu_list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .main_menu_list > li {
        border-bottom: 1px solid #e0e0e0;
        width: 100%;
        display: block;
    }

    .main_menu_list > li:last-child {
        border-bottom: none;
    }

    .main_menu_list > li > a {
        padding: 15px 20px;
        display: block;
        font-size: 15px;
        font-weight: 500;
        width: 100%;
        color: #2f3034;
    }

    .main_menu_list > li:hover > a,
    .main_menu_list > li.active > a {
        background-color: #f8f9fa;
        color: #3a10e5;
    }

    /* Settings in mobile menu */
    .mobile-menu-section .main_menu_list {
        margin-top: 0;
    }

    .mobile-menu-section .main_menu_list > li > a {
        color: #707070;
    }

    .mobile-menu-section .main_menu_list > li > a i {
        color: #3a10e5;
    }
}

/* Additional mobile fixes for smaller screens */
@media screen and (max-width: 767px) {
    .site_header {
        top: 0;
    }

    main {
        margin-top: 55px;
    }

    body {
        padding-top: 0 !important;
    }

    .main_menu .navbar-collapse {
        top: 60px;
        max-height: calc(100vh - 55px);
    }

    body::after {
        top: 55px;
    }

    .main-logo {
        max-height: 35px;
    }

    .school-logo-img {
        max-height: 30px;
        max-width: 40px;
    }

    .navbar-toggler {
        padding: 6px 10px;
        font-size: 16px;
    }

    .mobile-user-btn {
        font-size: 16px;
        padding: 6px 10px;
    }

    .main_menu_list > li > a {
        padding: 13px 18px;
        font-size: 14px;
    }

    .main_menu_list .dropdown-menu > li > a {
        padding: 10px 18px 10px 36px;
        font-size: 13px;
    }

    .card {
        border-radius: 8px !important;
        margin-bottom: 12px !important;
    }

    .card-body {
        padding: 1rem !important;
    }

    .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }

    /* Make selects more touch-friendly */
    select[multiple] {
        min-height: 120px !important;
    }

    /* Adjust form controls for mobile */
    .form-control-sm,
    .form-select-sm {
        font-size: 14px !important;
        padding: 0.4rem 0.5rem !important;
    }

    /* Make checkboxes larger for better touch targets */
    .form-check-input {
        width: 1.2em !important;
        height: 1.2em !important;
        margin-top: 0.15em !important;
    }

    .form-check-label {
        font-size: 14px !important;
        padding-left: 0.25rem !important;
    }

    /* Permissions grid height adjustment */
    .permissions-grid {
        max-height: 250px !important;
    }

    /* Button adjustments */
    .btn_primary {
        font-size: 14px !important;
        padding: 0.5rem 1rem !important;
    }

    /* Better spacing for instruction text */
    .small.text-muted {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
}

@media screen and (max-width: 575px) {
    main {
        margin-top: 50px;
    }

    body {
        padding-top: 0 !important;
    }

    .main_menu .navbar-collapse {
        top: 70px;
        max-height: calc(100vh - 50px);
    }

    body::after {
        top: 50px;
    }

    .main-logo {
        max-height: 30px;
    }

    .school-logo-img {
        max-height: 28px;
        max-width: 38px;
    }

    .site_header .container {
        padding: 8px 10px;
    }

    .mobile-academic-year,
    .mobile-search {
        padding: 8px 0px !important;
    }

    .main_menu_list > li > a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .main_menu_list .dropdown-menu > li > a {
        padding: 10px 15px 10px 30px;
        font-size: 13px;
    }
    .instruction-text {
        font-size: 12px;
    }
    select.form-select-sm {
        width: 120px; /* or whatever width you need */
        min-width: 100px; /* optional minimum width */
        max-width: 150px; /* optional maximum width */
    }
    .btn_primary {
        font-size: 9px !important; /* smaller font size */
        padding: 0.25rem 0.5rem !important; /* smaller padding for smaller button */
        line-height: 1 !important; /* adjust line height */
    }
    .wid {
        width: 100%;
    }
    /* If the button has icons, you might want to adjust those too */
    .btn_primary i {
        font-size: 10px !important; /* smaller icon size */
    }

    /* If you need to make the button even smaller */
    .btn_primary small {
        font-size: 12px !important; /* smaller text for the small elements */
    }
    .btn span small {
        padding: 8px 0 !important;
    }
    .managestaff_title {
        font-size: 15px !important;
        margin-bottom: 15px;
        line-height: 1;
    }

    .card-body {
        padding: 0.75rem !important;
    }

    .card-title {
        font-size: 1rem !important;
    }

    .permissions-grid {
        max-height: 200px !important;
    }
}
@media screen and (max-width: 1024px) {
    .header_btns_group .login_btn .login-label {
        display: inline !important;
        font-size: 10px;
        margin-left: 6px;
        vertical-align: middle;
    }
}
/* Align logout menu to the right edge of the user-icon toggle (mobile + laptop). */
.select_language .dropdown-menu {
    left: auto !important;
    right: 0 !important;
    min-width: auto;
    padding: 4px 8px;
}
.select_language .dropdown-menu > li > a {
    padding: 4px 8px !important;
    white-space: nowrap;
}
@media screen and (max-width: 575px) {
    .select_language .dropdown-menu {
        padding: 3px 6px;
    }
    .select_language .dropdown-menu > li > a {
        padding: 3px 6px !important;
        font-size: 13px;
    }
}

/* Space out Profile / Log Out items in the user-icon dropdown. */
.user-action-menu > li + li { margin-top: 6px; padding-top: 6px; border-top: 1px solid #eef0f5; }
.contact_info_box {
    text-align: left !important;
}

/* Tablet / small-desktop breakpoint improvements (approx 720px - 900px)
   Make .col-md-4 behave as two columns per row so panels don't overflow. */
@media (min-width: 720px) and (max-width: 900px) {
    .row.justify-content-lg-between.p-3,
    .row.justify-content-lg-between.p-3 + .row {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Limit col-md-4 to two-per-row instead of three */
    .col-md-4 {
        -ms-flex: 0 0 48% !important;
        flex: 0 0 48% !important;
        max-width: 48% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Keep internal padding consistent and avoid horizontal scroll */
    .designation_panal,
    .designationview {
        box-sizing: border-box;
        padding: 1rem !important;
    }

    /* Place permissions row items full width when they would otherwise overflow */
    .designationview {
        margin-top: 0 !important;
    }

    /* Ensure select and textarea fit their column */
    .desig_form,
    .desig_exist {
        width: 100% !important;
    }

    /* Make the permissions card center when shown below */
    .designationview {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Designation page - responsive fixes for permissions and panels */
@media (max-width: 767px) {
    .designation_panal,
    .designationview {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1rem !important;
        box-sizing: border-box;
    }
    .desig_form,
    .desig_exist,
    .list-group-item,
    .checkbox_group,
    .unordered_list_block {
        width: 100% !important;
    }
    /* Make permission lists scrollable inside the card on small screens */
    .designationview .list-group-item,
    .designationview .checkbox_group {
        max-height: 320px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-right: 0.5rem;
    }
    /* Ensure select shows multiple values and becomes scrollable */
    select.desig_exist {
        height: auto;
        min-height: 120px;
        max-height: 260px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .checkbox_item {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .permission_check_data {
        display: inline-block;
        padding: 4px 8px;
        border-radius: 6px;
        background: #2ecc71;
        color: #06361f;
        font-size: 0.85rem;
    }

    .designationview .checkbox_group li {
        list-style: none;
        margin-bottom: 0.4rem;
    }

    .designation_panal .btn_primary,
    .designationview .btn_primary {
        width: auto;
        padding: 10px 18px;
    }
}

/* Mobile-only: make Add/Delete buttons compact and visually prominent without affecting desktop */
@media (max-width: 767px) {
    .designation_panal .d-flex.justify-content-center,
    .designation_panal .text-center {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .designation_panal .btn_primary,
    .designationview .btn_primary {
        display: inline-block !important;
        width: auto !important;
        min-width: 160px !important;
        padding: 12px 22px !important;
        border-radius: 10px !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        box-shadow: 0 8px 20px rgba(74, 7, 255, 0.12) !important;
        transition:
            transform 0.12s ease,
            box-shadow 0.12s ease !important;
    }

    .designation_panal .btn_primary:active,
    .designationview .btn_primary:active {
        transform: translateY(1px) !important;
        box-shadow: 0 4px 12px rgba(74, 7, 255, 0.08) !important;
    }

    /* Make the select box tidy on mobile */
    .designation_panal select.desig_exist {
        border-radius: 8px !important;
        padding: 8px 10px !important;
        box-shadow: none !important;
        border: 1px solid #cfd8e3 !important;
    }

    /* Keep spacing consistent under the select text */
    .designation_panal p.my-2.mx-3 {
        margin-left: 0.75rem !important;
        margin-right: 0.75rem !important;
    }
}

/* Keep permission label buttons sized to content (not full-width) */
.permission_check_data,
.item-list,
.label-primary {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    padding: 4px 10px !important;
}

/* Ensure list-group items don't force labels to stretch */
.list-group-item .permission_check_data,
.checkbox_group li .permission_check_data {
    display: inline-block !important;
    width: auto !important;
}

/* Prevent flex children from stretching the label */
.checkbox_item .permission_check_data {
    flex: 0 0 auto !important;
}

/* Desktop adjustments: keep compact look */
@media (min-width: 768px) {
    .permission_check_data {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* ============================================
   PRINT RECEIPT COMPONENT STYLES
   Scoped to avoid affecting other pages
   ============================================ */

/* ─────────────────────────────────────────────
   PAYMENT RECEIPT MODAL  — screen styles only
   ───────────────────────────────────────────── */

.print-receipt-modal-backdrop {
    display: block !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(2px) !important;
}

/* Wider, centred dialog */
.print-receipt-modal-dialog {
    max-width: 680px !important;
}

/* Modal card — no radius on top so accent stripe is flush */
.print-receipt-modal-content {
    background: #ffffff !important;
    border-radius: 0 0 16px 16px !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden !important;
    border-top: 4px solid #00bcd4 !important;
}

/* Header */
.print-receipt-modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e8e8e8 !important;
    padding: 16px 28px !important;
}

.print-receipt-modal-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #00838f !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.print-receipt-modal-title::before {
    content: "" !important;
    display: inline-block !important;
    width: 4px !important;
    height: 18px !important;
    background: #00bcd4 !important;
    border-radius: 2px !important;
}

/* Scrollable body with subtle texture */
.print-receipt-modal-body {
    background: #e8edf2 !important;
    padding: 28px 28px 20px !important;
    max-height: 76vh !important;
    overflow-y: auto !important;
}

/* ── White receipt card ── */
.print-receipt-area {
    background: #ffffff !important;
    border: 1px solid #c8cfd8 !important;
    border-radius: 10px !important;
    padding: 32px 36px 28px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09) !important;
    color: #111 !important;
    position: relative !important;
}

/* hairline teal accent at top of the receipt card */
.print-receipt-area::before {
    content: "" !important;
    display: block !important;
    height: 3px !important;
    margin: -32px -36px 26px !important;
    background: linear-gradient(90deg, #00bcd4 0%, #0097a7 100%) !important;
    border-radius: 10px 10px 0 0 !important;
}

/* ── Company header ── */
.print-receipt-company-header {
    text-align: center !important;
    padding-bottom: 18px !important;
    margin-bottom: 18px !important;
    border-bottom: 2px solid #1a1a1a !important;
}

.print-receipt-company-title {
    font-size: 21px !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    color: #0d0d0d !important;
    display: block !important;
    letter-spacing: 0.3px !important;
}

.print-receipt-company-address {
    font-size: 13px !important;
    line-height: 1.85 !important;
    color: #555 !important;
    margin-top: 7px !important;
}

.print-receipt-company-gst {
    font-size: 12px !important;
    font-weight: bold !important;
    color: #1a1a1a !important;
    margin-top: 9px !important;
    letter-spacing: 0.3px !important;
    display: block !important;
}

.print-receipt-company-contact {
    font-size: 12px !important;
    font-weight: bold !important;
    color: #1a1a1a !important;
    margin-top: 5px !important;
    letter-spacing: 0.3px !important;
    display: block !important;
}

/* ── Section title ── */
.print-receipt-title {
    text-align: center !important;
    font-size: 15px !important;
    font-weight: bold !important;
    letter-spacing: 2px !important;
    color: #1a1a1a !important;
    margin: 20px 0 18px !important;
    display: block !important;
    text-transform: uppercase !important;
}

/* ── Details table ── */
.print-receipt-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #333 !important; /* strong outer outline */
    outline: 1px solid #333 !important;
    margin-bottom: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.print-receipt-table-cell {
    padding: 12px 16px !important;
    border: 1px solid #9aa3b0 !important; /* darker inner grid lines */
    font-size: 13.5px !important;
    vertical-align: middle !important;
    line-height: 1.55 !important;
}

/* Left column — label */
.print-receipt-label-cell {
    width: 36% !important;
    background: #f4f6f9 !important;
    color: #5a6475 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}

/* Right column — value */
.print-receipt-value-cell {
    width: 64% !important;
    background: #ffffff !important;
    color: #0d0d0d !important;
    font-weight: 700 !important;
}

/* zebra stripe on alternate rows */
.print-receipt-table tbody tr:nth-child(even) .print-receipt-value-cell {
    background: #fafbfd !important;
}

/* ── Separator ── */
.print-receipt-separator {
    border: none !important;
    border-top: 1px dashed #bdc5cf !important;
    margin: 24px 0 !important;
    display: block !important;
}

/* ── Signature row ── */
.print-receipt-signature-section {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 46px !important;
    padding: 0 20px !important;
}

.print-receipt-signature-item {
    text-align: center !important;
    width: 38% !important;
}

.print-receipt-signature-label {
    display: block !important;
    border-top: 1.5px solid #666 !important;
    padding-top: 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #333 !important;
    letter-spacing: 0.2px !important;
}

/* ── Thank-you footer ── */
.print-receipt-footer {
    text-align: center !important;
    font-size: 13px !important;
    font-style: italic !important;
    color: #6b7280 !important;
    margin-top: 24px !important;
    padding-top: 14px !important;
    display: block !important;
}

/* ── Print button ── */
.print-receipt-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 11px 30px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 10px rgba(0, 188, 212, 0.35) !important;
    letter-spacing: 0.3px !important;
}

.print-receipt-btn:hover {
    background: linear-gradient(135deg, #0097a7 0%, #00838f 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 151, 167, 0.45) !important;
    transform: translateY(-1px) !important;
}

/* ── Modal footer ── */
.print-receipt-modal-footer {
    padding: 14px 28px !important;
    border-top: 1px solid #e8e8e8 !important;
    display: flex !important;
    justify-content: flex-end !important;
    background: #f8fafb !important;
}

/* Receipt print styles are defined in print.css (loads before this file,
   but handled exclusively there to avoid cascade conflicts). */

/* ===== Payment Details Page Enhanced Design ===== */
.payment-details-page {
    min-height: 100vh;
    padding: 20px 0;
}

.payment-details-banner {
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.payment-details-banner h1 {
    color: #2d3748;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.payment-details-breadcrumb {
    background: transparent;
}

.payment-details-breadcrumb .breadcrumb-item a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.payment-details-breadcrumb .breadcrumb-item a:hover {
    color: #2d3748;
    text-decoration: underline;
}

.payment-details-breadcrumb .breadcrumb-item.active {
    color: #2d3748;
    font-weight: 500;
}

.payment-details-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.payment-details-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.payment-details-card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    color: #2d3748;
}

.payment-details-card-header h5 {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.payment-details-card-body {
    padding: 2rem;
    background: white;
}

.payment-details-form-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    display: block;
}

.payment-details-form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.payment-details-form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.payment-details-form-control::placeholder {
    color: #a0aec0;
}

.payment-details-btn-primary {
    background-color: #4299e1;
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-details-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.4);
    color: white;
    background-color: #3182ce;
}

.payment-details-btn-primary:active {
    transform: translateY(0);
}

.payment-details-btn-secondary {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-details-btn-secondary:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
    transform: translateY(-1px);
}

.payment-details-btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-details-btn-danger:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    transform: translateY(-1px);
}

.payment-details-btn-success {
    background-color: #48bb78;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-details-btn-success:hover {
    background-color: #38a169;
    color: white;
    transform: translateY(-1px);
}

/* Submit Payment Button */
.payment-details-submit-btn {
    background-color: #4299e1;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    min-width: 200px;
    margin: 0 auto;
}

.payment-details-submit-btn:hover {
    background-color: #3182ce;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.4);
}

.payment-details-submit-btn:active {
    transform: translateY(0);
}

.payment-details-stats-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.payment-details-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.payment-details-table thead {
    background-color: #f8fafc;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
}

.payment-details-table th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-align: left;
}

.payment-details-table tbody tr {
    background: white;
    transition: background-color 0.2s;
}

.payment-details-table tbody tr:hover {
    background-color: #f7fafc;
}

.payment-details-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.payment-details-table tbody tr:last-child td {
    border-bottom: none;
}

.payment-details-empty-state {
    padding: 3rem;
    text-align: center;
    color: #a0aec0;
}

.payment-details-empty-state-icon {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.payment-details-modal {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.payment-details-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1.5rem;
    color: white;
}

.payment-details-modal-body {
    padding: 2rem;
    background: white;
}

.payment-details-modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem;
    background: #f7fafc;
}

.payment-details-year-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.payment-details-year-badge {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(66, 153, 225, 0.2);
}

.payment-details-year-badge .badge-actions {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.payment-details-alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.payment-details-alert-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.payment-details-alert-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.payment-details-section-title {
    color: #2d3748;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.payment-details-input-group {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.payment-details-input-group .form-group {
    flex: 1;
}

.payment-details-radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.payment-details-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
}

.payment-details-radio-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.payment-details-amount-display {
    background: #f7fafc;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 2px solid #e2e8f0;
}

.payment-details-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.payment-details-amount-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2d3748;
}

.payment-details-amount-label {
    color: #718096;
    font-weight: 500;
}

.payment-details-amount-value {
    color: #2d3748;
    font-weight: 600;
}

.payment-details-print-btn {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-details-print-btn:hover {
    background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
    color: white;
    transform: translateY(-1px);
}

/* Payment mode text styling (replaces badge) */
.payment-mode-text {
    font-weight: 500;
    color: #4a5568;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

/* Icon-only print button */
.btn-outline-primary.border-0 {
    background-color: transparent;
    color: #4299e1;
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-outline-primary.border-0:hover {
    background-color: rgba(66, 153, 225, 0.1);
    color: #3182ce;
    transform: scale(1.1);
}

.btn-outline-primary.border-0:active {
    transform: scale(0.95);
}

/* Table alignment enhancements */
.payment-details-table th.text-center,
.payment-details-table td.text-center {
    text-align: center;
}

.payment-details-table th.text-end,
.payment-details-table td.text-end {
    text-align: right;
}

.payment-details-table th.text-start,
.payment-details-table td.text-start {
    text-align: left;
}

/* Enhanced table row hover */
.payment-details-table tbody tr:hover {
    background-color: #f7fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .payment-details-card-body {
        padding: 1.5rem;
    }

    .payment-details-stats-value {
        font-size: 2.5rem;
    }

    .payment-details-table {
        font-size: 0.9rem;
    }

    .payment-details-table th,
    .payment-details-table td {
        padding: 0.75rem;
    }

    .payment-details-input-group {
        flex-direction: column;
        gap: 1rem;
    }

    .payment-details-year-list {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===== Student Promotion — Fees Option Toggle ===== */
.fees-option-block {
    padding: 0.5rem 0;
}

.fees-option-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.fees-option-toggle {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #0d6efd;
    width: fit-content;
}

.fees-toggle-btn {
    padding: 8px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    background: #fff;
    color: #0d6efd;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.fees-toggle-btn:focus {
    outline: none;
    box-shadow: none;
}

.fees-toggle-btn--active {
    background: #0d6efd;
    color: #fff;
}

.fees-toggle-btn--inactive {
    background: #fff;
    color: #0d6efd;
}

.fees-toggle-btn--danger.fees-toggle-btn--active {
    background: #dc3545;
    color: #fff;
    border-left: 1.5px solid #dc3545;
}

.fees-toggle-btn--danger.fees-toggle-btn--inactive {
    background: #fff;
    color: #dc3545;
}

.fees-option-toggle:has(.fees-toggle-btn--danger.fees-toggle-btn--active) {
    border-color: #dc3545;
}
/* ===== End: Fees Option Toggle ===== */
/* ===================== Modern Notify / Messaging App ===================== */

.notify-wrapper {
    background-color: #f0f4f8;
    min-height: 100vh;
}

/* Top header bar */
.notify-top-bar {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d6caf 100%);
    padding: 18px 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}
.notify-top-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.notify-top-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    flex-shrink: 0;
}
.notify-top-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}
.notify-top-subtitle {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0;
}

/* --- Compose Card --- */
.notify-compose-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: visible;
}
.ncc-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d6caf 100%);
    color: #ffffff;
    padding: 13px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    letter-spacing: 0.02em;
}
.ncc-body {
    padding: 22px 24px 24px;
}
.ncc-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
    display: block;
    margin-bottom: 5px;
}
.ncc-input,
.ncc-textarea,
.ncc-file {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 9px 13px !important;
    font-size: 0.88rem !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.ncc-input:focus,
.ncc-textarea:focus,
.ncc-file:focus {
    border-color: #2d6caf !important;
    box-shadow: 0 0 0 3px rgba(45, 108, 175, 0.1) !important;
    background: #ffffff !important;
    outline: none;
}
.ncc-textarea {
    resize: vertical;
    min-height: 88px;
}
.ncc-select {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 9px 13px !important;
    font-size: 0.88rem !important;
    color: #1e293b;
    background: #f8fafc;
    width: 100%;
    transition: border-color 0.2s;
}
.ncc-select:focus {
    border-color: #2d6caf !important;
    box-shadow: 0 0 0 3px rgba(45, 108, 175, 0.1) !important;
    outline: none;
}

/* Warning */
.notify-warn {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    min-height: 16px;
}

/* Recipients row */
.ncc-recipients {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: 4px;
}
.recipients-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}
.recipient-ctrl {
    flex: 1 1 150px;
    min-width: 130px;
    max-width: 210px;
    position: relative;
}
.recv-drop-wrap {
    position: relative;
}
.recv-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition:
        border-color 0.2s,
        color 0.2s,
        background 0.2s;
    white-space: nowrap;
    gap: 6px;
}
.recv-toggle:hover {
    border-color: #2d6caf;
    background: #ffffff;
    color: #2d6caf;
}
.recv-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    max-height: 230px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
    z-index: 1050;
    padding: 6px 0;
}
.recv-panel.hide {
    display: none;
}
.recv-panel.show {
    display: block;
}
.recv-item {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    font-size: 0.84rem;
    color: #374151;
    transition: background 0.13s;
    cursor: default;
}
.recv-item:hover {
    background: #f0f7ff;
}
.recv-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    width: 100%;
    font-size: 0.84rem;
}
.recv-item-all {
    font-weight: 700;
    color: #1e3a5f;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 9px;
    margin-bottom: 3px;
}
.recv-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #2d6caf;
    flex-shrink: 0;
    cursor: pointer;
}
.recv-panel::-webkit-scrollbar {
    width: 4px;
}
.recv-panel::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.recv-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Action buttons */
.ncc-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ncc-btn-send {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: linear-gradient(135deg, #1e60a0 0%, #2d80d0 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(45, 108, 175, 0.32);
    letter-spacing: 0.02em;
}
.ncc-btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(45, 108, 175, 0.4);
}
.ncc-btn-approval {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
    letter-spacing: 0.02em;
}
.ncc-btn-approval:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.4);
}

/* --- Message History Card --- */
.notify-history-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.nhc-header {
    background: #f8fafc;
    color: #1e3a5f;
    padding: 13px 22px;
    font-size: 0.92rem;
    font-weight: 700;
    border-bottom: 1px solid #e8edf3;
    display: flex;
    align-items: center;
    letter-spacing: 0.02em;
}
.nhc-count {
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 10px;
    border-radius: 20px;
}
.nhc-body {
    padding: 20px 22px;
    max-height: 620px;
    overflow-y: auto;
}
.nhc-body::-webkit-scrollbar {
    width: 5px;
}
.nhc-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.nhc-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.nhc-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- Message Rows --- */
.msg-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}
.msg-row.msg-received {
    justify-content: flex-start;
}
.msg-row.msg-sent {
    justify-content: flex-end;
}

/* Avatars (initials circles, no images) */
.msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
    letter-spacing: 0.5px;
    user-select: none;
}
.avatar-received {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
}
.avatar-sent {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: #ffffff;
}

/* Message body and bubbles */
.msg-body {
    max-width: 62%;
    min-width: 180px;
}
.msg-body-sent {
    text-align: left;
}
.msg-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}
.msg-header-sent {
    justify-content: flex-start;
}
.msg-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    cursor: default;
}
.msg-desig-badge {
    font-size: 0.7rem;
    background: #e0f2fe;
    color: #0369a1;
    padding: 1px 8px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    cursor: default;
}
.msg-time-row {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 4px;
    cursor: default;
}
.msg-time-sent {
    text-align: left;
}
.msg-subject-tag {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    padding: 2px 10px;
    border-radius: 6px;
    margin-bottom: 5px;
    cursor: default;
}
.msg-subject-sent {
    color: #7c3aed;
    background: #ede9fe;
}
.msg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.56;
    word-break: break-word;
    cursor: default;
}
.bubble-received {
    background: #f1f5f9;
    color: #1e293b;
    border-bottom-left-radius: 4px;
}
.bubble-sent {
    background: linear-gradient(135deg, #3153bb 0%, #13337b 100%);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

/* Attachments inside bubbles */
.msg-attachment {
    margin-top: 8px;
}
.msg-attachment img {
    max-width: 180px;
    max-height: 160px;
    border-radius: 10px;
    cursor: pointer;
    object-fit: cover;
    transition:
        transform 0.18s,
        box-shadow 0.18s;
    display: block;
}
.msg-attachment img:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.msg-attachment video {
    max-width: 200px;
    border-radius: 10px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .notify-body {
        padding: 10px !important;
    }
    .ncc-body {
        padding: 14px 14px 18px;
    }
    .recipients-row {
        gap: 8px;
    }
    .recipient-ctrl {
        flex: 1 1 110px;
        max-width: none;
    }
    .msg-body {
        max-width: 80%;
        min-width: 140px;
    }
    .ncc-btn-send,
    .ncc-btn-approval {
        flex: 1 1 100%;
        justify-content: center;
    }
    .nhc-body {
        padding: 12px;
        max-height: 480px;
    }
    .notify-top-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .notify-top-icon {
        display: none;
    }
    .msg-body {
        max-width: 88%;
        min-width: 120px;
    }
    .msg-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.72rem;
    }
    .msg-bubble {
        font-size: 0.84rem;
        padding: 8px 11px;
    }
    .recv-toggle {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
}

/* ===================== Approval Filter Bar ===================== */

.apvl-filter-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.apvl-filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
    white-space: nowrap;
    align-self: center;
}

.apvl-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    flex: 1 1 auto;
}

.apvl-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s,
        transform 0.1s;
    white-space: nowrap;
}
.apvl-chip:hover {
    border-color: #2d6caf;
    color: #2d6caf;
    background: #eff6ff;
    transform: translateY(-1px);
}
.apvl-chip-active {
    background: linear-gradient(135deg, #1e3a5f, #2d6caf);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(45, 108, 175, 0.3);
}
.apvl-chip-active:hover {
    background: linear-gradient(135deg, #1e3a5f, #2d6caf);
    transform: none;
}

.apvl-filter-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.apvl-date-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.apvl-date-label {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    white-space: nowrap;
    margin: 0;
}

.apvl-date-input {
    padding: 6px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: 0.82rem;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s;
    cursor: pointer;
}
.apvl-date-input:focus {
    border-color: #2d6caf;
    box-shadow: 0 0 0 3px rgba(45, 108, 175, 0.1);
    outline: none;
    background: #ffffff;
}

.apvl-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    border: 1.5px solid #fca5a5;
    background: #fff5f5;
    border-radius: 9px;
    font-size: 0.79rem;
    font-weight: 600;
    color: #dc2626;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.apvl-clear-btn:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

/* Empty state */
.apvl-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: #94a3b8;
    gap: 12px;
}
.apvl-empty-state i {
    font-size: 2.8rem;
    opacity: 0.45;
}
.apvl-empty-state p {
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .apvl-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
    }
    .apvl-filter-dates {
        width: 100%;
    }
    .apvl-date-input {
        flex: 1;
        min-width: 110px;
    }
}

/* ===================== Approval Action Buttons & Panels ===================== */

/* Status badges on messages */
.apvl-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    cursor: default;
}
.apvl-approved {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.apvl-pending {
    background: #fef9c3;
    color: #b45309;
    border: 1px solid #fde68a;
}
.apvl-rejected {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Row of action buttons below a message bubble */
.apvl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

/* Base button */
button.apvl-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 6px 14px !important;
    border: none !important;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff !important;
    cursor: pointer;
    transition:
        transform 0.13s,
        box-shadow 0.13s,
        opacity 0.13s;
    white-space: nowrap;
    letter-spacing: 0.02em;
    line-height: 1.4;
}
button.apvl-btn:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
button.apvl-btn:not(:disabled):hover {
    transform: translateY(-1px);
}

/* Approve – green */
button.apvl-btn.apvl-btn-approve {
    background: linear-gradient(135deg, #15803d, #22c55e) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.28);
}
button.apvl-btn.apvl-btn-approve:not(:disabled):hover {
    box-shadow: 0 5px 14px rgba(34, 197, 94, 0.38);
}

/* Reject – red */
button.apvl-btn.apvl-btn-reject {
    background: linear-gradient(135deg, #b91c1c, #ef4444) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.28);
}
button.apvl-btn.apvl-btn-reject:not(:disabled):hover {
    box-shadow: 0 5px 14px rgba(239, 68, 68, 0.38);
}

/* Set Amount – amber */
button.apvl-btn.apvl-btn-amount {
    background: linear-gradient(135deg, #b45309, #f59e0b) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.28);
}
button.apvl-btn.apvl-btn-amount:not(:disabled):hover {
    box-shadow: 0 5px 14px rgba(245, 158, 11, 0.38);
}

/* Inline input panels (amount / rejection reason) */
.apvl-panel {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
}
.apvl-panel-amount {
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.apvl-panel-reject {
    border-color: #fecaca;
    background: #fff5f5;
}

.apvl-panel-label {
    display: block;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #475569;
    margin-bottom: 8px;
}

.apvl-panel-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Prefix icon circle */
.apvl-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #e2e8f0;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #475569;
    flex-shrink: 0;
}
.apvl-prefix-reject {
    background: #fee2e2;
    color: #b91c1c;
}

/* Text / number input inside panel */
.apvl-text-input {
    flex: 1;
    min-width: 120px;
    padding: 7px 11px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.86rem;
    color: #1e293b;
    background: #ffffff;
    transition:
        border-color 0.18s,
        box-shadow 0.18s;
}
.apvl-text-input:focus {
    border-color: #2d6caf;
    box-shadow: 0 0 0 3px rgba(45, 108, 175, 0.1);
    outline: none;
}
.apvl-text-input.no-spinner::-webkit-inner-spin-button,
.apvl-text-input.no-spinner::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.apvl-text-input.no-spinner {
    -moz-appearance: textfield;
}

/* Hint text under panel */
.apvl-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    color: #64748b;
}
.apvl-hint-reject {
    color: #b91c1c;
}

/* Responsive */
@media (max-width: 576px) {
    .apvl-actions {
        flex-direction: column;
    }
    button.apvl-btn {
        width: 100%;
        justify-content: center;
    }
    .apvl-panel-row {
        flex-direction: column;
        align-items: stretch;
    }
    .apvl-prefix {
        display: none;
    }
}

/* Prevent icon children from stealing click events inside action buttons */
.apvl-btn i,
.apvl-btn span,
.apvl-chip i,
.apvl-chip span,
.ncc-btn-send i,
.ncc-btn-approval i,
.recv-toggle i {
    pointer-events: none;
}

/* ========================================
   MY TEAM PAGE STYLES
   ======================================== */

/* Page Background */
.my-team-page {
    min-height: 100vh;
}

/* Back to Top Button */
.my-team-page .back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.my-team-page .back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Header */
.my-team-page .modern-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.my-team-page .navbar-modern {
    padding: 1rem 0;
}

.my-team-page .company-logo {
    height: 45px;
}

.my-team-page .logo-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Navigation Buttons */
.my-team-page .team-nav-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.my-team-page .team-nav-btn.secondary-outline {
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
}

.my-team-page .team-nav-btn.secondary-outline:hover {
    background: #667eea;
    color: white;
}

.my-team-page .team-nav-btn.current-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.my-team-page .team-nav-btn.primary-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
}

.my-team-page .team-nav-btn.primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

/* Mobile Menu */
.my-team-page .hamburger-line {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 2px 0;
    border-radius: 3px;
}

.my-team-page .mobile-menu-dropdown {
    background: white;
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.my-team-page .mobile-menu-item {
    padding: 0.75rem;
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.my-team-page .mobile-menu-item:hover {
    background: #e9ecef;
}

.my-team-page .mobile-menu-item.current-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Show More / Show Less Toggle */
.my-team-page .show-more-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.my-team-page .show-more-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.my-team-page .show-more-link[aria-expanded="false"]::before {
    content: "show more";
}

.my-team-page .show-more-link[aria-expanded="true"]::before {
    content: "show less";
}

/* Main Content */
.my-team-page .modern-main-content {
    padding: 2rem 0;
}

/* Section Headers */
.my-team-page .section-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.my-team-page .gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.my-team-page .section-description {
    font-size: 1.1rem;
}

.my-team-page .section-header .gradient-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 1rem auto 0;
}

/* Hero Section - Inspirations (Buddha & Basavanna) */
.my-team-page .hero-section {
    padding: 2rem 0;
}

.my-team-page .member-card {
    background: white;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    height: 100%;
}

.my-team-page .member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.my-team-page .member-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #667eea;
}

.my-team-page .member-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
}

.my-team-page .member-card .badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.4rem 1rem;
    color: white;
    border: none;
}

.my-team-page .member-description {
    color: #555;
    line-height: 1.6;
}

.my-team-page .show-more-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.my-team-page .show-more-link:hover {
    text-decoration: underline;
}

/* Freedom Fighters Section */
.my-team-page .freedom-fighters-section {
    padding: 2rem 0;
    background: #f8f9fa;
}

.my-team-page .fighter-card {
    background: white;
    transition: transform 0.3s ease;
    height: 100%;
}

.my-team-page .fighter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.my-team-page .fighter-image {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border: 3px solid #f093fb;
}

.my-team-page .fighter-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.my-team-page .fighter-description {
    color: #555;
    line-height: 1.6;
}

/* Quote Section */
.my-team-page .inspiration-section {
    padding: 3rem 0;
}

.my-team-page .inspiration-quote {
    font-size: 1.3rem;
    line-height: 1.6;
    font-style: italic;
    color: #2c3e50;
}

.my-team-page .inspiration-section .divider-line {
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 auto;
}

/* Team Stats Section */
.my-team-page .team-stats-intro-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.my-team-page .team-stats-title {
    font-size: 2rem;
    font-weight: bold;
}

.my-team-page .teal-highlight {
    color: #20c997;
}

.my-team-page .blue-highlight {
    color: #0d6efd;
}

.my-team-page .team-stats-desc {
    font-size: 1.1rem;
}

.my-team-page .south-ka-title {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Team Cards - 5 per row on large screens */
.my-team-page .amazing-team-card {
    background: white;
    transition: transform 0.3s ease;
    min-height: 250px;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.my-team-page .amazing-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.my-team-page .amazing-team-avatar {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 3px solid #667eea;
    flex-shrink: 0;
}

.my-team-page .amazing-team-name {
    font-weight: bold;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.my-team-page .amazing-team-role {
    margin-top: 0.25rem;
    font-size: 0.8rem;
}

.my-team-page .amazing-team-desc {
    margin-top: 0.25rem;
    line-height: 1.3;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Custom 5-column grid for team section */
@media (min-width: 1200px) {
    .my-team-page .team-grid-5-col {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        row-gap: 2rem;
    }

    .my-team-page .team-grid-5-col > div {
        flex: 0 0 calc(20% - 1.2rem);
        max-width: calc(20% - 1.2rem);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .my-team-page .team-grid-5-col {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        row-gap: 2rem;
    }

    .my-team-page .team-grid-5-col > div {
        flex: 0 0 calc(25% - 1.2rem);
        max-width: calc(25% - 1.2rem);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .my-team-page .team-grid-5-col {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        row-gap: 2rem;
    }

    .my-team-page .team-grid-5-col > div {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }
}

@media (max-width: 767px) {
    .my-team-page .team-grid-5-col {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        row-gap: 1.5rem;
    }

    .my-team-page .team-grid-5-col > div {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }

    .my-team-page .amazing-team-avatar {
        width: 80px;
        height: 80px;
    }

    .my-team-page .amazing-team-card {
        min-height: 260px;
    }
}

/* Center content in container */
.my-team-page .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Footer */
.my-team-page footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* ============================================================
   Table of Contents – Chapter List
   ============================================================ */
.toc_accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc_chapter_item {
    border: 1px solid #e0e6ef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.toc_chapter_item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.toc_chapter_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: #f8f9fc;
    user-select: none;
    transition: background 0.2s;
}

.toc_chapter_header:hover {
    background: #eef2ff;
}

.toc_chapter_left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.toc_chapter_num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-color, #5b6bf8);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.toc_chapter_name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.toc_chapter_right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.toc_topic_count {
    font-size: 12px;
    color: #7a8aad;
    background: #e8ebf7;
    border-radius: 20px;
    padding: 3px 10px;
    font-weight: 500;
}

.toc_arrow {
    font-size: 22px;
    color: #5b6bf8;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.25s;
    line-height: 1;
}

.toc_arrow_open {
    transform: rotate(90deg);
}

.toc_topics {
    border-top: 1px solid #e0e6ef;
    background: #fff;
    padding: 8px 0;
}

.toc_topic_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 24px 11px 32px;
    cursor: pointer;
    transition: background 0.15s;
}

.toc_topic_item:hover {
    background: #f0f4ff;
}

.toc_topic_num {
    font-size: 13px;
    color: #9aa3b8;
    font-weight: 600;
    min-width: 36px;
}

.toc_topic_name {
    flex: 1;
    font-size: 14px;
    color: #2c3e50;
}

.toc_topic_item:hover .toc_topic_name {
    color: #5b6bf8;
    font-weight: 600;
}

.toc_topic_arrow {
    font-size: 14px;
    color: #5b6bf8;
    opacity: 0;
    transition: opacity 0.15s;
}

.toc_topic_item:hover .toc_topic_arrow {
    opacity: 1;
}

.toc_loading,
.toc_empty {
    padding: 16px 32px;
    color: #9aa3b8;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   Topic Accordion – Chapter Detail Page
   ============================================================ */
.chapter_topics_accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic_accordion_item {
    border: 1px solid #e0e6ef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}

.topic_accordion_item:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
}

.topic_accordion_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    background: #f8f9fc;
    user-select: none;
    transition: background 0.2s;
}

.topic_accordion_header:hover,
.topic_accordion_open {
    background: #eef2ff;
}

.topic_header_left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topic_num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8ebf7;
    color: #5b6bf8;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.topic_accordion_open .topic_num {
    background: #5b6bf8;
    color: #fff;
}

.topic_name_title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.topic_toggle_icon {
    font-size: 20px;
    font-weight: 700;
    color: #5b6bf8;
    line-height: 1;
    width: 24px;
    text-align: center;
}

.topic_accordion_body {
    border-top: 1px solid #e8ebf7;
    background: #fff;
    padding: 20px 24px;
}

.topic_desc {
    margin-bottom: 16px;
}

.topic_content.topic_indent {
    padding-left: 8px;
    border-left: 3px solid #e8ebf7;
    color: #4a5568;
    line-height: 1.7;
}

/* ============================================================
   Student Homework View
   ============================================================ */
.hw_cards_grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hw_card {
    border: 1px solid #e0e6ef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition:
        box-shadow 0.2s,
        transform 0.2s;
    background: #fff;
}

.hw_card:hover {
    box-shadow: 0 6px 20px rgba(91, 107, 248, 0.12);
    transform: translateY(-2px);
}

.hw_card_head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f3ff 0%, #f8f9fc 100%);
    border-bottom: 1px solid #e8ebf7;
}

.hw_card_index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-color, #5b6bf8);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.hw_card_title_wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hw_card_title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.hw_due_badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #e05c1a;
    background: #fff3ec;
    border: 1px solid #ffd3b4;
    border-radius: 20px;
    padding: 3px 10px;
    width: fit-content;
}

.hw_card_body {
    padding: 18px 20px;
}

.hw_card_desc {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 14px;
}

/* Attachment area */
.hw_attachment {
    border: 1px dashed #c9d3f0;
    border-radius: 10px;
    padding: 12px 16px;
    background: #f8f9fc;
}

.hw_attach_label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #9aa3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.hw_attach_link {
    text-decoration: none;
    color: inherit;
}

.hw_attach_link:hover .hw_attach_name {
    color: #5b6bf8;
    text-decoration: underline;
}

.hw_attach_file {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hw_file_icon {
    font-size: 32px;
}

.hw_attach_name {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    word-break: break-all;
}

.hw_attach_preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.hw_preview_img {
    max-height: 140px;
    border-radius: 8px;
    border: 1px solid #e0e6ef;
    object-fit: cover;
}

/* Empty state */
.hw_empty_state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.hw_empty_img {
    width: 120px;
    opacity: 0.6;
    margin-bottom: 20px;
}

.hw_empty_title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.hw_empty_sub {
    font-size: 14px;
    color: #9aa3b8;
}

/* ── Student Fee View ────────────────────────────────────────────── */
.sf-wrapper {
    max-width: 960px;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Locked notice */
.sf-locked-notice {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px dashed #c0c9e0;
    margin-top: 2rem;
}
.sf-lock-icon {
    font-size: 2.5rem;
    color: #8899b4;
    display: block;
    margin-bottom: 16px;
}
.sf-locked-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3a3f5c;
    margin-bottom: 8px;
}
.sf-locked-sub {
    font-size: 0.9rem;
    color: #7a849e;
    margin: 0;
}

/* Year bar */
.sf-year-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.sf-year-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5a6275;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sf-year-select {
    appearance: none;
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E")
        no-repeat right 12px center;
    background-size: 10px;
    border: 1.5px solid #d0d7e6;
    border-radius: 8px;
    padding: 7px 36px 7px 14px;
    font-size: 0.9rem;
    color: #3a3f5c;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 190px;
}
.sf-year-select:focus {
    outline: none;
    border-color: #4f7ef8;
}

/* Loader */
.sf-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    gap: 14px;
}
.sf-loader-text {
    color: #7a849e;
    font-size: 0.9rem;
    margin: 0;
}

/* Section title */
.sf-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3254;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sf-status-badge {
    margin-left: 10px;
    background: #fff3cd;
    color: #856404;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #ffc107;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Overview stat cards */
.sf-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 0.5rem;
}
.sf-stat-card {
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 4px solid transparent;
}
.sf-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}
.sf-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}
.sf-stat-primary {
    background: #eef3ff;
    border-color: #4f7ef8;
    color: #2852c7;
}
.sf-stat-success {
    background: #eafaf1;
    border-color: #28a745;
    color: #1a7a36;
}
.sf-stat-danger {
    background: #fff0f0;
    border-color: #dc3545;
    color: #b02030;
}
.sf-stat-warning {
    background: #fff8e5;
    border-color: #ffc107;
    color: #9a6e00;
}
.sf-stat-secondary {
    background: #f4f5f7;
    border-color: #868e96;
    color: #3a4050;
}

/* Table card */
.sf-table-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e4e9f2;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.sf-thead th {
    background: #f4f6fb;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a6275;
    border-bottom: 2px solid #e4e9f2;
    padding: 12px 14px;
}
.sf-thead-warning th {
    background: #fff8e5;
    color: #856404;
    border-bottom-color: #ffe082;
}
.sf-table-card tbody tr:hover {
    background: #f8f9ff;
}
.sf-table-card td {
    font-size: 0.88rem;
    padding: 11px 14px;
    color: #3a3f5c;
    vertical-align: middle;
}
.sf-row-num {
    color: #9aa3b8;
    font-size: 0.82rem;
}
.sf-amount-paid {
    color: #1a7a36;
    font-weight: 600;
}
.sf-amount-due {
    color: #b02030;
    font-weight: 600;
}
.sf-amount-discount {
    color: #9a6e00;
    font-weight: 600;
}
.sf-trans-no {
    font-family: monospace;
    font-size: 0.82rem;
    color: #5a6275;
}

/* Status badges */
.sf-badge-paid {
    background: #d1fae5;
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #6ee7b7;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sf-badge-due {
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #fca5a5;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Period text value (non-currency stat) */
.sf-stat-period {
    font-size: 1rem;
    font-weight: 600;
}

/* Empty state inside table */
.sf-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px;
    color: #9aa3b8;
    gap: 12px;
}
.sf-empty-icon {
    font-size: 2rem;
    opacity: 0.5;
}
.sf-empty-state p {
    font-size: 0.9rem;
    margin: 0;
}

/* ===== Marks Card (mc-) Design System ===== */

/* Tab bar */
.mc-tab-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.mc-tab-btn {
    padding: 8px 22px;
    border-radius: 30px;
    border: 2px solid #d0d7e6;
    background: #fff;
    color: #5a6275;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.mc-tab-btn.active {
    background: #4f7ef8;
    border-color: #4f7ef8;
    color: #fff;
}
.mc-tab-btn:hover:not(.active) {
    border-color: #4f7ef8;
    color: #4f7ef8;
}

/* Exam card grid */
.mc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 1rem;
}

/* Individual exam card */
.mc-exam-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e4e9f2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.mc-exam-card:hover {
    box-shadow: 0 4px 20px rgba(79, 126, 248, 0.12);
}
.mc-card-accent {
    height: 4px;
    background: #4f7ef8;
}
.mc-card-accent-green {
    background: #28a745;
}
.mc-card-accent-danger {
    background: #dc3545;
}
.mc-card-body {
    padding: 18px 20px;
    flex: 1;
}
.mc-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3254;
    margin-bottom: 12px;
    line-height: 1.35;
}
.mc-card-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}
.mc-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #5a6275;
}
.mc-meta-row i {
    color: #9aa3b8;
    font-size: 0.82rem;
    width: 14px;
    flex-shrink: 0;
}
.mc-meta-value {
    color: #3a3f5c;
}

/* Percentage bar */
.mc-percent-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}
.mc-percent-bar-wrap {
    flex: 1;
    height: 6px;
    background: #e4e9f2;
    border-radius: 3px;
    overflow: hidden;
}
.mc-percent-bar {
    height: 100%;
    border-radius: 3px;
    background: #4f7ef8;
}
.mc-percent-bar-danger {
    background: #dc3545;
}
.mc-percent-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2c3254;
    white-space: nowrap;
}

/* Card footer */
.mc-card-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f2f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Result badges */
.mc-badge-pass {
    background: #d1fae5;
    color: #065f46;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid #6ee7b7;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mc-badge-fail {
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid #fca5a5;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mc-badge-doc {
    background: #f0fdf4;
    color: #166534;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid #bbf7d0;
}

/* View / Download button */
.mc-view-btn {
    background: none;
    border: 1.5px solid #4f7ef8;
    color: #4f7ef8;
    border-radius: 8px;
    padding: 5px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}
.mc-view-btn:hover {
    background: #4f7ef8;
    color: #fff;
}
.mc-download-btn {
    border-color: #28a745;
    color: #28a745;
}
.mc-download-btn:hover {
    background: #28a745;
    color: #fff;
}

/* Modal overlay */
.mc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 40, 70, 0.55);
    z-index: 1050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 16px 40px;
    overflow-y: auto;
}
.mc-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 700px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

/* Modal header */
.mc-modal-header {
    background: #4f7ef8;
    color: #fff;
    padding: 18px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.mc-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.mc-modal-subtitle {
    font-size: 0.82rem;
    opacity: 0.8;
    margin-top: 4px;
}
.mc-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1rem;
    transition: background 0.15s;
}
.mc-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Modal body */
.mc-modal-body {
    padding: 20px 24px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}
@media (max-width: 576px) {
    .mc-modal-body {
        padding: 16px;
    }
    .mc-modal-header {
        padding: 14px 16px;
    }
}

/* School header block */
.mc-school-block {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #e4e9f2;
    margin-bottom: 16px;
}
.mc-school-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3254;
    margin-bottom: 4px;
}
.mc-school-address {
    font-size: 0.82rem;
    color: #7a849e;
}
.mc-exam-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #4f7ef8;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Student info grid */
.mc-stud-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    background: #f8f9ff;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 0.87rem;
}
@media (max-width: 480px) {
    .mc-stud-info-grid {
        grid-template-columns: 1fr;
    }
}
.mc-stud-info-label {
    color: #9aa3b8;
    font-size: 0.73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}
.mc-stud-info-value {
    color: #2c3254;
    font-weight: 600;
}

/* Result summary */
.mc-result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

/* Signature row */
.mc-signature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed #e4e9f2;
}
.mc-signature-box {
    text-align: center;
}
.mc-signature-line {
    height: 40px;
    border-bottom: 1.5px solid #3a3f5c;
    margin-bottom: 6px;
}
.mc-signature-label {
    font-size: 0.78rem;
    color: #7a849e;
    font-weight: 600;
}
@media (max-width: 400px) {
    .mc-signature-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Modal footer */
.mc-modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #e4e9f2;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.mc-print-btn {
    background: #4f7ef8;
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}
.mc-print-btn:hover {
    background: #3560d0;
}
.mc-close-footer-btn {
    background: #f4f5f7;
    border: none;
    color: #5a6275;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.mc-close-footer-btn:hover {
    background: #e4e9f2;
}
