/* ==========================================================================
   SVYCTC Admin Panel — single stylesheet
   Loaded by the admin, login and print layouts after Bootstrap / AdminLTE.
   Public site styles remain in assets/style.css.
   ========================================================================== */

/* ---------- 1. Top progress bar ---------- */
/* Top Progress Bar Loader */
        #top-progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 3px;
            background: #EA580C;
            z-index: 999999;
            transition: width 0.3s ease, opacity 0.3s ease;
        }

/* ---------- 2. Admin layout, theme and buttons ---------- */
.content-wrapper { min-height: calc(100vh - 57px); }
        .user-header { background: transparent !important; }

        /* Fixed Layout */
        .main-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1040;
            border-bottom: none !important;
            box-shadow: none !important;
        }

        .content-wrapper {
            padding-top: 57px;
            min-height: 100vh;
            background: #f4f6f9;
        }

        /* Footer compact */
        .main-footer {
            padding: 6px 16px;
            font-size: 0.8rem;
            line-height: 1.4;
        }

        /* Body no scroll on sidebar */
        body { overflow-x: hidden; }

        /* High Contrast & Crisp Muted / Secondary Texts */
        .text-muted {
            color: #475569 !important;
        }
        .text-secondary {
            color: #334155 !important;
        }
        small.text-muted, .small.text-muted, small {
            color: #475569 !important;
            font-weight: 500;
        }
        .table td.text-muted, .table th.text-muted {
            color: #334155 !important;
            font-weight: 500;
        }
        .table th small.text-muted {
            color: #475569 !important;
        }
        .quick-widget .text-muted {
            color: #334155 !important;
            font-weight: 500;
        }
        .badge.bg-secondary.bg-opacity-10.text-secondary {
            color: #1e293b !important;
            background-color: #e2e8f0 !important;
            font-weight: 600;
            border-color: #cbd5e1 !important;
        }
        .badge.text-muted {
            color: #1e293b !important;
        }
        .form-label.text-muted, label.text-muted {
            color: #1e293b !important;
            font-weight: 600;
        }
        .modal-body p.text-muted {
            color: #334155 !important;
            font-weight: 500;
        }

        /* ------------------------------------------------------------------ */
        /* INDIAN FLAG THEME (Tiranga: Saffron #FF9933, White, Green #138808, Navy #0F172A) */
        /* ------------------------------------------------------------------ */
        :root {
            --flag-saffron: #FF9933;
            --flag-saffron-dark: #EA580C;
            --flag-green: #138808;
            --flag-green-dark: #0f6c06;
            --flag-navy: #0f172a;
            --flag-navy-accent: #1e3a8a;
        }

        /* ------------------------------------------------------------------ */
        /* INPUT ICONS THEMED IN ORANGE */
        /* ------------------------------------------------------------------ */
        .input-group-text i:not(.text-success):not(.text-danger):not(.text-white),
        .input-group-text .fas:not(.text-success):not(.text-danger):not(.text-white),
        .input-group-text .far:not(.text-success):not(.text-danger):not(.text-white),
        .input-group-text .fab:not(.text-success):not(.text-danger):not(.text-white),
        .input-icon {
            color: #ea580c !important;
        }

        .input-group:focus-within .input-group-text i:not(.text-success):not(.text-danger):not(.text-white),
        .input-group:focus-within .input-group-text .fas:not(.text-success):not(.text-danger):not(.text-white),
        .input-group:focus-within .input-icon {
            color: #c2410c !important;
        }

        /* ------------------------------------------------------------------ */
        /* FLAT BUTTONS (NO GRADIENTS, NO BOX-SHADOWS) */
        /* ------------------------------------------------------------------ */
        .btn,
        .btn:hover,
        .btn:focus,
        .btn:active,
        .btn:visited {
            background-image: none !important;
            box-shadow: none !important;
            text-shadow: none !important;
            text-decoration: none !important;
        }

        /* Solid buttons only. Every variant keeps a coloured background and
           a text colour that passes WCAG AA (>= 4.5:1) for normal text. */
        .btn-primary,
        .btn-outline-primary {
            background-color: #C2410C !important; /* white 5.18:1 */
            background-image: none !important;
            border: none !important;
            color: #ffffff !important;
            font-weight: 700 !important;
            box-shadow: none !important;
        }
        .btn-primary:hover, .btn-primary:focus,
        .btn-outline-primary:hover, .btn-outline-primary:focus {
            background-color: #9A3412 !important; /* white 7.31:1 */
            background-image: none !important;
            box-shadow: none !important;
            color: #ffffff !important;
        }

        .btn-secondary,
        .btn-outline-secondary {
            background-color: #475569 !important; /* white 7.58:1 */
            background-image: none !important;
            border: none !important;
            color: #ffffff !important;
            font-weight: 700 !important;
            box-shadow: none !important;
        }
        .btn-secondary:hover, .btn-secondary:focus,
        .btn-outline-secondary:hover, .btn-outline-secondary:focus {
            background-color: #334155 !important; /* white 10.35:1 */
            background-image: none !important;
            box-shadow: none !important;
            color: #ffffff !important;
        }

        .btn-success,
        .btn-outline-success {
            background-color: #15803D !important; /* white 5.02:1 */
            background-image: none !important;
            border: none !important;
            color: #ffffff !important;
            font-weight: 700 !important;
            box-shadow: none !important;
        }
        .btn-success:hover, .btn-success:focus,
        .btn-outline-success:hover, .btn-outline-success:focus {
            background-color: #166534 !important; /* white 7.13:1 */
            background-image: none !important;
            box-shadow: none !important;
            color: #ffffff !important;
        }

        .btn-danger,
        .btn-outline-danger {
            background-color: #B91C1C !important; /* white 6.47:1 */
            background-image: none !important;
            border: none !important;
            color: #ffffff !important;
            font-weight: 700 !important;
            box-shadow: none !important;
        }
        .btn-danger:hover, .btn-danger:focus,
        .btn-outline-danger:hover, .btn-outline-danger:focus {
            background-color: #991B1B !important; /* white 8.31:1 */
            background-image: none !important;
            box-shadow: none !important;
            color: #ffffff !important;
        }

        .btn-warning,
        .btn-outline-warning {
            background-color: #B45309 !important; /* white 5.02:1 */
            background-image: none !important;
            border: none !important;
            color: #ffffff !important;
            font-weight: 700 !important;
            box-shadow: none !important;
        }
        .btn-warning:hover, .btn-warning:focus,
        .btn-outline-warning:hover, .btn-outline-warning:focus {
            background-color: #92400E !important; /* white 7.09:1 */
            background-image: none !important;
            box-shadow: none !important;
            color: #ffffff !important;
        }

        .btn-info,
        .btn-outline-info {
            background-color: #0369A1 !important; /* white 5.93:1 */
            background-image: none !important;
            border: none !important;
            color: #ffffff !important;
            font-weight: 700 !important;
            box-shadow: none !important;
        }
        .btn-info:hover, .btn-info:focus,
        .btn-outline-info:hover, .btn-outline-info:focus {
            background-color: #075985 !important; /* white 7.56:1 */
            background-image: none !important;
            box-shadow: none !important;
            color: #ffffff !important;
        }

        .btn-dark,
        .btn-outline-dark {
            background-color: #1F2937 !important; /* white 14.68:1 */
            background-image: none !important;
            border: none !important;
            color: #ffffff !important;
            font-weight: 700 !important;
            box-shadow: none !important;
        }
        .btn-dark:hover, .btn-dark:focus,
        .btn-outline-dark:hover, .btn-outline-dark:focus {
            background-color: #111827 !important; /* white 17.38:1 */
            background-image: none !important;
            box-shadow: none !important;
            color: #ffffff !important;
        }
        .btn-outline-dark.active,
        .btn-outline-dark.active:hover,
        .btn-outline-dark.active:focus {
            background-color: #C2410C !important; /* active filter: white 5.18:1 */
            color: #ffffff !important;
        }

        .btn-light,
        .btn-outline-light {
            background-color: #E2E8F0 !important; /* dark 14.48:1 */
            background-image: none !important;
            border: none !important;
            color: #0F172A !important;
            font-weight: 700 !important;
            box-shadow: none !important;
        }
        .btn-light:hover, .btn-light:focus,
        .btn-outline-light:hover, .btn-outline-light:focus {
            background-color: #CBD5E1 !important; /* dark 11.96:1 */
            background-image: none !important;
            box-shadow: none !important;
            color: #0F172A !important;
        }

        .btn-link {
            background-color: #1D4ED8 !important; /* white 6.70:1 */
            background-image: none !important;
            border: none !important;
            color: #ffffff !important;
            text-decoration: none !important;
            font-weight: 700 !important;
            box-shadow: none !important;
        }
        .btn-link:hover, .btn-link:focus {
            background-color: #1E40AF !important; /* white 8.27:1 */
            color: #ffffff !important;
            text-decoration: none !important;
        }

        /* Content Header Styling */
        .content-header h1 {
            font-weight: 800;
            color: #0f172a;
            letter-spacing: -0.02em;
        }

        /* Footer without top line / border */
        .main-footer {
            border-top: none !important;
            border-image: none !important;
            box-shadow: none !important;
            background: #ffffff !important;
            font-weight: 500;
        }

        /* ------------------------------------------------------------------ */
        /* ACTION BUTTONS ALWAYS HAVE SOLID FLAT BACKGROUND COLOR */
        /* ------------------------------------------------------------------ */
        .table td .btn,
        .table-actions .btn,
        .table .btn-sm {
            color: #ffffff !important;
            font-weight: 600 !important;
            border: none !important;
            padding: 0.32rem 0.55rem !important;
            border-radius: 0.375rem !important;
            box-shadow: none !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            opacity: 1 !important;
            background-image: none !important;
            transition: opacity 0.15s ease !important;
        }

        .table td .btn:hover,
        .table-actions .btn:hover {
            transform: none !important;
            box-shadow: none !important;
            filter: brightness(0.92) !important;
            color: #ffffff !important;
        }

        /* Solid Color Overrides for all table button variants */
        .table .btn-outline-primary,
        .table-actions .btn-outline-primary,
        .table .btn-primary {
            background-color: #2563eb !important;
            background-image: none !important;
            color: #ffffff !important;
        }

        .table .btn-outline-info,
        .table-actions .btn-outline-info,
        .table .btn-info {
            background-color: #0369A1 !important; /* white 5.93:1 */
            background-image: none !important;
            color: #ffffff !important;
        }

        .table .btn-outline-success,
        .table-actions .btn-outline-success,
        .table .btn-success {
            background-color: #138808 !important; /* India Green */
            background-image: none !important;
            color: #ffffff !important;
        }

        .table .btn-outline-danger,
        .table-actions .btn-outline-danger,
        .table .btn-danger {
            background-color: #dc2626 !important;
            background-image: none !important;
            color: #ffffff !important;
        }

        .table .btn-outline-warning,
        .table-actions .btn-outline-warning,
        .table .btn-warning {
            background-color: #B45309 !important; /* white 5.02:1 */
            background-image: none !important;
            color: #ffffff !important;
        }

        .table .btn-outline-secondary,
        .table-actions .btn-outline-secondary,
        .table .btn-secondary {
            background-color: #475569 !important;
            background-image: none !important;
            color: #ffffff !important;
        }

        /* ------------------------------------------------------------------ */
        /* REMOVE SPINNER ARROWS FROM NUMBER INPUTS */
        /* ------------------------------------------------------------------ */
        input[type="number"]::-webkit-outer-spin-button,
        input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none !important;
            margin: 0 !important;
        }

        input[type="number"] {
            -moz-appearance: textfield !important;
            appearance: textfield !important;
        }

        /* ------------------------------------------------------------------ */
        /* CURSOR POINTER FOR DROPDOWNS, DATE INPUTS, TOGGLES & BUTTONS */
        /* ------------------------------------------------------------------ */
        /* Dropdowns */
        select,
        .form-select,
        .form-select-sm,
        .form-select-lg,
        .dropdown-toggle,
        .dropdown-item,
        .custom-nav-dropdown .dropdown-item {
            cursor: pointer !important;
        }

        /* Date, Month, Time inputs & calendar picker indicators */
        input[type="date"],
        input[type="month"],
        input[type="time"],
        input[type="datetime-local"] {
            cursor: pointer !important;
        }

        input[type="date"]::-webkit-calendar-picker-indicator,
        input[type="month"]::-webkit-calendar-picker-indicator,
        input[type="time"]::-webkit-calendar-picker-indicator,
        input[type="datetime-local"]::-webkit-calendar-picker-indicator {
            cursor: pointer !important;
        }

        /* Toggles, Switches, Checkboxes, Radios & Action Buttons */
        .form-check-input,
        .form-check-label,
        .form-switch,
        .form-switch .form-check-input,
        input[type="checkbox"],
        input[type="radio"],
        .navbar-toggler,
        button,
        .btn,
        .btn:not(:disabled),
        button[onclick*="toggle"],
        button[onclick*="Toggle"],
        form[action*="toggle"] button,
        form[action*="toggle-status"] button,
        .table-actions button,
        .table-actions a,
        .page-link,
        .action-hamburger-btn {
            cursor: pointer !important;
        }

        /* Toast notifications are handled globally via partial */

