body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

.fs-7 {
    font-size: 0.85rem;
}

/* Custom Card Styling */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Navigation & Sidebar Overlays */
/* =========================================
   Sidebar Navigation
   ========================================= */

#sidebar-wrapper {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border-right: 1px solid #e5e7eb !important;
}

    /* Sidebar Header */
    #sidebar-wrapper .sidebar-heading {
        background: #ffffff !important;
        color: #1e293b !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    /* Sidebar menu item */
    #sidebar-wrapper .list-group-item {
        display: flex;
        align-items: center;
        min-height: 52px;
        font-size: 16px;
        font-weight: 600;
        color: #1e293b !important;
        background-color: #ffffff !important;
        border: 0 !important;
        border-radius: 0 !important;
        transition: all 0.2s ease;
    }

        /* Normal menu hover */
        #sidebar-wrapper .list-group-item:hover {
            background-color: #fff4e5 !important;
            color: #d97706 !important;
        }

        /* Selected / Active menu */
        #sidebar-wrapper .list-group-item.active {
            background-color: #ff9c00 !important;
            color: #ffffff !important;
            font-weight: 700;
            box-shadow: inset 4px 0 0 #e68a00 !important;
        }

            /* Active menu icon */
            #sidebar-wrapper .list-group-item.active i {
                color: #ffffff !important;
            }

        /* Menu icons */
        #sidebar-wrapper .list-group-item i {
            width: 28px;
            min-width: 28px;
            text-align: center;
            font-size: 19px;
            margin-right: 8px !important;
        }

        /* Keep inactive icon colors visible */
        #sidebar-wrapper .list-group-item:not(.active) i.text-primary {
            color: #2563eb !important;
        }

        #sidebar-wrapper .list-group-item:not(.active) i.text-info {
            color: #06b6d4 !important;
        }

        #sidebar-wrapper .list-group-item:not(.active) i.text-warning {
            color: #f59e0b !important;
        }

        #sidebar-wrapper .list-group-item:not(.active) i.text-success {
            color: #16a34a !important;
        }

        #sidebar-wrapper .list-group-item:not(.active) i.text-danger {
            color: #dc2626 !important;
        }

        #sidebar-wrapper .list-group-item:not(.active) i.text-secondary {
            color: #64748b !important;
        }

        /* Parent Portal separator */
        #sidebar-wrapper .list-group-item.border-top {
            border-top: 1px solid #d1d5db !important;
            margin-top: 12px !important;
        }

            /* Parent Portal hover */
            #sidebar-wrapper .list-group-item.border-top:hover {
                background-color: #fff4e5 !important;
            }


/* Table Hover Effects */
.table-hover tbody tr:hover {
    background-color: #f1f5f9;
}

/* PDF Viewer Styles */
.pdf-viewer-container {
    background-color: #f1f5f9;
}

#pdfCanvas {
    max-width: 100%;
    height: auto;
}
/* =========================================
   Academic Year Selector
   ========================================= */

.academic-year-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    white-space: nowrap;
}

.academic-year-icon {
    font-size: 14px;
    color: #0d6efd;
    line-height: 1;
}

.academic-year-label {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
}

.academic-year-select {
    width: auto !important;
    min-width: 82px;
    height: 32px;
    padding: 3px 28px 3px 10px !important;
    border-radius: 6px !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none !important;
}

/* Admin / White navbar */
.navbar-white .academic-year-select {
    color: #0d6efd !important;
    background-color: #fff !important;
    border: 1px solid #0d6efd !important;
}

    .navbar-white .academic-year-select option {
        color: #212529;
        background-color: #fff;
    }

/* Public / Dark navbar */
.public-year-selector .academic-year-icon {
    color: #0d6efd;
}

.public-year-selector .academic-year-label {
    color: #fff !important;
}

.public-year-select {
    color: #fff !important;
    background-color: #212529 !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
}

    .public-year-select option {
        color: #212529 !important;
        background-color: #fff !important;
    }

.admin-login-btn {
    white-space: nowrap;
}

/* =========================================
   Remove Select2 clear / cancel icon
   ========================================= */

#navbarYearSelect + .select2 .select2-selection__clear {
    display: none !important;
}

/*.select2-container--bootstrap-5
.select2-selection--single
.select2-selection__clear {
    display: none !important;
}*/

.school-statistics-scroll {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
}

    .school-statistics-scroll thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background-color: #212529 !important;
        color: #fff;
    }

/* =========================================
   School-wise Search Statistics
   ========================================= */

