/* General css */

.fs-1 {
    font-size: 1px !important;
}
.fs-2 {
    font-size: 2px !important;
}
.fs-3 {
    font-size: 3px !important;
}
.fs-4 {
    font-size: 4px !important;
}
.fs-5 {
    font-size: 5px !important;
}
.fs-6 {
    font-size: 6px !important;
}
.fs-7 {
    font-size: 7px !important;
}
.fs-8 {
    font-size: 8px !important;
}
.fs-9 {
    font-size: 9px !important;
}
.fs-10 {
    font-size: 10px !important;
}
.fs-11 {
    font-size: 11px !important;
}
.fs-12 {
    font-size: 12px !important;
}
.fs-13 {
    font-size: 13px !important;
}
.fs-14 {
    font-size: 14px !important;
}
.fs-15 {
    font-size: 15px !important;
}
.fs-16 {
    font-size: 16px !important;
}
.fs-17 {
    font-size: 17px !important;
}
.fs-18 {
    font-size: 18px !important;
}
.fs-19 {
    font-size: 19px !important;
}
.fs-20 {
    font-size: 20px !important;
}
.fs-21 {
    font-size: 21px !important;
}
.fs-22 {
    font-size: 22px !important;
}
.fs-23 {
    font-size: 23px !important;
}
.fs-24 {
    font-size: 24px !important;
}
.fs-25 {
    font-size: 25px !important;
}
.fs-26 {
    font-size: 26px !important;
}
.fs-27 {
    font-size: 27px !important;
}
.fs-28 {
    font-size: 28px !important;
}
.fs-29 {
    font-size: 29px !important;
}
.fs-30 {
    font-size: 30px !important;
}
.fs-31 {
    font-size: 31px !important;
}
.fs-32 {
    font-size: 32px !important;
}
.fs-33 {
    font-size: 33px !important;
}
.fs-34 {
    font-size: 34px !important;
}
.fs-35 {
    font-size: 35px !important;
}
.fs-36 {
    font-size: 36px !important;
}
.fs-37 {
    font-size: 37px !important;
}
.fs-38 {
    font-size: 38px !important;
}
.fs-39 {
    font-size: 39px !important;
}
.fs-40 {
    font-size: 40px !important;
}
.fs-41 {
    font-size: 41px !important;
}
.fs-42 {
    font-size: 42px !important;
}
.fs-43 {
    font-size: 43px !important;
}
.fs-44 {
    font-size: 44px !important;
}
.fs-45 {
    font-size: 45px !important;
}
.fs-46 {
    font-size: 46px !important;
}
.fs-47 {
    font-size: 47px !important;
}
.fs-48 {
    font-size: 48px !important;
}
.fs-49 {
    font-size: 49px !important;
}
.fs-50 {
    font-size: 50px !important;
}
.fs-51 {
    font-size: 51px !important;
}
.fs-52 {
    font-size: 52px !important;
}
.fs-53 {
    font-size: 53px !important;
}
.fs-54 {
    font-size: 54px !important;
}
.fs-55 {
    font-size: 55px !important;
}
.fs-56 {
    font-size: 56px !important;
}
.fs-57 {
    font-size: 57px !important;
}
.fs-58 {
    font-size: 58px !important;
}
.fs-59 {
    font-size: 59px !important;
}
.fs-60 {
    font-size: 60px !important;
}
.fs-61 {
    font-size: 61px !important;
}
.fs-62 {
    font-size: 62px !important;
}
.fs-63 {
    font-size: 63px !important;
}
.fs-64 {
    font-size: 64px !important;
}
.fs-65 {
    font-size: 65px !important;
}
.fs-66 {
    font-size: 66px !important;
}
.fs-67 {
    font-size: 67px !important;
}
.fs-68 {
    font-size: 68px !important;
}
.fs-69 {
    font-size: 69px !important;
}
.fs-70 {
    font-size: 70px !important;
}
.fs-71 {
    font-size: 71px !important;
}
.fs-72 {
    font-size: 72px !important;
}
.fs-73 {
    font-size: 73px !important;
}
.fs-74 {
    font-size: 74px !important;
}
.fs-75 {
    font-size: 75px !important;
}
.fs-76 {
    font-size: 76px !important;
}
.fs-77 {
    font-size: 77px !important;
}
.fs-78 {
    font-size: 78px !important;
}
.fs-79 {
    font-size: 79px !important;
}
.fs-80 {
    font-size: 80px !important;
}
.fs-81 {
    font-size: 81px !important;
}
.fs-82 {
    font-size: 82px !important;
}
.fs-83 {
    font-size: 83px !important;
}
.fs-84 {
    font-size: 84px !important;
}
.fs-85 {
    font-size: 85px !important;
}
.fs-86 {
    font-size: 86px !important;
}
.fs-87 {
    font-size: 87px !important;
}
.fs-88 {
    font-size: 88px !important;
}
.fs-89 {
    font-size: 89px !important;
}
.fs-90 {
    font-size: 90px !important;
}
.fs-91 {
    font-size: 91px !important;
}
.fs-92 {
    font-size: 92px !important;
}
.fs-93 {
    font-size: 93px !important;
}
.fs-94 {
    font-size: 94px !important;
}
.fs-95 {
    font-size: 95px !important;
}
.fs-96 {
    font-size: 96px !important;
}
.fs-97 {
    font-size: 97px !important;
}
.fs-98 {
    font-size: 98px !important;
}
.fs-99 {
    font-size: 99px !important;
}
.fs-100 {
    font-size: 100px !important;
}