/* ---------- 3. Top navigation ---------- */
.main-header.custom-topbar {
    background-color: #0f172a !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 8px 0 !important;
}

.custom-topbar .navbar-collapse .navbar-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap !important;
}

.custom-topbar .navbar-collapse .navbar-nav .nav-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap !important;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    /* Divider between menu items */
    .custom-topbar .navbar-collapse .navbar-nav .nav-item:not(:last-child)::after {
        content: "";
        display: inline-block;
        width: 1px;
        height: 16px;
        background-color: rgba(255, 255, 255, 0.25); 
        margin: 0 6px;
        flex-shrink: 0;
    }
}

.custom-topbar .navbar-nav .nav-link {
    color: #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 7px 12px !important;
    font-weight: 500;
    font-size: 0.88rem;
    transition: all 0.2s ease !important;
}

.custom-topbar .navbar-nav .nav-link:hover {
    background-color: rgba(255, 153, 51, 0.18) !important;
    color: #FF9933 !important;
}

.custom-topbar .navbar-nav .nav-link.active {
    background-color: #C2410C !important; /* white text 5.18:1 */
    background-image: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

/* Hover-activated dropdown & child menu UI matching navbar */
@media (min-width: 768px) {
    .custom-topbar .nav-item.dropdown.hover-dropdown {
        position: relative;
    }
    .custom-topbar .nav-item.dropdown.hover-dropdown:hover > .custom-nav-dropdown {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

.custom-topbar .custom-nav-dropdown {
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 6px !important;
    min-width: 195px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    margin-top: 0 !important;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
}

@media (max-width: 767.98px) {
    .custom-topbar .nav-item.dropdown.hover-dropdown {
        position: static;
        display: block;
        width: 100%;
    }
    .custom-topbar .nav-item.dropdown.hover-dropdown > .nav-link {
        width: 100%;
    }
    .custom-topbar .custom-nav-dropdown {
        position: static !important;
        width: 100%;
        min-width: 0;
        margin: 4px 0 8px !important;
        box-shadow: none !important;
    }
    .custom-topbar .custom-nav-dropdown::before {
        display: none;
    }
}

/* Invisible hover bridge on the dropdown menu so mouse moving down keeps it open */
.custom-topbar .custom-nav-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.custom-topbar .custom-nav-dropdown .dropdown-item {
    color: #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 8px 14px !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    background-color: transparent !important;
    transition: all 0.2s ease !important;
}

.custom-topbar .custom-nav-dropdown .dropdown-item:hover,
.custom-topbar .custom-nav-dropdown .dropdown-item:focus {
    background-color: rgba(255, 153, 51, 0.18) !important;
    color: #FF9933 !important;
}

.custom-topbar .custom-nav-dropdown .dropdown-item.active {
    background-color: #C2410C !important; /* white text 5.18:1 */
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* User profile styling in topbar */
.custom-topbar .user-dropdown-link {
    background-color: #1e293b !important;
    border: 1px solid rgba(255, 153, 51, 0.35) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.custom-topbar .user-dropdown-link:hover {
    border-color: #FF9933 !important;
}

.custom-topbar .badge-branch {
    background-color: #138808 !important;
    color: #ffffff !important;
    font-weight: 700;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar-toggler {
    border-color: #334155 !important;
    margin: 8px;
}

/* ---------- 4. Sidebar ---------- */
/* Professional Clean Compact Sidebar (No Gradients) */
.main-sidebar {
    background-color: #1e293b !important;
    border-right: 1px solid #334155 !important;
    box-shadow: none !important;
}

/* Brand Header */
.brand-compact-link {
    display: flex !important;
    align-items: center;
    height: 54px;
    padding: 0 16px;
    background-color: #0f172a !important;
    border-bottom: 1px solid #334155 !important;
    text-decoration: none;
}
.brand-compact-link .brand-text {
    color: #f8fafc;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}
.brand-compact-link .brand-sub {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-left: 6px;
    font-weight: 500;
}

/* Sidebar Navigation Items */
.sidebar {
    padding-top: 8px;
    padding-bottom: 20px;
}
.nav-sidebar .nav-item {
    margin-bottom: 2px;
}
.nav-sidebar .nav-link {
    color: #cbd5e1 !important;
    border-radius: 6px !important;
    margin: 1px 8px !important;
    padding: 8px 12px !important;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.88rem;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    border: none !important;
}
.nav-sidebar .nav-link .nav-icon {
    font-size: 1rem;
    width: 24px;
    text-align: center;
    margin-right: 10px;
    color: #94a3b8;
}

/* Hover State */
.nav-sidebar .nav-link:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}
.nav-sidebar .nav-link:hover .nav-icon {
    color: #ffffff;
}

/* Active State */
.nav-sidebar .nav-link.active {
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
.nav-sidebar .nav-link.active .nav-icon {
    color: #ffffff !important;
}

/* Section Header / Labels */
.nav-section-label {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 18px 4px 18px;
    user-select: none;
}

/* Special Logout Button Styling */
.nav-link-logout {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    width: fit-content !important;
    min-width: 115px !important;
    padding: 6px 16px !important;
    margin: 4px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
}
.nav-link-logout .nav-icon {
    color: #ffffff !important;
}
.nav-link-logout:hover,
.nav-link-logout:focus,
.nav-link-logout:active {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}
.nav-link-logout:hover .nav-icon {
    color: #ffffff !important;
}

/* User profile box */
.sidebar-user-box {
    margin: 8px 8px 12px 8px;
    padding: 8px 10px;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-user-box .user-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.sidebar-user-box .user-details {
    overflow: hidden;
    line-height: 1.2;
}
.sidebar-user-box .user-name {
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.84rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.sidebar-user-box .user-role {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 500;
}

/* ---------- 5. Toast notifications ---------- */
/* Toast Notifications - Global Simple UI */
    .toast-container {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-width: 350px;
    }

    .app-toast {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateX(120%) scale(0.9);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
        position: relative;
        overflow: hidden;
    }

    .app-toast.show {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    .app-toast.hide {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }

    .app-toast-icon {
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .app-toast-success .app-toast-icon { color: #28a745; }
    .app-toast-error .app-toast-icon { color: #dc3545; }
    .app-toast-warning .app-toast-icon { color: #ffc107; }
    .app-toast-info .app-toast-icon { color: #17a2b8; }

    .app-toast-body {
        flex: 1;
        min-width: 0;
    }
    
    .app-toast-title {
        font-size: 0.9rem;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 2px;
    }

    .app-toast-message {
        font-size: 0.8125rem;
        color: #4b5563;
        line-height: 1.4;
    }

    .app-toast-close {
        background: none;
        border: none;
        color: #9ca3af;
        cursor: pointer;
        font-size: 1rem;
        padding: 0;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s;
    }

    .app-toast-close:hover {
        color: #4b5563;
    }

    .app-toast-progress {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        transition: width linear;
    }

    .app-toast-success .app-toast-progress { background: #28a745; }
    .app-toast-error .app-toast-progress { background: #dc3545; }
    .app-toast-warning .app-toast-progress { background: #ffc107; }
    .app-toast-info .app-toast-progress { background: #17a2b8; }

    @media (max-width: 575.98px) {
        .toast-container {
            right: 12px;
            left: 12px;
            max-width: none;
            top: 12px;
        }
        .app-toast {
            border-radius: 8px;
            padding: 14px 16px;
        }
    }

/* ---------- 6. Dashboard cards ---------- */
.dashboard-card {
    transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem !important;
    border: none !important;
    cursor: pointer;
}
.dashboard-card:hover {
    transform: translateY(-7px);
}
.dashboard-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    transition: transform 0.5s ease;
}
.dashboard-card:hover::before {
    transform: scale(1.4);
}
.dashboard-card::after {
    content: '';
    position: absolute;
    bottom: -35px;
    left: -25px;
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.dashboard-card .icon-box {
    width: 68px;
    height: 68px;
    border-radius: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    color: #ffffff;
    transition: transform 0.3s ease;
}
.dashboard-card:hover .icon-box {
    transform: scale(1.08) rotate(3deg);
}
.dashboard-card .card-title {
    color: #ffffff !important;
    font-size: 1.2rem;
    letter-spacing: -0.2px;
}
.dashboard-card .card-subtitle {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.84rem;
}
.dashboard-card .card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    margin-top: 12px;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.dashboard-card:hover .card-badge {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.03);
}

/* Card color gradients & custom ambient glows */
.card-grad-indigo {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    box-shadow: 0 10px 22px -3px rgba(79, 70, 229, 0.42) !important;
}
.card-grad-indigo:hover {
    box-shadow: 0 16px 32px -2px rgba(79, 70, 229, 0.58) !important;
}

.card-grad-cyan {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%) !important;
    box-shadow: 0 10px 22px -3px rgba(2, 132, 199, 0.42) !important;
}
.card-grad-cyan:hover {
    box-shadow: 0 16px 32px -2px rgba(2, 132, 199, 0.58) !important;
}

.card-grad-amber {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    box-shadow: 0 10px 22px -3px rgba(217, 119, 6, 0.42) !important;
}
.card-grad-amber:hover {
    box-shadow: 0 16px 32px -2px rgba(217, 119, 6, 0.58) !important;
}

.card-grad-emerald {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    box-shadow: 0 10px 22px -3px rgba(5, 150, 105, 0.42) !important;
}
.card-grad-emerald:hover {
    box-shadow: 0 16px 32px -2px rgba(5, 150, 105, 0.58) !important;
}

.card-grad-rose {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%) !important;
    box-shadow: 0 10px 22px -3px rgba(225, 29, 72, 0.42) !important;
}
.card-grad-rose:hover {
    box-shadow: 0 16px 32px -2px rgba(225, 29, 72, 0.58) !important;
}

.card-grad-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
    box-shadow: 0 10px 22px -3px rgba(124, 58, 237, 0.42) !important;
}
.card-grad-purple:hover {
    box-shadow: 0 16px 32px -2px rgba(124, 58, 237, 0.58) !important;
}

.card-grad-teal {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%) !important;
    box-shadow: 0 10px 22px -3px rgba(13, 148, 136, 0.42) !important;
}
.card-grad-teal:hover {
    box-shadow: 0 16px 32px -2px rgba(13, 148, 136, 0.58) !important;
}

.card-grad-crimson {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    box-shadow: 0 10px 22px -3px rgba(220, 38, 38, 0.42) !important;
}
.card-grad-crimson:hover {
    box-shadow: 0 16px 32px -2px rgba(220, 38, 38, 0.58) !important;
}

.card-grad-blue {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    box-shadow: 0 10px 22px -3px rgba(37, 99, 235, 0.42) !important;
}
.card-grad-blue:hover {
    box-shadow: 0 16px 32px -2px rgba(37, 99, 235, 0.58) !important;
}

/* ---------- 7. System information ---------- */
.module-tab {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.module-tab-header {
    padding: 14px 20px;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.15s;
}
.module-tab-header:hover {
    filter: brightness(0.97);
}
.module-tab-header .arrow {
    margin-left: auto;
    transition: transform 0.2s;
    font-size: 0.8rem;
    color: #9ca3af;
}
.module-tab-header.active .arrow {
    transform: rotate(180deg);
}
.module-tab-body {
    display: none;
    padding: 16px 20px;
}
.module-tab-body.show {
    display: block;
}
.func-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.88rem;
}
.func-item:last-child {
    border-bottom: none;
}
.func-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- 8. Admissions list ---------- */
.admissions-list-page .table-responsive {
    min-height: 280px;
}

.admissions-list-page .action-dropdown-menu {
    min-width: 175px;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    z-index: 1060 !important;
}

.admissions-list-page .action-dropdown-menu .dropdown-item {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b !important;
    border-radius: 6px;
    background: transparent !important;
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    box-shadow: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admissions-list-page .action-dropdown-menu .dropdown-item:hover,
.admissions-list-page .action-dropdown-menu .dropdown-item:focus {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.admissions-list-page .action-dropdown-menu .dropdown-item.text-danger {
    color: #dc2626 !important;
}

.admissions-list-page .action-dropdown-menu .dropdown-item.text-danger:hover {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
}

.admissions-list-page .action-dropdown-menu .dropdown-item.text-primary {
    color: #2563eb !important;
}

.admissions-list-page .action-dropdown-menu .dropdown-item.text-primary:hover {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
}

.admissions-list-page .action-hamburger-btn {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
}

.admissions-list-page .admissions-table-head th {
    font-size: 0.78rem !important;
    text-transform: none !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    background-color: #f1f5f9 !important;
    border-bottom: 2px solid #cbd5e1 !important;
    letter-spacing: normal !important;
    padding: 8px 10px !important;
}

/* ---------- 9. Admission detail print ---------- */
@page admission-view {
    margin: 0;
}
@media print {
    body.admission-view-body {
        page: admission-view;
        margin: 1cm;
    }
    body.admission-view-body * {
        visibility: hidden;
    }
    body.admission-view-body #printArea,
    body.admission-view-body #printArea * {
        visibility: visible;
    }
    body.admission-view-body #printArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
    }
    body.admission-view-body .card {
        border: none !important;
        box-shadow: none !important;
    }
}

/* ---------- 10. Result number inputs ---------- */
.admit-result-page input[type="number"]::-webkit-outer-spin-button,
.admit-result-page input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.admit-result-page input[type="number"] {
    -moz-appearance: textfield;
}

/* ---------- 11. Fee register list ---------- */
/* The admin layout applies a global break-word override to every table.
   Keep the fee list columns intact and let only text columns wrap normally. */
.fee-list-page .table th {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    max-width: none;
    font-size: .72rem !important;
}
.fee-list-page .table td {
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    max-width: none;
}
.fee-list-page .table .fee-nowrap,
.fee-list-page .table .status-cell,
.fee-list-page .table .action-cell {
    white-space: nowrap !important;
}
.fee-list-page .table .student-cell,
.fee-list-page .table .course-cell {
    min-width: 150px;
}
.fee-list-page .table .student-cell {
    font-weight: 400 !important;
    text-transform: uppercase !important;
}
@media screen and (max-width: 991.98px) {
    .fee-list-page .table {
        min-width: 0;
        border: 0;
    }
    .fee-list-page .table thead {
        display: none;
    }
    .fee-list-page .table tbody,
    .fee-list-page .table tr,
    .fee-list-page .table td {
        display: block;
        width: 100%;
    }
    .fee-list-page .table tbody tr {
        border: 1px solid #e5e7eb;
        border-radius: .5rem;
        margin: .75rem;
        padding: .55rem .75rem;
        background: #fff;
    }
    .fee-list-page .table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: .75rem;
        border: 0 !important;
        padding: .3rem 0 !important;
        text-align: left !important;
        white-space: normal !important;
    }
    .fee-list-page .table td::before {
        content: attr(data-label);
        flex: 0 0 100px;
        font-size: .7rem;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #6b7280;
        font-weight: 700;
    }
    .fee-list-page .table td.student-cell {
        display: block;
        border-bottom: 1px solid #e5e7eb !important;
        margin-bottom: .3rem;
        padding-bottom: .5rem !important;
    }
    .fee-list-page .table td.student-cell::before {
        display: block;
        margin-bottom: .25rem;
    }
    .fee-list-page .table td.action-cell {
        justify-content: flex-end;
        border-top: 1px solid #e5e7eb !important;
        margin-top: .35rem;
        padding-top: .5rem !important;
    }
    .fee-list-page .table td.action-cell::before {
        display: none;
    }
}
.fee-list-page .pagination-scroll {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.fee-list-page .pagination-scroll .pagination {
    flex-wrap: nowrap;
    width: max-content;
}

/* ---------- 12. Fee register / collection ---------- */
.fee-register-page {
    width: 100%;
    max-width: 100%;
}
/* AdminLTE's Bootstrap 4 clearfix pseudo-element becomes a flex child and
   pushes card header actions to the middle. */
.fee-register-page .card-header::after {
    content: none;
    display: none;
}
.fee-info-label {
    display: block;
    font-size: .72rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: .22rem;
}
.fee-info-value {
    display: block;
    color: #0f172a;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.fee-data-table thead th {
    background: #f1f5f9;
    color: #475569;
    letter-spacing: .02em;
    vertical-align: middle;
}
.fee-schedule-table {
    min-width: 980px;
}
.fee-history-table {
    min-width: 760px;
}
/* The admin layout applies a global table text-wrap override at the end of
   the document, so use page-specific selectors to keep fee rows intact. */
.fee-register-page .fee-data-table th {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    font-size: .72rem !important;
    max-width: none;
}
.fee-register-page .fee-data-table td {
    word-break: normal !important;
    overflow-wrap: normal !important;
    max-width: none;
}
.fee-register-page .fee-data-table .fee-money {
    white-space: nowrap !important;
    max-width: none;
}
.fee-register-page .fee-data-table tfoot th {
    background: #f1f5f9;
    font-size: .8rem !important;
}
.fee-action-col {
    white-space: nowrap;
}
@media screen and (max-width: 991.98px) {
    .fee-data-table {
        min-width: 0;
        border: 0;
    }
    .fee-data-table thead {
        display: none;
    }
    .fee-data-table tbody,
    .fee-data-table tfoot,
    .fee-data-table tr,
    .fee-data-table td,
    .fee-data-table th {
        display: block;
        width: 100%;
    }
    .fee-data-table tbody tr {
        border: 1px solid #e5e7eb;
        border-radius: .5rem;
        margin-bottom: .75rem;
        padding: .55rem .75rem;
        background: #fff;
    }
    .fee-data-table tbody tr:last-child {
        margin-bottom: 0;
    }
    .fee-data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: .75rem;
        border: 0 !important;
        padding: .3rem 0 !important;
    }
    .fee-data-table td::before {
        content: attr(data-label);
        flex: 0 0 96px;
        font-size: .7rem;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #6b7280;
        font-weight: 700;
    }
    .fee-data-table td.fee-field-col {
        display: block;
        padding-bottom: .5rem !important;
        margin-bottom: .25rem;
        border-bottom: 1px solid #e5e7eb !important;
    }
    .fee-data-table td.fee-field-col::before {
        content: none;
    }
    .fee-data-table td.text-end {
        text-align: left !important;
    }
    .fee-data-table tfoot tr {
        border: 1px solid #e5e7eb;
        border-radius: .5rem;
        padding: .55rem .75rem;
        background: #f8fafc;
    }
    .fee-data-table tfoot th {
        display: flex;
        justify-content: space-between;
        border: 0 !important;
        padding: .3rem 0 !important;
    }
    .fee-data-table tfoot th::before {
        content: attr(data-label);
        color: #6b7280;
        font-weight: 700;
    }
    .fee-data-table tfoot th.fee-total-title {
        display: block;
        font-size: .75rem !important;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #6b7280;
        border-bottom: 1px solid #e5e7eb !important;
        margin-bottom: .3rem;
        padding-bottom: .3rem !important;
    }
    .fee-data-table tfoot th.fee-total-title::before,
    .fee-data-table tfoot th.fee-empty-cell::before {
        content: none;
    }
    .fee-data-table tfoot th.fee-empty-cell {
        display: none;
    }
}
@media (max-width: 575.98px) {
    .fee-register-page .card-body {
        padding: 1rem;
    }
    .fee-register-page .card-header {
        padding: .9rem 1rem;
    }
    .fee-page-actions {
        width: 100%;
    }
    .fee-page-actions .btn {
        flex: 1;
    }
    .fee-data-table td::before {
        flex-basis: 82px;
    }
}
@media print {
    body.fee-register-body .main-sidebar,
    body.fee-register-body .main-header,
    body.fee-register-body .main-footer,
    body.fee-register-body .no-print {
        display: none !important;
    }
    body.fee-register-body .content-wrapper {
        margin-left: 0 !important;
    }
    body.fee-register-body .fee-register-page .card {
        border: 0 !important;
        box-shadow: none !important;
        margin-bottom: 1rem !important;
    }
    body.fee-register-body .fee-data-table {
        min-width: 0 !important;
    }
    body.fee-register-body {
        font-size: 12px;
    }
}

/* ---------- 13. Fee report ---------- */
.fee-report-page .card-header::after {
    content: none;
    display: none;
}
.fee-report-page .report-filter-card .form-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: .3rem;
}
.fee-report-page .report-table {
    min-width: 900px;
}
.fee-report-page .report-table-wide {
    min-width: 1060px;
}
.fee-report-page .report-table thead th {
    background: #f1f5f9;
    color: #475569;
    letter-spacing: .02em;
    vertical-align: middle;
    white-space: nowrap !important;
    font-size: .72rem !important;
}
.fee-report-page .report-table td {
    vertical-align: middle;
}
.fee-report-page .report-table .fee-money {
    white-space: nowrap !important;
}
.fee-report-page .report-table tfoot th {
    background: #f8fafc;
    font-size: .8rem !important;
}
.fee-report-page .report-summary-label,
.fee-report-page .report-stat-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: .25rem;
}
.fee-report-page .report-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: .75rem;
    margin: 1.5rem 0 .75rem;
}
.fee-report-page .report-section-heading h5 {
    margin: 0;
    font-weight: 700;
}
.fee-report-page .report-section-heading small {
    display: block;
    color: #6b7280;
    margin-top: .2rem;
}
.fee-report-page .report-scope-note {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
    border-radius: .5rem;
    padding: .6rem .8rem;
    font-size: .8rem;
    margin-top: .9rem;
}
.fee-report-page .report-jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .7rem;
}
.fee-report-page .report-jump-links a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    padding: .22rem .65rem;
    font-size: .72rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    background: #fff;
}
.fee-report-page .report-jump-links a:hover {
    border-color: #94a3b8;
    color: #0f172a;
    background: #f8fafc;
}
.fee-report-page .report-stat {
    border: 1px solid #e5e7eb;
    border-radius: .55rem;
    background: #fff;
    padding: .85rem 1rem;
    height: 100%;
}
.fee-report-page .report-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}
.fee-report-page .report-stat-sub {
    color: #6b7280;
    font-size: .72rem;
    margin-top: .25rem;
}
.fee-report-page .report-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border-radius: 999px;
    padding: .3rem .65rem;
    font-size: .74rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}
.fee-report-page .report-progress-native {
    display: block;
    width: 100%;
    height: .5rem;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
    appearance: none;
    -webkit-appearance: none;
}
.fee-report-page .report-progress-native::-webkit-progress-bar {
    background: #e2e8f0;
    border-radius: 999px;
}
.fee-report-page .report-progress-native::-webkit-progress-value {
    background: #15803D;
    border-radius: 999px;
}
.fee-report-page .report-progress-native::-moz-progress-bar {
    background: #15803D;
    border-radius: 999px;
}
.fee-report-page .report-scroll {
    max-height: 500px;
    overflow: auto;
}
.fee-report-page .report-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}
.fee-report-page .report-mini-note {
    font-size: .75rem;
    color: #6b7280;
}
@media screen and (max-width: 991.98px) {
    .fee-report-page .report-table,
    .fee-report-page .report-table-wide {
        min-width: 0;
        border: 0;
    }
    .fee-report-page .report-table thead {
        display: none;
    }
    .fee-report-page .report-table tbody,
    .fee-report-page .report-table tfoot,
    .fee-report-page .report-table tr,
    .fee-report-page .report-table td,
    .fee-report-page .report-table th {
        display: block;
        width: 100%;
    }
    .fee-report-page .report-table tbody tr {
        border: 1px solid #e5e7eb;
        border-radius: .5rem;
        margin: .75rem;
        padding: .55rem .75rem;
        background: #fff;
    }
    .fee-report-page .report-table tbody tr:last-child {
        margin-bottom: .75rem;
    }
    .fee-report-page .report-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: .75rem;
        border: 0 !important;
        padding: .3rem 0 !important;
        text-align: left !important;
    }
    .fee-report-page .report-table td::before {
        content: attr(data-label);
        flex: 0 0 112px;
        font-size: .7rem;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #6b7280;
        font-weight: 700;
    }
    .fee-report-page .report-table td.report-student-cell {
        display: block;
        border-bottom: 1px solid #e5e7eb !important;
        margin-bottom: .3rem;
        padding-bottom: .5rem !important;
    }
    .fee-report-page .report-table td.report-student-cell::before {
        display: block;
        margin-bottom: .3rem;
    }
    .fee-report-page .report-table tfoot tr {
        border: 1px solid #e5e7eb;
        border-radius: .5rem;
        margin: 0 .75rem .75rem;
        padding: .55rem .75rem;
        background: #f8fafc;
    }
    .fee-report-page .report-table tfoot th {
        display: flex;
        justify-content: space-between;
        border: 0 !important;
        padding: .3rem 0 !important;
    }
    .fee-report-page .report-table tfoot th::before {
        content: attr(data-label);
        color: #6b7280;
        font-weight: 700;
        text-transform: uppercase;
    }
    .fee-report-page .report-table tfoot th.report-total-title {
        display: block;
        font-size: .75rem !important;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #6b7280;
        border-bottom: 1px solid #e5e7eb !important;
        margin-bottom: .3rem;
        padding-bottom: .3rem !important;
    }
    .fee-report-page .report-table tfoot th.report-total-title::before,
    .fee-report-page .report-table tfoot th.report-empty-cell::before {
        content: none;
    }
    .fee-report-page .report-table tfoot th.report-empty-cell {
        display: none;
    }
    .fee-report-page .report-scroll {
        max-height: none;
        overflow: visible;
    }
    .fee-report-page .report-scroll thead th {
        position: static;
    }
}
@media (max-width: 575.98px) {
    .fee-report-page .card-header,
    .fee-report-page .card-body {
        padding: .9rem 1rem;
    }
    .fee-report-page .report-filter-card .form-label {
        margin-top: .15rem;
    }
    .fee-report-page .report-stat {
        padding: .75rem .85rem;
    }
    .fee-report-page .report-stat-value {
        font-size: 1.15rem;
    }
    .fee-report-page .report-jump-links a {
        font-size: .68rem;
    }
}

/* ---------- 14. Logout Modal ---------- */
#logoutModal .modal-header.bg-danger,
#logoutModal .modal-header.bg-danger *,
#logoutModal .modal-header.bg-danger .modal-title,
#logoutModal .modal-header.bg-danger i {
    color: #ffffff !important;
}
#logoutModal .btn-danger,
#logoutModal .btn-danger:hover,
#logoutModal .btn-danger:focus,
#logoutModal .btn-danger:active {
    color: #ffffff !important;
}

/* ---------- 15. Login screens ---------- */
.login-page { font-family: 'Inter', system-ui, sans-serif; }
.login-page *,
.login-page *::before,
.login-page *::after { box-sizing: border-box; }

.login-page { margin: 0; padding: 0; min-height: 100vh; overflow-x: hidden; overflow-y: auto; }

.login-page .flag-bg { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, #FF9933 0%, #FFFFFF 50%, #138808 100%); }

.login-page .flag-overlay { position: fixed; inset: 0; z-index: 0; background: rgba(0,0,0,.12); }

.login-page #fireworks-canvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

.login-page .login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; position: relative; z-index: 10; }

.login-page .login-card { border: none; border-radius: .75rem; box-shadow: 0 10px 40px rgba(0,0,0,.08); overflow: hidden; max-width: 768px; margin: 0 auto; }

.login-page .login-card .row { background: #fafafa; }

.login-page .login-left { background: #0f172a; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.5rem; position: relative; height: 500px; overflow: hidden; }

.login-page .login-left img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.login-page .login-left .content { position: relative; z-index: 2; }

.login-page .login-right { padding: 2.5rem 2.5rem 1rem 2.5rem; display: flex; flex-direction: column; justify-content: center; }

.login-page .text-secondary { color: #334155 !important; font-weight: 500; }

.login-page .text-muted { color: #475569 !important; font-weight: 500; }

.login-page .brand-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: #818cf8; font-size: 1.25rem; }

.login-page .form-control { border: 1.5px solid #cbd5e1; border-radius: .5rem; padding: .5rem .75rem; font-size: .875rem; color: #0f172a; transition: border-color .2s, box-shadow .2s; }

.login-page .form-control:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); color: #0f172a; }

.login-page .form-control::placeholder { color: #64748b; font-weight: 400; }

.login-page .form-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: #1e293b; margin-bottom: .35rem; letter-spacing: .03em; }

.login-page .input-icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #ea580c; font-size: .875rem; pointer-events: none; transition: color .2s; z-index: 10; width: 1rem; text-align: center; }

.login-page .input-group:focus-within .input-icon { color: #c2410c; }

.login-page .input-group .form-control,
.login-page .input-group .form-select,
.login-page .input-group select.form-control { border-radius: .5rem !important; padding-left: 2.35rem; }

.login-page .input-group .form-control.pass { padding-right: 2.5rem; }

.login-page .toggle-pass { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: #475569; padding: .25rem; cursor: pointer; font-size: 1rem; transition: color .2s; z-index: 10; }

.login-page .toggle-pass:hover { color: #2563eb; }

.login-page .btn-primary-custom { background: #2563eb; border: none; border-radius: .5rem; padding: .55rem 1rem; font-weight: 700; font-size: .875rem; transition: all .15s; cursor: pointer !important; }

.login-page select,
.login-page .form-select,
.login-page button,
.login-page .btn { cursor: pointer !important; }

.login-page .btn-primary-custom:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.25); }

.login-page .btn-primary-custom:active { transform: translateY(0); }

.login-page .btn-primary-custom:disabled { opacity: .6; }

.login-page .divider { position: relative; text-align: center; }

.login-page .divider::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid #cbd5e1; z-index: 0; }

.login-page .divider span { position: relative; z-index: 1; background: #fff; padding: 0 .5rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; color: #334155; letter-spacing: .05em; }

.login-page .footer-text { font-size: .6875rem; font-weight: 600; color: #334155; }

.login-page .spinner-border-sm { width: 1rem; height: 1rem; border-width: 2px; }

/* ---------- 16. Standalone print layout ---------- */
.print-layout { background-color: #fff; color: #000; padding: 20px; }

@media print {
.print-layout .no-print { display: none !important; }

.print-layout { padding: 0; }

}

.print-layout .admit-card-box {
            border: 2px solid #000;
            padding: 20px;
            margin-bottom: 20px;
            border-radius: 5px;
        }

/* ---------- 17. Classes replacing inline style attributes ---------- */
.modal.modal-blur {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.custom-topbar .topbar-logo {
    height: 38px;
    width: 38px;
    object-fit: contain;
}
.app-toast-progress {
    width: 100%;
}
.fee-list-page .fee-filter-select {
    width: 130px;
}
.fee-list-page .fee-search-group {
    width: 260px;
}
.fee-register-page .fee-info-col {
    width: 35%;
}
.admissions-list-page .admissions-branch-select {
    width: 160px;
}
.admissions-list-page .admissions-status-select {
    width: 130px;
}
.admissions-list-page .admissions-duration-select,
.admissions-list-page .admissions-course-select {
    width: 150px;
}
.admissions-list-page .admissions-search-group {
    width: 250px;
}
.admission-view-page .admission-status-select {
    width: 150px;
}
.student-photo {
    width: 120px;
    height: 150px;
    object-fit: cover;
}
.student-photo-placeholder {
    width: 120px;
    height: 150px;
    background: #f8f9fa;
}
.admission-detail-table {
    table-layout: fixed;
    width: 100%;
}
.admission-detail-table th {
    width: 40%;
}
.admission-detail-table td {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.photo-preview {
    width: 105px;
    height: 125px;
    object-fit: cover;
}
.photo-preview-placeholder {
    width: 105px;
    height: 125px;
    background: #f1f3f5;
}
.photo-preview-text {
    font-size: 10px;
}
.photo-field-label {
    margin-bottom: .5rem;
}
.photo-file-input {
    height: 38px;
}
.module-icon {
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}
.module-icon-blue { background: #2563eb; }
.module-icon-green { background: #059669; }
.module-icon-amber { background: #d97706; }
.module-icon-violet { background: #7c3aed; }
.module-icon-red { background: #dc2626; }
.module-badge { font-size: .65rem; }
.module-badge-admin { font-size: .6rem; }
.func-dot.dot-blue { background: #2563eb; }
.func-dot.dot-green { background: #059669; }
.func-dot.dot-amber { background: #d97706; }
.func-dot.dot-violet { background: #7c3aed; }
.func-dot.dot-red { background: #dc2626; }
.func-dot.dot-red-light { background: #ef4444; }
.func-dot.dot-cyan { background: #0891b2; }
.func-dot.dot-lime { background: #65a30d; }
.bug-empty[hidden] {
    display: none;
}
.branch-search-group {
    width: 250px;
}
.password-strength-progress {
    height: 5px;
}
.password-strength-bar {
    width: 0%;
}
.password-strength-text,
.password-error-text {
    font-size: .75rem;
}
.course-search-group {
    width: 250px;
}
.sort-icon {
    font-size: 11px;
}
.sort-icon-asc,
.sort-icon-desc {
    font-size: 13px;
}
.admit-branch-select {
    width: 160px;
}
.admit-duration-select,
.admit-course-select {
    width: 150px;
}
.admit-search-group {
    width: 200px;
}
.admit-checkbox-col {
    width: 30px;
}
.student-name-upper {
    text-transform: uppercase;
}
.login-page .auth-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: .5rem;
}
.login-page .auth-submit {
    border-radius: .5rem;
    padding: .55rem 1rem;
    font-size: .875rem;
    transition: all .15s;
}
.login-page .auth-link {
    color: #334155;
}
.login-page .auth-brand {
    font-size: .75rem;
    line-height: 1.35;
}
.login-page .auth-brand-saffron {
    color: #FF9933;
}
.login-page .auth-brand-green {
    color: #138808;
}
.login-page .auth-footer {
    font-size: .7rem;
    color: #475569;
}
.login-page .auth-branch-select {
    padding-left: 2.25rem;
}
.login-page .login-card-wrap {
    width: 100%;
    max-width: 768px;
    padding: 0 1rem;
}
.print-layout .admit-card-box {
    border: 2px solid #000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}
@media (max-width: 575.98px) {
    .fee-list-page .fee-filter-select,
    .fee-list-page .fee-search-group,
    .admissions-list-page .admissions-branch-select,
    .admissions-list-page .admissions-status-select,
    .admissions-list-page .admissions-duration-select,
    .admissions-list-page .admissions-course-select,
    .admissions-list-page .admissions-search-group,
    .branch-search-group,
    .course-search-group,
    .admit-branch-select,
    .admit-duration-select,
    .admit-course-select,
    .admit-search-group {
        width: 100%;
    }
}

.admit-result-page .result-branch-select {
    width: 140px;
}
.admit-result-page .result-duration-select {
    width: 120px;
}
.admit-result-page .result-course-select {
    width: 140px;
}
.admit-result-page .result-search-group {
    width: 220px;
}
.admit-result-page .result-note {
    font-size: 11px;
}
.login-page .btn-primary {
    background-color: #2563EB !important; /* white 5.17:1 */
    color: #ffffff !important;
}
.login-page .btn-primary:hover,
.login-page .btn-primary:focus {
    background-color: #1D4ED8 !important; /* white 6.70:1 */
    color: #ffffff !important;
}

/* ---------- 18. Final table wrap override (must stay last) ---------- */
.table td, .table th {
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        max-width: 280px;
        vertical-align: middle;
        font-size: 0.85rem !important;
    }
    .table td.table-actions, .table th.table-actions {
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        width: 1%;
        max-width: none;
    }
    .table td.table-actions *,
    .table th.table-actions * {
        white-space: nowrap !important;
    }
    .table td .btn, .table td .badge {
        white-space: nowrap !important;
    }
    .table td form.d-inline,
    .table td form.d-inline * {
        white-space: nowrap !important;
    }

/* ---------- 16. Dashboard Fee Widgets ---------- */
.dashboard-fee-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem !important;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.22s ease, border-color 0.22s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none !important;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.dashboard-fee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
    color: inherit;
}
.dashboard-fee-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.dashboard-fee-card:hover .stat-icon {
    transform: scale(1.08) rotate(3deg);
}
.dashboard-fee-card .stat-icon-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
.dashboard-fee-card .stat-icon-rose {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}
.dashboard-fee-card .stat-icon-indigo {
    background: rgba(79, 70, 229, 0.12);
    color: #4f46e5;
}
.dashboard-fee-card .stat-icon-teal {
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
}
.dashboard-fee-card .stat-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.dashboard-fee-card .stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}
.dashboard-fee-card .stat-sub {
    font-size: 0.8rem;
    color: #64748b;
}
.dashboard-fee-card .stat-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    color: #475569;
    transition: color 0.18s ease;
}
.dashboard-fee-card:hover .stat-action {
    color: #0284c7;
}
.dashboard-widget-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.dashboard-widget-card .card-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.25rem;
}
.dashboard-widget-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.dashboard-progress {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: 0.5rem;
}
.dashboard-progress .progress-bar {
    border-radius: 999px;
    transition: width 0.4s ease;
}
.widget-empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #94a3b8;
}
.widget-empty-state i {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    opacity: 0.75;
}
