/**
 * School Management Portal - Main Stylesheet
 * Professional, responsive design for Nigerian schools
 */

/* ===== CSS Variables ===== */
:root {
    /* Fallbacks only — school theme overrides these from header.php after this file loads */
    --primary-color: #4e73df;
    --primary-dark: #224abe;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --navbar-height: 56px;
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    --transition: all 0.3s ease;
}

.role-dashboard .role-hero{display:flex;align-items:center;justify-content:space-between;padding:2rem 2.25rem;border-radius:1.25rem;color:#fff;background:linear-gradient(120deg,#6479e9,#7650ad);box-shadow:var(--box-shadow)}
.role-dashboard .role-hero h2{font-size:2.15rem;font-weight:500}.role-dashboard .role-hero p{font-size:1rem}.role-dashboard .role-hero-icon{width:76px;height:76px;opacity:.5;stroke-width:1.25}
.role-dashboard.role-finance .role-hero{background:linear-gradient(120deg,#22aa4b,#20c59c)}
.role-dashboard.role-admin .role-hero{background:linear-gradient(120deg,var(--primary-dark),var(--primary-color))}
.role-dashboard .stat-card{border-left:4px solid var(--primary-color)!important;border-radius:.8rem}.role-dashboard.role-finance .stat-card{border-left-color:#22aa4b!important}.role-dashboard .card{border-radius:.8rem}
@media(max-width:767px){.role-dashboard .role-hero{padding:1.25rem}.role-dashboard .role-hero h2{font-size:1.5rem}.role-dashboard .role-hero-icon{width:48px;height:48px}}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #f8f9fc;
    color: var(--dark-color);
    overflow-x: hidden;
    padding-top: var(--navbar-height);
}

/* ===== Portal Alerts ===== */
.portal-alert-modal .modal-dialog {
    max-width: 520px;
}

.portal-alert-modal .modal-content {
    border: 0;
    border-radius: 1.75rem;
    box-shadow: 0 2rem 4rem rgba(15, 23, 42, 0.28);
}

.portal-alert-modal .modal-body {
    padding: 2.25rem 2.5rem 2.5rem;
}

.modal-backdrop.show {
    opacity: .58;
    backdrop-filter: blur(7px);
}

.portal-alert-icon {
    width: 104px;
    height: 104px;
    margin: 0 auto 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 1rem 2rem rgba(78, 115, 223, 0.22);
}

.portal-alert-icon svg {
    width: 42px;
    height: 42px;
    stroke-width: 2.4;
}

.portal-alert-title {
    color: #1f2937;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: .85rem;
    letter-spacing: 0;
}

.portal-alert-message {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 32rem;
    margin: 0 auto 1.75rem;
    white-space: pre-wrap;
}

.portal-alert-actions {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.portal-alert-actions .btn {
    min-width: 118px;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 700;
    padding-inline: 1.6rem;
    box-shadow: 0 .75rem 1.35rem rgba(78, 115, 223, 0.16);
}

.portal-alert-cancel {
    color: #4b5563;
    background: #f3f4f6;
    border-color: #f3f4f6;
    box-shadow: none !important;
}

.portal-alert-info .portal-alert-icon { background: #2f6fea; }
.portal-alert-success .portal-alert-icon { background: #168a5a; }
.portal-alert-warning .portal-alert-icon { background: #d99000; }
.portal-alert-error .portal-alert-icon { background: #dc2626; }
.portal-alert-red .portal-alert-icon { background: #dc2626; }
.portal-alert-blue .portal-alert-icon { background: #2f6fea; }
.portal-alert-green .portal-alert-icon { background: #168a5a; }
.portal-alert-amber .portal-alert-icon { background: #d99000; }
.portal-alert-purple .portal-alert-icon { background: #7c3aed; }

.portal-toast-region {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1090;
}

.portal-flash-fallback {
    margin-bottom: 1rem;
}

@media (max-width: 575.98px) {
    .portal-alert-modal .modal-dialog {
        margin: 1rem;
    }

    .portal-alert-modal .modal-body {
        padding: 1.75rem 1.35rem 2rem;
    }

    .portal-alert-icon {
        width: 84px;
        height: 84px;
    }

    .portal-alert-title {
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-alert-modal.fade .modal-dialog {
        transition: none;
    }
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Layout ===== */
.wrapper {
    display: flex;
    min-height: calc(100vh - var(--navbar-height));
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 1.5rem;
    transition: var(--transition);
    min-height: calc(100vh - var(--navbar-height));
    min-width: 0;
    width: calc(100vw - var(--sidebar-width));
    max-width: calc(100vw - var(--sidebar-width));
}

/* ===== Navbar ===== */
.navbar {
    height: var(--navbar-height);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    z-index: 1040;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
}

.navbar-logo {
    height: 36px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.sidebar-toggle {
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    height: calc(100vh - var(--navbar-height));
    z-index: 1030;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-content {
    flex: 1;
    padding: 1rem 0;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    border-radius: 0;
    transition: var(--transition);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid white;
}

.sidebar .nav-link.active {
    font-weight: 600;
}

.sidebar .nav-link svg {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.sidebar .nav-text {
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s;
}

/* Submenu */
.submenu {
    background: rgba(0, 0, 0, 0.15);
    padding-left: 1rem;
}

.submenu .nav-link {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    border-left: none;
}

.submenu .nav-link:hover,
.submenu .nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(255, 255, 255, 0.5);
}

.submenu-icon {
    transition: transform 0.3s;
}

.sidebar-dropdown-toggle[aria-expanded="true"] .submenu-icon {
    transform: rotate(90deg);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Collapsed Sidebar */
body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100vw - var(--sidebar-collapsed-width));
    max-width: calc(100vw - var(--sidebar-collapsed-width));
}

body.sidebar-collapsed .nav-text,
body.sidebar-collapsed .submenu-icon {
    display: none;
}

body.sidebar-collapsed .sidebar .nav-link {
    justify-content: center;
    padding: 0.75rem;
}

body.sidebar-collapsed .sidebar .nav-link svg:first-child {
    margin-right: 0;
}

body.sidebar-collapsed .submenu {
    display: none;
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.card-header {
    background: white;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

/* ===== Stat Cards ===== */
.stat-card {
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

/* ===== Tables ===== */
.table {
    font-size: 0.9rem;
}

.table thead th {
    background: #f8f9fc;
    border-top: none;
    border-bottom: 2px solid #e3e6f0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e3e6f0;
}

.table-hover tbody tr:hover {
    background: #f8f9fc;
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
}

.table-responsive > .table {
    margin-bottom: 0;
    max-width: none;
}

.table-scroll-hint {
    display: none;
}

/* ===== Badges ===== */
.badge {
    font-weight: 500;
    padding: 0.4em 0.7em;
    font-size: 0.75rem;
}

/* ===== Buttons ===== */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 0.4rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
}

/* ===== Forms ===== */
.form-control, .form-select {
    border-radius: 0.4rem;
    border: 1px solid #d1d3e2;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.15);
}

.form-floating label {
    font-size: 0.9rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* ===== Alerts ===== */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* ===== Pagination ===== */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid #e3e6f0;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
}

.page-link:hover {
    background: #eaecf4;
    color: var(--primary-dark);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== Modals ===== */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e3e6f0;
    padding: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e3e6f0;
    padding: 1.25rem;
}

/* ===== Status Indicators ===== */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-active { background: var(--success-color); }
.status-inactive { background: var(--secondary-color); }
.status-pending { background: var(--warning-color); }
.status-danger { background: var(--danger-color); }

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* ===== Loading States ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Empty States ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
    color: var(--secondary-color);
}

.empty-state h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* ===== Print Styles ===== */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }
    
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 12px 0 32px rgba(15, 23, 42, .24);
    }
    
    .main-content {
        margin-left: 0;
        width: 100vw;
        max-width: 100vw;
    }
    
    body.sidebar-collapsed .main-content {
        margin-left: 0;
        width: 100vw;
        max-width: 100vw;
    }
    
    .nav-text {
        display: inline !important;
    }
    
    body.sidebar-collapsed .nav-text {
        display: inline !important;
    }
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: var(--navbar-height) 0 0 0;
    z-index: 998;
    border: 0;
    background: rgba(15, 23, 42, .52);
    padding: 0;
}

@media (max-width: 991.98px) {
    body.sidebar-open { overflow: hidden; }
    body.sidebar-open .sidebar-backdrop { display: block; }
    .sidebar { z-index: 999; }
    .sidebar-toggle { min-width: 48px; min-height: 48px; touch-action: manipulation; }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar, .main-content { transition: none !important; }
}

@media (max-width: 767.98px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .main-content {
        padding: .85rem;
    }

    .container-fluid {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .card {
        border-radius: .55rem;
    }

    .card-body,
    .modal-body {
        padding: 1rem;
    }

    .h3,
    h1.h3 {
        font-size: 1.28rem;
        line-height: 1.25;
    }

    .row.g-4,
    .row.g-3,
    .row.g-2 {
        --bs-gutter-x: .75rem;
    }

    form .btn,
    .main-content .btn {
        min-height: 42px;
        white-space: normal;
    }

    .d-flex.gap-2,
    .d-flex.gap-3 {
        flex-wrap: wrap;
    }

    .table-responsive {
        width: 100%;
        max-width: 100%;
        overflow-x: scroll !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        border-radius: .5rem;
        scrollbar-width: thin;
        scrollbar-color: #9ca3af #eef2f7;
    }

    .table-responsive > .table {
        width: max-content;
        min-width: 100%;
        margin-bottom: 0;
        table-layout: auto;
    }

    .table-responsive > .table:not(.table-sm) {
        min-width: 760px;
    }

    .table-responsive > .table.table-sm {
        min-width: 640px;
    }

    .table-responsive > .table th,
    .table-responsive > .table td {
        white-space: nowrap;
        vertical-align: middle;
    }

    .table-responsive > .table td .small,
    .table-responsive > .table td small,
    .table-responsive > .table td p {
        white-space: normal;
    }

    .table-responsive::-webkit-scrollbar {
        height: 10px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: #eef2f7;
        border-radius: 999px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: #9ca3af;
        border-radius: 999px;
        border: 2px solid #eef2f7;
    }

    .table-scroll-hint {
        display: flex;
        align-items: center;
        gap: .45rem;
        color: #6b7280;
        font-size: .78rem;
        font-weight: 700;
        margin: .15rem 0 .55rem;
    }

    .table-scroll-hint::before {
        content: '';
        width: 22px;
        height: 4px;
        border-radius: 999px;
        background: linear-gradient(90deg, #9ca3af, #d1d5db);
        flex: 0 0 auto;
    }

    .table-responsive.portal-card-table {
        overflow-x: visible !important;
        border-radius: 0;
        scrollbar-width: none;
    }

    .table-responsive.portal-card-table::-webkit-scrollbar {
        display: none;
    }

    .table-responsive.portal-card-table > .table {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .table-responsive.portal-card-table > .table thead {
        display: none;
    }

    .table-responsive.portal-card-table > .table tbody {
        display: grid;
        gap: .85rem;
    }

    .table-responsive.portal-card-table > .table tr {
        display: block;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: .75rem;
        box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .06);
        overflow: hidden;
        padding: .4rem .85rem;
    }

    .table-responsive.portal-card-table > .table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        border-bottom: 1px solid #eef2f7;
        min-height: 44px;
        padding: .65rem 0 !important;
        text-align: right;
        white-space: normal !important;
    }

    .table-responsive.portal-card-table > .table td:last-child {
        border-bottom: 0;
    }

    .table-responsive.portal-card-table > .table td[colspan] {
        display: block;
        max-width: none;
        padding: 1.25rem 0 !important;
        text-align: center;
    }

    .table-responsive.portal-card-table > .table td[colspan]::before {
        display: none;
    }

    .table-responsive.portal-card-table > .table td::before {
        content: attr(data-label);
        color: #6b7280;
        flex: 0 0 42%;
        font-size: .76rem;
        font-weight: 800;
        letter-spacing: .04em;
        text-align: left;
        text-transform: uppercase;
    }

    .table-responsive.portal-card-table > .table td > * {
        max-width: 58%;
    }

    .table-responsive.portal-card-table > .table td .btn-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: .35rem;
        max-width: 58%;
    }

    .table-responsive.portal-card-table > .table td .btn-group .btn {
        min-width: 42px;
        min-height: 42px;
        margin: 0;
    }

    .table-pagination {
        flex-direction: column;
        align-items: stretch !important;
    }

    .table-pagination .btn-group {
        width: 100%;
    }

    .table-pagination .btn {
        flex: 1;
    }

    .pagination {
        flex-wrap: wrap;
        gap: .25rem;
    }

    .page-link {
        min-width: 42px;
        text-align: center;
    }

    .dropdown-menu {
        max-width: calc(100vw - 1rem);
    }
}

@media (max-width: 575.98px) {
    .navbar .container-fluid {
        padding-left: .5rem;
        padding-right: .5rem;
    }

    .navbar-brand {
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .main-content .card-header,
    .main-content .card-footer {
        padding: .85rem 1rem;
    }

    .main-content .form-control,
    .main-content .form-select {
        min-height: 42px;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ===== Utilities ===== */
.border-left-primary { border-left: 4px solid var(--primary-color); }
.border-left-success { border-left: 4px solid var(--success-color); }
.border-left-info { border-left: 4px solid var(--info-color); }
.border-left-warning { border-left: 4px solid var(--warning-color); }
.border-left-danger { border-left: 4px solid var(--danger-color); }

.text-xs { font-size: 0.7rem; }
.text-sm { font-size: 0.85rem; }
.text-lg { font-size: 1.15rem; }
.text-xl { font-size: 1.35rem; }

.font-weight-bold { font-weight: 700; }
.font-weight-semibold { font-weight: 600; }

/* ===== Fee Status Colors ===== */
.fee-paid { color: var(--success-color); }
.fee-partial { color: var(--warning-color); }
.fee-unpaid { color: var(--danger-color); }

/* ===== Result Status Colors ===== */
.result-excellent { color: #1cc88a; }
.result-good { color: #4e73df; }
.result-average { color: #f6c23e; }
.result-fail { color: #e74a3b; }

/* ===== Photo Upload Preview ===== */
.photo-preview {
    width: 150px;
    height: 150px;
    border: 2px dashed #d1d3e2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fc;
    cursor: pointer;
    transition: var(--transition);
}

.photo-preview:hover {
    border-color: var(--primary-color);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview .upload-placeholder {
    text-align: center;
    color: var(--secondary-color);
}

/* ===== Search Box ===== */
.search-box {
    position: relative;
}

.search-box input {
    padding-left: 2.5rem;
}

.search-box svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    width: 18px;
    height: 18px;
}

/* ===== Filter Section ===== */
.filter-section {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e3e6f0;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* ===== Result Card ===== */
.result-card {
    border: 1px solid #e3e6f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.result-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e3e6f0;
}

/* ===== PIN Display ===== */
.pin-display {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    text-align: center;
    padding: 1rem;
    background: #f8f9fc;
    border-radius: var(--border-radius);
    border: 2px dashed var(--primary-color);
}

/* ===== Receipt ===== */
.receipt-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border: 1px solid #ddd;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.receipt-logo {
    max-height: 80px;
    margin-bottom: 0.5rem;
}

.receipt-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.receipt-subtitle {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* ===== Dashboard Widgets ===== */
.widget {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* ===== Notification Bell ===== */
.notification-dropdown {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e3e6f0;
    transition: var(--transition);
}

.notification-item:hover {
    background: #f8f9fc;
}

.notification-item.unread {
    background: #eef2ff;
}

/* ===== Tabs ===== */
.nav-tabs .nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.25rem;
}

.nav-tabs .nav-link:hover {
    border-color: #e3e6f0;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

/* ===== Progress Bars ===== */
.progress {
    height: 0.6rem;
    border-radius: 0.3rem;
    background: #eaecf4;
}

.progress-bar {
    border-radius: 0.3rem;
}

/* ===== Data Export Buttons ===== */
.export-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.export-buttons .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* ===== Student/Staff Photo ===== */
.person-photo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e3e6f0;
}

.person-photo-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