/*  Student performance css
---------------------------------------------------------------------- */
.performence-section-content {
    margin-top: 45px !important;
}

#student-performence-section {
    font-family: inherit;
    padding: 20px 0px;
}

#student-performence-section .search-bar {
    max-width: 50%;
    margin: 0 auto 10px;
    position: relative;
}

#student-performence-section .search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#student-performence-section .search-bar .clear-icon {
    font-size: 27px;
    line-height: 1;
    user-select: none;
}

#student-performence-section .search-bar .clear-icon:hover {
    color: #888;
}

#student-performence-section .search-bar .glyphicon-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

#student-performence-section .student-card {
    background: linear-gradient(135deg, #6a1b9a, #9c27b0);
    color: white;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

#student-performence-section .student-card img {
    width: 100px;
    /* height: 100px; */
    border-radius: 8px;
    object-fit: cover;
}

#student-performence-section .student-info h3 {
    margin: 0 0 5px 0;
    font-weight: 600;
}

#student-performence-section .student-info p {
    margin: 10px 0;
    font-size: 14px;
}

#student-performence-section .info-section {
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 20px 20px 14px 20px;
    margin-bottom: 20px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 0px 0px,
        rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
}

#student-performence-section .info-section h4 {
    margin-top: 0;
    font-weight: 600;
    color: #333;
}

#student-performence-section .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

#student-performence-section .info-item {
    flex: 1 1 45%;
    min-width: 200px;
}

#student-performence-section .info-item label {
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

#student-performence-section .info-item span {
    font-size: 13px;
    color: #333;
}

#student-performence-section .fee-overview {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#student-performence-section .fee-card {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

#student-performence-section .fee-paid {
    background-color: #e8f5e9;
    color: #2e7d32;
}

#student-performence-section .balance-due {
    background-color: #ffebee;
    color: #c62828;
}

#student-performence-section .concession {
    background-color: #e3f2fd;
    color: #1565c0;
}

#student-performence-section .total-fee {
    background-color: #e3e3f5;
    color: #333;
}

#student-performence-section .fee-card .amount {
    font-size: 24px;
    margin: 10px 0;
}

#student-performence-section .fee-card .label {
    font-size: 14px;
    font-weight: normal;
    color: inherit;
}

#student-performence-section .fee-table thead th {
    background-color: #f3e5f5;
    font-weight: 600;
    color: #333;
}

#student-performence-section .fee-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

#student-performence-section .view-more {
    text-align: right;
    margin-top: 10px;
}

#student-performence-section .view-more a {
    color: #0000ff;
    font-weight: 600;
    text-decoration: none;
}

#student-performence-section .view-more a:hover {
    text-decoration: none;
}

#student-performence-section .alert-info {
    background-color: #00bcd440 !important;
    color: #00bcd4 !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    padding: 15px !important;
    margin-bottom: 5px !important;
}