.school-statistics-table {
    width: 100%;
}

    /* DataTable wrapper */
    .school-statistics-table .dataTables_wrapper {
        padding: 0;
    }

    /* DataTable top controls */
    .school-statistics-table .dataTables_length,
    .school-statistics-table .dataTables_filter {
        padding: 12px 16px;
    }

        /* Show entries */
        .school-statistics-table .dataTables_length label {
            color: #475569;
            font-size: 14px;
            font-weight: 500;
        }

        .school-statistics-table .dataTables_length select {
            min-width: 70px;
            margin: 0 5px;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            padding: 5px 28px 5px 10px;
        }

        /* Search box */
        .school-statistics-table .dataTables_filter label {
            color: #475569;
            font-size: 14px;
            font-weight: 500;
        }

        .school-statistics-table .dataTables_filter input {
            margin-left: 8px;
            min-width: 220px;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            padding: 6px 10px;
            outline: none;
        }

            .school-statistics-table .dataTables_filter input:focus {
                border-color: #2563eb;
                box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
            }

    /* Table */
    .school-statistics-table table {
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    .school-statistics-table thead th {
        background-color: #212529 !important;
        color: #fff !important;
        border-bottom: 0;
        padding-top: 13px;
        padding-bottom: 13px;
        white-space: nowrap;
    }

    .school-statistics-table tbody td {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    /* Row hover */
    .school-statistics-table tbody tr:hover {
        background-color: #f8fafc !important;
    }

    /* DataTable bottom section */
    .school-statistics-table .dataTables_info {
        padding: 12px 16px !important;
        color: #64748b;
        font-size: 14px;
    }

    .school-statistics-table .dataTables_paginate {
        padding: 8px 16px !important;
    }

    /* Pagination */
    .school-statistics-table .page-link {
        border-radius: 6px !important;
        margin: 0 2px;
    }

/* Keep table clean on smaller screens */
@media (max-width: 768px) {

    .school-statistics-table .dataTables_length,
    .school-statistics-table .dataTables_filter {
        padding: 10px 12px;
    }

        .school-statistics-table .dataTables_filter input {
            min-width: 150px;
            width: 150px;
        }
}
/* =========================================
   Public Header - White
   ========================================= */

.admin-login-btn {
    white-space: nowrap;
    color: #212529 !important;
    border: 1px solid #212529 !important;
    background-color: #fff !important;
    font-weight: 500;
}

    .admin-login-btn:hover {
        color: #fff !important;
        background-color: #212529 !important;
        border-color: #212529 !important;
    }

    .admin-login-btn i {
        color: inherit !important;
    }


/* =========================================
   Adam Photo Orange Theme
   ========================================= */

.adam-primary-card {
    background-color: #ff9c00 !important;
}

.text-adam-orange {
    color: #ff9c00 !important;
}


/* =========================================
   Verify & Search Button
   ========================================= */

.btn-adam-orange {
    background-color: #ff9c00 !important;
    border-color: #ff9c00 !important;
    color: #fff !important;
    font-weight: 600;
}

    .btn-adam-orange:hover,
    .btn-adam-orange:focus {
        background-color: #e68a00 !important;
        border-color: #e68a00 !important;
        color: #fff !important;
    }

    .btn-adam-orange i {
        color: #fff !important;
    }

/* Adam Photo Navbar Logo */
.adam-logo {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .adam-logo {
        height: 38px;
        max-width: 180px;
    }
}

/* =========================================
   Admin Login
   ========================================= */

.login-card {
    background-color: #fff;
}

/* White logo header */
.login-header {
    background-color: #fff !important;
    padding-top: 28px !important;
    padding-bottom: 20px !important;
}

/* Adam Photo Logo */
.login-logo {
    display: block;
    width: 220px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    margin: 0 auto;
}

/* Login form */
.login-card .form-label {
    color: #1e293b;
}

.login-card .input-group-text {
    color: #ff9c00;
    border-color: #dee2e6;
}

.login-card .form-control:focus {
    border-color: #ff9c00;
    box-shadow: 0 0 0 0.2rem rgba(255, 156, 0, 0.15);
}

/* Forgot password */
.login-card a {
    color: #ff9c00;
}

    .login-card a:hover {
        color: #e68a00;
    }

/* Orange Sign In button */
.btn-adam-orange {
    background-color: #ff9c00 !important;
    border-color: #ff9c00 !important;
    color: #fff !important;
}

    .btn-adam-orange:hover,
    .btn-adam-orange:focus,
    .btn-adam-orange:active {
        background-color: #e68a00 !important;
        border-color: #e68a00 !important;
        color: #fff !important;
    }

    .btn-adam-orange i {
        color: #fff !important;
    }

/* Mobile */
@media (max-width: 576px) {
    .login-logo {
        width: 180px;
        max-height: 65px;
    }

    .login-header {
        padding-top: 22px !important;
        padding-bottom: 15px !important;
    }
}