/* Exam sections */
#student-performence-section .exam-summary,
#student-performence-section .competitive-exam-summary,
#student-performence-section .fee-overview {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#student-performence-section .exam-card {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

#student-performence-section .total-exams {
    background-color: #e3e3f5;
    color: #333;
}

#student-performence-section .avg-marks {
    background-color: #fce4ec;
    color: #ad1457;
}

#student-performence-section .highest-score {
    background-color: #fff3e0;
    color: #f57f17;
}

#student-performence-section .lowest-score {
    background-color: #ffcdd2;
    color: #c62828;
}

#student-performence-section .exam-card .stat {
    font-size: 24px;
    margin: 10px 0;
}

#student-performence-section .exam-card .label {
    font-size: 14px;
    font-weight: normal;
    color: inherit;
    background: none !important;
}

#student-performence-section .exam-table thead th {
    background-color: #f3e5f5;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

#student-performence-section .exam-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

#student-performence-section .rank-link {
    color: #0000ff;
    font-weight: 500;
    text-decoration: none;
}

#student-performence-section .rank-link:hover {
    text-decoration: none;
    cursor: auto;
}

/* Table responsive styling */
#student-performence-section .table-responsive {
    /* border: 1px solid #eee; */
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#student-performence-section .table-responsive > .table {
    margin-bottom: 0;
    border: none;
}

/* Ensure minimum width for table cells on mobile */
@media (max-width: 768px) {
    #student-performence-section .table td,
    #student-performence-section .table th {
        white-space: nowrap;
        min-width: 100px;
    }

    #student-performence-section .table td:first-child,
    #student-performence-section .table th:first-child {
        min-width: 50px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #student-performence-section .student-card {
        flex-direction: column;
        text-align: center;
    }
    #student-performence-section .info-row {
        flex-direction: column;
    }
    #student-performence-section .info-item {
        flex: 100%;
        margin-bottom: 15px;
    }
    #student-performence-section .fee-overview,
    #student-performence-section .exam-summary,
    #student-performence-section .competitive-exam-summary,
    #student-performence-section .fee-overview {
        flex-direction: column;
    }
}

#student-performance {
    padding: 20px 20px 0px 20px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.14);
}

#student-performance .header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#student-performance .search-bar {
    width: 50%;
    border-radius: 20px;
    border: 2px solid #ddd;
    padding: 12px 15px;
    display: flex;
    align-items: center;
}

#student-performance .search-bar input {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 0 10px;
    font-size: 14px;
    background: none;
}

#student-performance .search-bar .glyphicon-search {
    color: #999;
}

#student-performance .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 5px;
}

#student-performance .user-info img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

#student-performance .user-info div {
    text-align: right;
}

#student-performance .user-info span {
    display: block;
    font-size: 14px;
    color: #555;
}

/* Custom Tabs */
#student-performance .custom-tabs {
    /* border-bottom: 1px solid #eee; */
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

#student-performance .custom-tabs::-webkit-scrollbar {
    height: 4px;
}

#student-performance .custom-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#student-performance .custom-tabs::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

#student-performance .custom-tabs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    min-width: min-content;
}

#student-performance .custom-tabs ul li {
    margin: 0;
    flex-shrink: 0;
}

#student-performance .custom-tabs ul li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    border: none;
    background: transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

#student-performance .custom-tabs ul li a:hover {
    color: #7b4dff;
}

#student-performance .custom-tabs ul li.active a {
    color: #7b4dff;
    border-bottom: 3px solid #7b4dff !important;
    /* margin-bottom: -2px; */
    margin-bottom: 2px;
}

/* Tab Content */
#student-performance .tab-content > div {
    display: none;
}

#student-performance .tab-content > div.active {
    display: block;
}

#student-performance .stat-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#student-performance .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

#student-performance .stat-icon-blue {
    background: #d0eaff;
    color: #007bff;
}

#student-performance .stat-icon-green {
    background: #d0f0e0;
    color: #28a745;
}

#student-performance .stat-icon-purple {
    background: #e0d0ff;
    color: #6f42c1;
}

#student-performance .stat-icon-orange {
    background: #ffe0d0;
    color: #fd7e14;
}

#student-performance .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

#student-performance .stat-label {
    font-size: 14px;
    color: #777;
}

#student-performance .chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* margin-bottom: 20px; */
}

#student-performance .chart-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

#student-performance .chart-placeholder {
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 10px 0;
}

#student-performance .bar {
    width: 40px;
    background: linear-gradient(to top, #7b4dff, #5a2cd8);
    border-radius: 4px 4px 0 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    text-align: center;
    padding: 5px 0;
}

#student-performance .bar.pink {
    background: linear-gradient(to top, #e84ae5, #c72dc7);
}

#student-performance .bar.dark-blue {
    background: linear-gradient(to top, #0056b3, #003d7a);
}

#student-performance .bar-label {
    position: absolute;
    bottom: -25px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #555;
}

#student-performance .legend {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 12px;
    color: #555;
}

#student-performance .legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

#student-performance .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

#student-performance .legend-color-purple {
    background: #7b4dff;
}

#student-performance .legend-color-pink {
    background: #e84ae5;
}

#student-performance .legend-color-dark-blue {
    background: #0056b3;
}

#student-performance .table-responsive {
    margin-top: 20px;
}

#student-performance .table th {
    background-color: #f0e6f7;
    font-weight: 600;
    color: #555;
}

#student-performance .table td {
    vertical-align: middle;
    font-size: 13px;
}

#student-performance .download-link {
    color: #7b4dff;
    text-decoration: none;
    font-weight: 600;
}

#student-performance .download-link:hover {
    text-decoration: underline;
}

#student-performance .search-box {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 10px;
}

/* Dropdowns styling */
#student-performance .dropdown-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    min-width: 120px;
    font-size: 14px;
}

#student-performance .dropdown-select::after {
    content: "▼";
    font-size: 10px;
    margin-left: 5px;
    color: #777;
}

@media (max-width: 768px) {
    #student-performance .header-section {
        flex-direction: column;
        align-items: stretch;
    }

    #student-performance .search-bar {
        width: 100%;
    }

    #student-performence-section .search-bar {
        max-width: 100%;
    }

    #student-performance .user-info {
        margin-top: 10px;
        justify-content: space-between;
    }

    #student-performance .stat-card {
        flex-direction: column;
        text-align: center;
    }

    #student-performance .stat-icon {
        margin: 0 auto 10px;
    }

    #student-performance .row > .col-md-6:first-child {
        margin-bottom: 15px;
    }

    #student-performance .row > .col-md-6.text-right {
        text-align: left !important;
    }

    #student-performance .dropdown-select {
        display: block;
        width: 100%;
        margin: 5px 0 !important;
    }

    #student-performance .custom-tabs {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    #student-performance .custom-tabs ul li a {
        padding: 10px 12px;
        font-size: 13px;
    }
}

#allExamsModal .table-bordered {
    border: 1px solid #ddd;
    border-radius: 6px !important;
}

#allCompExamsTable .table-bordered {
    border: 1px solid #ddd;
    border-radius: 6px !important;
}

#allExamsModalHeader,
#allCompExamsModalHeader,
#allPaymentsModalHeader {
    padding: 5px 0px 0px 0px;
}

#allExamsModalLabel,
#allCompExamsModalLabel,
#allPaymentsModalLabel {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

#allExamsTable > thead > tr > th,
#allCompExamsTable > thead > tr > th,
#examDetailTable > thead > tr > th,
#competitiveExamDetailTable > thead > tr > th,
#allPaymentsTable > thead > tr > th {
    font-size: 12px !important;
    padding: 12px !important;
    outline: 0;
}

#allExamsTable td,
#allExamsTable th,
#allCompExamsTable td,
#allCompExamsTable th,
#examDetailTable td,
#examDetailTable th,
#competitiveExamDetailTable td,
#competitiveExamDetailTable th {
    vertical-align: middle !important;
    font-size: 13px !important;
}

.performance-table.dataTable {
    clear: both;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    max-width: none !important;
    border-collapse: separate !important;
    border-radius: 6px !important;
}

@media (min-width: 992px) {
    #allExamsModal .modal-dialog.modal-lg,
    #allCompExamsModal .modal-dialog.modal-lg {
        width: 1140px !important;
        max-width: 1140px !important;
        margin: 1.75rem auto;
    }
}

.export-btn {
    background-color: #0000ff;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.export-btn:hover {
    background-color: #0000ff;
    color: white;
}

.export-btn i {
    font-size: 12px;
}

.export-btn-gap {
    margin-right: 5px;
}

/* Custom student profile css
---------------------------------------------------------------------- */
#student-profile-detail {
    font-family: inherit;
    padding: 0 15px;
}

.student-profile-detail-section .profile-header-card {
    background: linear-gradient(135deg, #6a3ab2, #9c27b0);
    color: white;
    border-radius: 10px;
    /* padding: 20px; */
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.student-profile-detail-section .profile-photo-container {
    /* width: 100px;
    height: 100px; */
    width: 75px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid white;
}

.student-profile-detail-section .profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-profile-detail-section .profile-info h3 {
    margin: 0 0 5px 0;
    /* font-size: 18px; */
    font-size: 1.1em;
    font-weight: 500;
}

.student-profile-detail-section .profile-info p {
    margin: 5px 0;
    font-size: 14px;
}

.student-profile-detail-section .basic-details-card,
.student-profile-detail-section .additional-details-card,
.student-profile-detail-section .address-details-card,
.student-profile-detail-section .father-details-card,
.student-profile-detail-section .mother-details-card,
.student-profile-detail-section .guardian-details-card,
.student-profile-detail-section .custom-fields-details-card {
    background-color: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    /* padding: 20px; */
    padding: 15px 20px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 0px 0px,
        rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    margin-bottom: 20px;
}

.student-profile-detail-section .basic-details-card h4,
.student-profile-detail-section .additional-details-card h4,
.student-profile-detail-section .address-details-card h4,
.student-profile-detail-section .father-details-card h4,
.student-profile-detail-section .mother-details-card h4,
.student-profile-detail-section .guardian-details-card h4,
.student-profile-detail-section .custom-fields-details-card h4 {
    margin-top: 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Two-column grid layout */
.student-profile-detail-section .details-columns {
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 20px;
}

.student-profile-detail-section .column {
    display: contents;
}

.student-profile-detail-section .detail-item {
    display: flex;
    flex-direction: column;
}

.student-profile-detail-section .detail-item label {
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
    font-size: 13px;
}

.student-profile-detail-section .detail-item span {
    font-size: 13px;
    color: #333;
    word-break: break-word;
}

/* Hide item if value is empty or '-' */
.student-profile-detail-section .detail-item[data-value=""] {
    display: none;
}

.student-profile-detail-section .detail-item[data-value="-"] {
    display: none;
}

.student-profile-detail-section .status-item[data-value="NULL"] {
    display: none;
}

.student-profile-detail-section .doc-header {
    text-align: center;
    margin-bottom: 20px;
}

.student-profile-detail-section .doc-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.student-profile-detail-section .doc-header h4 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.student-profile-detail-section .document-status-card {
    background-color: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    /* padding: 20px; */
    padding: 15px 20px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 0px 0px,
        rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    margin-bottom: 10px;
}

.student-profile-detail-section .document-status-card h4 {
    margin-top: 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

.student-profile-detail-section .status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 20px;
    margin-bottom: 10px;
}

.student-profile-detail-section .status-item span:first-child {
    font-weight: 500;
    color: #333;
    font-size: 12px;
}

.student-profile-detail-section .status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    background-color: #ff9800;
}

.student-profile-detail-section .btn-update-profile {
    background-color: #6a3ab2;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.student-profile-detail-section .btn-update-profile:hover {
    background-color: #5e30a1;
}

@media (max-width: 768px) {
    .student-profile-detail-section .profile-header-card {
        flex-direction: column;
        text-align: center;
    }
    .student-profile-detail-section .details-columns {
        grid-template-columns: 1fr;
    }
    .student-profile-detail-section .col-md-8,
    .student-profile-detail-section .col-md-4 {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    #studentProfileModal .modal-dialog.modal-lg .modal-body {
        padding: 20px 15px;
    }
}

#student-performence-section .profile-view-more {
    text-align: right;
    margin-top: -15px;
}

#student-performence-section .profile-view-more a {
    color: #0000ff;
    font-weight: 600;
    text-decoration: none;
}

@media (min-width: 992px) {
    #studentProfileModal .modal-dialog.modal-lg {
        width: 1140px !important;
        max-width: 1140px !important;
        margin: 1.75rem auto;
    }

    #studentProfileModal .modal-dialog.modal-lg .modal-body {
        padding: 20px 5px;
    }
}

.student-profile-detail-section .btn-attachment-download {
    /* padding: 5px 10px; */
    padding: 6px 18px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    background-color: #4caf50;
}

.student-profile-detail-section .btn-attachment-download:hover {
    background-color: #45a049;
}

/* Custom student search css
---------------------------------------------------------------------- */
.student-dropdown {
    display: none;
    position: absolute;
    z-index: 1000;
    background: white;
    border: 0px;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2px;
}

.student-dropdown.show {
    display: block;
}

/* .student-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #ebebeb;
    transition: background-color 0.2s ease;
} */

.student-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #ebebeb;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 400;
    text-transform: capitalize;
}

.student-option:last-child {
    border-bottom: none;
}

.student-option:hover {
    background-color: #f5f5f5 !important;
}

.student-option.selected {
    background-color: #e3f2fd;
}

.student-option .student-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.student-option .student-class {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.student-option .student-details {
    font-size: 11px;
    color: #999;
}

.student-option .student-uid {
    display: inline-block;
    margin-right: 10px;
}

.student-option .student-mobile {
    display: inline-block;
}

.student-option .student-parent {
    font-size: 11px;
    color: #777;
    font-style: normal;
}

.student-dropdown .loading-message {
    padding: 10px;
    text-align: center;
    color: #666;
    font-style: normal;
}

.student-dropdown .no-results {
    padding: 10px;
    color: #999;
    text-align: center;
    font-style: normal;
}

.student-dropdown .error-message {
    padding: 10px;
    color: #dc3545;
    text-align: center;
    background-color: #f8d7da;
    border-left: 3px solid #dc3545;
}

/* Scrollbar styling for the dropdown */
.student-dropdown::-webkit-scrollbar {
    width: 6px;
}

.student-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.student-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.student-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Input field styling for student search */
.student_search_input {
    position: relative;
}

.student_search_input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Modal specific adjustments */
.modal .student-dropdown {
    z-index: 1060; /* Higher than modal backdrop */
}

/* Responsive design */
@media (max-width: 768px) {
    .student-dropdown {
        max-height: 150px;
    }

    .student-option {
        padding: 10px 8px;
    }

    .student-option .student-name {
        font-size: 14px;
    }

    .student-option .student-class {
        font-size: 11px;
    }

    .student-option .student-details {
        font-size: 10px;
    }
}

/* Loading animation */
.student-dropdown .loading-message::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 5px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: spin-student 1s linear infinite;
}

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

/* Scope everything to the academic-content section */
.academic-content .stat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.academic-content .stat-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Your original color variants (kept, but scoped) */
.academic-content .stat-icon.blue {
    background-color: #e3f2fd;
    color: #2196f3;
}

.academic-content .stat-icon.cyan {
    background-color: #e0f7fa;
    color: #00bcd4;
}

.academic-content .stat-icon.orange {
    background-color: #fff3e0;
    color: #ff9800;
}

.academic-content .stat-icon.yellow {
    background-color: #fffde7;
    color: #fbc02d;
}

/* Match the classes used in your HTML (no HTML changes) */
.academic-content .stat-icon-blue {
    background-color: #e3f2fd;
    color: #2196f3;
}

.academic-content .stat-icon-green {
    background-color: #e8f5e9;
    color: #4caf50;
}

.academic-content .stat-icon-purple {
    background-color: #f3e5f5;
    color: #9c27b0;
}

.academic-content .stat-icon-orange {
    background-color: #fff3e0;
    color: #ff9800;
}

/* Content typography */
.academic-content .stat-content {
    flex: 1;
}

.academic-content .stat-label {
    font-size: 12px;
    color: #999;
    /* margin-bottom: 5px; */
    margin-bottom: 0px;
}

/* .academic-content .stat-value {
    font-size: 20px !important;
    font-weight: 600;
    color: #333;
} */

/* Mobile: stack the cards if you ever wrap row with .stats-row (kept from your code) */
@media (max-width: 768px) {
    .academic-content .stats-row .charts-row {
        flex-direction: column;
    }
}

/* Table Section */
.exam-table-section {
    background: white;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.academic-marks-table .download-btn {
    color: #0000ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.academic-marks-table .download-btn:hover {
    text-decoration: none;
}

.exam-table.dataTable,
.exam-detail-table.dataTable {
    clear: both;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    max-width: none !important;
    border-collapse: separate !important;
    border-radius: 6px !important;
}

.exam-summary .label,
.fee-overview .label {
    font-size: 14px;
    font-weight: normal;
    color: inherit;
    background: none !important;
}

.subject-remarks-popover {
    max-width: 300px;
    background-color: #f8f9fa;
    border: none;
    border-radius: 4px;
    box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14),
        0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
}

.subject-remarks-popover .subject-remarks-arrow {
    border-top-color: #007bff !important;
    margin-left: 0px !important;
}

.subject-remarks-popover .subject-remarks-title {
    background-color: #007bff;
    color: #fff;
    font-weight: 500;
    border-bottom: 1px solid #d7d7d7;
    padding: 8px 14px;
    margin: 0;
    font-size: 12px;
    border-radius: 3px 3px 0 0;
}

.subject-remarks-popover .subject-remarks-content {
    padding: 10px 14px;
    color: #333;
    font-size: 13px;
    line-height: 1.4;
}

.subject-remarks-icon {
    cursor: pointer;
    pointer-events: auto;
}

.subject-remarks-icon:hover {
    color: #0056b3 !important;
    transform: scale(1.1);
}

/* Ensure our specific popovers appear above other elements */
.subject-remarks-popover {
    pointer-events: none;
}

.popover {
    transition: opacity 0.15s ease;
}

/* Academic exam page css
---------------------------------------------------------------------- */
.academic-content .charts-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.academic-content .chart-card {
    flex: 1;
    background: white;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.academic-content .chart-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.academic-content .chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    height: 300px; /* Added fixed height */
    min-height: 250px; /* Minimum height for mobile */
}

.academic-content .chart-container canvas {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .academic-content .charts-row {
        flex-direction: column;
        gap: 15px;
    }

    .academic-content .chart-card {
        padding: 15px;
    }

    .academic-content .chart-container {
        height: 250px; /* Slightly smaller height for mobile */
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .academic-content .chart-container {
        height: 220px; /* Even smaller for very small screens */
        padding: 10px;
    }
}

/* Exam Info Icon Styles */
.exam-info-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.exam-info-icon:hover {
    transform: scale(1.1);
}

.exam-info-icon i {
    vertical-align: middle;
    font-size: 22px;
    color: #7b4dff;
}

.exam-info-icon:focus {
    outline: none;
    box-shadow: none;
}

/* Exam Legend Popover Styles */
.exam-legend-popover {
    position: absolute;
    top: 50px;
    right: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 250px;
    max-width: 300px;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exam-legend-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    /* background: linear-gradient(135deg, #5e72e4 0%, #825ee4 100%); */
    background: #7b4dff;
    color: white;
    border-radius: 8px 8px 0 0;
}

.exam-legend-popover-title {
    font-weight: 600;
    font-size: 15px;
}

.exam-legend-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: white;
    transition: transform 0.2s ease;
}

.exam-legend-close:hover {
    transform: scale(1.2);
}

.exam-legend-close i {
    font-size: 20px;
    vertical-align: middle;
}

.exam-legend-popover-body {
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
}

/* Exam Legend Items in Popover */
.exam-legend-popover-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 6px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.exam-legend-popover-item:hover {
    background-color: #e9ecef;
    transform: translateX(3px);
}

.exam-legend-popover-item:last-child {
    margin-bottom: 0;
}

.exam-legend-popover-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 10px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.exam-legend-popover-text {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    flex: 1;
    line-height: 1.3;
}

.exam-legend-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

/* Custom Scrollbar for Popover */
.exam-legend-popover-body::-webkit-scrollbar {
    width: 5px;
}

.exam-legend-popover-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.exam-legend-popover-body::-webkit-scrollbar-thumb {
    background: #bda6ff;
    border-radius: 10px;
}

.exam-legend-popover-body::-webkit-scrollbar-thumb:hover {
    background: #bda6ff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .exam-legend-popover {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Competitive exam page css
---------------------------------------------------------------------- */
.competitive-content .charts-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.competitive-content .chart-card {
    flex: 1;
    background: white;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.competitive-content .chart-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.competitive-content .chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    height: 300px;
    min-height: 250px;
}

.competitive-content .chart-container canvas {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .competitive-content .charts-row {
        flex-direction: column;
        gap: 15px;
    }

    .competitive-content .chart-card {
        padding: 15px;
    }

    .competitive-content .chart-container {
        height: 250px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .competitive-content .chart-container {
        height: 220px;
        padding: 10px;
    }
}

/* Exam Info Icon Styles */
.competitive-exam-info-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.competitive-exam-info-icon:hover {
    transform: scale(1.1);
}

.competitive-exam-info-icon i {
    vertical-align: middle;
    font-size: 22px;
    color: #7b4dff;
}

.competitive-exam-info-icon:focus {
    outline: none;
    box-shadow: none;
}

/* Exam Legend Popover Styles */
.competitive-exam-legend-popover {
    position: absolute;
    top: 50px;
    right: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 250px;
    max-width: 300px;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.competitive-exam-legend-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #7b4dff;
    color: white;
    border-radius: 8px 8px 0 0;
}

.competitive-exam-legend-popover-title {
    font-weight: 600;
    font-size: 15px;
}

.competitive-exam-legend-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: white;
    transition: transform 0.2s ease;
}

.competitive-exam-legend-close:hover {
    transform: scale(1.2);
}

.competitive-exam-legend-close i {
    font-size: 20px;
    vertical-align: middle;
}

.competitive-exam-legend-popover-body {
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
}

/* Exam Legend Items in Popover */
.competitive-exam-legend-popover-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 6px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.competitive-exam-legend-popover-item:hover {
    background-color: #e9ecef;
    transform: translateX(3px);
}

.competitive-exam-legend-popover-item:last-child {
    margin-bottom: 0;
}

.competitive-exam-legend-popover-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 10px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.competitive-exam-legend-popover-text {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    flex: 1;
    line-height: 1.3;
}

.competitive-exam-legend-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

/* Custom Scrollbar for Popover */
.competitive-exam-legend-popover-body::-webkit-scrollbar {
    width: 5px;
}

.competitive-exam-legend-popover-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.competitive-exam-legend-popover-body::-webkit-scrollbar-thumb {
    background: #bda6ff;
    border-radius: 10px;
}

.competitive-exam-legend-popover-body::-webkit-scrollbar-thumb:hover {
    background: #bda6ff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .competitive-exam-legend-popover {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Stats card specific styles for competitive exams */
.competitive-stat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.competitive-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.competitive-stat-icon-blue {
    background: #e3f2fd;
    color: #1976d2;
}

.competitive-stat-icon-green {
    background: #e8f5e8;
    color: #388e3c;
}

.competitive-stat-icon-purple {
    background: #f3e5f5;
    color: #7b1fa2;
}

.competitive-stat-icon-orange {
    background: #fff3e0;
    color: #f57c00;
}

.competitive-stat-value {
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
}

.competitive-stat-label {
    color: #666;
    font-size: 13px;
    line-height: 1.2;
}

.competitive-marks-table .download-btn {
    color: #0000ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.competitive-exam-summary .label {
    font-size: 12px;
    font-weight: normal;
    color: inherit;
    background: none !important;
    padding: 0px !important;
}

/* Filter modal custom css
---------------------------------------------------------------------- */
@media (max-width: 768px) {
    #filterModal .modal-dialog,
    #filterModalAcademic .modal-dialog,
    #filterModalCompetitive .modal-dialog {
        margin: 1.75rem auto !important;
        max-width: 90% !important;
        width: auto !important;
    }

    #filterModal {
        padding-right: 0px !important;
    }

    #filterModalAcademic {
        padding-right: 0px !important;
    }

    #filterModalCompetitive {
        padding-right: 0px !important;
    }
}
