/* ================================================================
   MLU Design System — ui-enhancements.css
   Unified visual layer for Student, Admin, and College panels.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=DM+Sans:wght@500;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
    --mlu-primary: #0d1b2e;
    --mlu-primary-dark: #0a1422;
    --mlu-primary-soft: rgba(13,27,46,.06);
    --mlu-accent: #b8922a;
    --mlu-accent-soft: rgba(184,146,42,.08);
    --mlu-success: #059669;
    --mlu-success-soft: #ecfdf5;
    --mlu-warning: #d97706;
    --mlu-warning-soft: #fffbeb;
    --mlu-danger: #dc2626;
    --mlu-danger-soft: #fef2f2;
    --mlu-info: #0891b2;
    --mlu-info-soft: #ecfeff;
    --mlu-text: #0f172a;
    --mlu-text-secondary: #334155;
    --mlu-muted: #64748b;
    --mlu-border: #e2e8f0;
    --mlu-border-strong: #cbd5e1;
    --mlu-surface: #ffffff;
    --mlu-bg: #f8fafc;
    --mlu-bg-alt: #f1f5f9;
    --mlu-radius: 12px;
    --mlu-radius-sm: 8px;
    --mlu-radius-lg: 16px;
    --mlu-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --mlu-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
    --mlu-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --mlu-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --mlu-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mlu-font-heading: 'DM Sans', 'Inter', sans-serif;
    --mlu-transition: 0.2s ease;
    --mlu-gradient-primary: linear-gradient(135deg, #0d1b2e 0%, #1e3352 100%);
    --mlu-gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --mlu-gradient-danger: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --mlu-gradient-warning: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

/* ── Base ────────────────────────────────────────────────────────── */
body {
    background: var(--mlu-bg);
    color: var(--mlu-text);
    font-family: var(--mlu-font) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.page-title,
.mlu-section-title {
    font-family: var(--mlu-font-heading);
}

/* ── Cards ───────────────────────────────────────────────────────── */
.card, .card-body, .content-box, .panel, .box {
    border-radius: var(--mlu-radius) !important;
}

.card, .panel, .box {
    border: 1px solid var(--mlu-border) !important;
    box-shadow: var(--mlu-shadow-sm) !important;
    background: var(--mlu-surface) !important;
    transition: box-shadow var(--mlu-transition), transform var(--mlu-transition);
}

.card:hover, .panel:hover, .box:hover {
    box-shadow: var(--mlu-shadow-md) !important;
}

.mlu-content-card {
    border-radius: var(--mlu-radius) !important;
    border: 1px solid var(--mlu-border) !important;
    border-left: 4px solid var(--mlu-primary) !important;
    box-shadow: var(--mlu-shadow) !important;
    background: var(--mlu-surface) !important;
    transition: box-shadow var(--mlu-transition);
}

.mlu-content-card:hover {
    box-shadow: var(--mlu-shadow-md) !important;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
    border-radius: var(--mlu-radius-sm) !important;
    font-weight: 600;
    font-family: var(--mlu-font);
    transition: all var(--mlu-transition);
    letter-spacing: 0.01em;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary, .btn-info {
    background: var(--mlu-gradient-primary) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover, .btn-info:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--mlu-gradient-success) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.2);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--mlu-gradient-danger) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--mlu-gradient-warning) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
}

.btn-secondary, .btn-outline-secondary {
    border-color: var(--mlu-border) !important;
    color: var(--mlu-muted) !important;
}

.btn-outline-secondary:hover {
    background: var(--mlu-bg) !important;
    color: var(--mlu-text) !important;
    border-color: var(--mlu-border-strong) !important;
}

.btn-outline-success:hover {
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

/* ── Form Controls ───────────────────────────────────────────────── */
.form-control, .form-select,
select, textarea,
input[type="text"], input[type="password"],
input[type="email"], input[type="number"], input[type="date"] {
    border: 1px solid var(--mlu-border) !important;
    border-radius: var(--mlu-radius-sm) !important;
    min-height: 42px;
    box-shadow: none !important;
    font-family: var(--mlu-font);
    transition: border-color var(--mlu-transition), box-shadow var(--mlu-transition);
}

.form-control:focus, .form-select:focus,
select:focus, textarea:focus, input:focus {
    border-color: var(--mlu-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.form-label, label {
    font-weight: 500;
    font-size: 13px;
    color: var(--mlu-text-secondary);
    margin-bottom: 4px;
}

/* ── Tables ──────────────────────────────────────────────────────── */
.table {
    background: var(--mlu-surface);
    border-radius: var(--mlu-radius);
    overflow: hidden;
    font-size: 13.5px;
}

.table thead th {
    background: var(--mlu-bg-alt);
    color: var(--mlu-text);
    border-bottom: 2px solid var(--mlu-border);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.table td, .table th {
    vertical-align: middle;
    padding: 10px 14px;
}

.table tbody tr {
    transition: background var(--mlu-transition);
}

.table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.6);
}

.table tbody tr:hover {
    background: var(--mlu-primary-soft);
}

/* ── Table Responsive Container ──────────────────────────────────── */
.mlu-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--mlu-border);
    border-radius: var(--mlu-radius);
    background: var(--mlu-surface);
    box-shadow: var(--mlu-shadow-sm);
}

.mlu-table-responsive .table {
    margin-bottom: 0 !important;
}

.mlu-table-responsive table table td {
    background: var(--mlu-bg) !important;
    padding: 10px 12px !important;
    border-top: 1px solid var(--mlu-border) !important;
}

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.page-breadcrumb,
#main-wrapper .page-breadcrumb {
    background: var(--mlu-surface) !important;
    border: 1px solid var(--mlu-border);
    border-left: 4px solid var(--mlu-primary);
    border-radius: var(--mlu-radius-sm);
    padding: 12px 20px;
    margin-bottom: 1.25rem;
    box-shadow: var(--mlu-shadow-sm);
}

#main-wrapper .page-breadcrumb .page-title {
    font-weight: 700;
    color: var(--mlu-text);
    font-family: var(--mlu-font-heading);
}

/* ── Badges & Alerts ─────────────────────────────────────────────── */
.badge {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.alert:not(.rounded-pill) {
    border-radius: var(--mlu-radius);
}

.dropdown-menu {
    border-radius: var(--mlu-radius) !important;
    border-color: var(--mlu-border) !important;
    box-shadow: var(--mlu-shadow-lg) !important;
    padding: 6px;
}

.dropdown-item {
    border-radius: 6px;
    transition: background var(--mlu-transition);
}

.dropdown-item:hover {
    background: var(--mlu-bg-alt);
}

/* ── Page Shell ──────────────────────────────────────────────────── */
.mlu-page-shell {
    padding: 24px 16px;
    animation: mluFadeIn 0.35s ease-out;
}

@keyframes mluFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .mlu-page-shell { animation: none; }
    .mlu-stat-card, .mlu-subtle-card { animation: none !important; }
}

/* ── Stat Cards ──────────────────────────────────────────────────── */
.mlu-stat-card {
    border: 1px solid var(--mlu-border);
    border-radius: var(--mlu-radius);
    background: var(--mlu-surface);
    box-shadow: var(--mlu-shadow-sm);
    padding: 20px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: box-shadow var(--mlu-transition), transform var(--mlu-transition);
}

.mlu-stat-card:hover {
    box-shadow: var(--mlu-shadow-md);
    transform: translateY(-2px);
}

.mlu-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.mlu-stat-icon.primary   { background: var(--mlu-gradient-primary); }
.mlu-stat-icon.success   { background: var(--mlu-gradient-success); }
.mlu-stat-icon.warning   { background: var(--mlu-gradient-warning); }
.mlu-stat-icon.danger    { background: var(--mlu-gradient-danger); }
.mlu-stat-icon.info      { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.mlu-stat-icon.accent    { background: linear-gradient(135deg, #1e3352, #2a4a73); }

.mlu-stat-body { flex: 1; min-width: 0; }

.mlu-stat-title {
    margin: 0 0 4px;
    color: var(--mlu-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mlu-stat-value {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--mlu-text);
    line-height: 1.15;
    font-family: var(--mlu-font-heading);
}

.mlu-stat-subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--mlu-muted);
}

/* ── Section Title ───────────────────────────────────────────────── */
.mlu-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--mlu-text);
}

.mlu-subtle-card {
    border: 1px solid var(--mlu-border);
    border-radius: var(--mlu-radius);
    background: var(--mlu-surface);
    box-shadow: var(--mlu-shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mlu-subtle-card:hover {
    box-shadow: var(--mlu-shadow-md);
    transform: translateY(-2px);
}

.count-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--mlu-primary);
    background: var(--mlu-primary-soft);
    border-radius: 20px;
    padding: 3px 10px;
}

.progress {
    background-color: #e2e8f0 !important;
}

/* ── Filter Bar ──────────────────────────────────────────────────── */
.mlu-filter-bar {
    background: var(--mlu-primary-soft);
    border: 1px dashed rgba(37, 99, 235, 0.25);
    border-radius: var(--mlu-radius);
    padding: 14px 16px;
    margin-bottom: 1rem !important;
}

.mlu-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--mlu-border);
}

/* ── Grid Scroll ─────────────────────────────────────────────────── */
.mlu-grid-scroll {
    max-height: 400px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 var(--mlu-radius) var(--mlu-radius);
}

/* ── Hero / Welcome Card ─────────────────────────────────────────── */
.mlu-hero {
    background: var(--mlu-gradient-primary);
    color: #fff;
    border-radius: var(--mlu-radius-lg);
    padding: 32px 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.mlu-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}

.mlu-hero h2 {
    font-family: var(--mlu-font-heading);
    font-weight: 800;
    font-size: 24px;
    margin: 0 0 6px;
}

.mlu-hero p {
    opacity: 0.85;
    margin: 0;
    font-size: 14px;
}

/* ── Modern Topbar (Admin/College) ───────────────────────────────── */
.mlu-topbar {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mlu-border);
    box-shadow: var(--mlu-shadow-sm);
}

.mlu-topbar .navbar-brand b,
.mlu-topbar .logo-text b {
    color: var(--mlu-text) !important;
    font-family: var(--mlu-font-heading);
}

.mlu-topbar .nav-link,
.mlu-topbar .sidebartoggler {
    color: var(--mlu-muted) !important;
}

.mlu-topbar .nav-link:hover,
.mlu-topbar .sidebartoggler:hover {
    color: var(--mlu-text) !important;
}

/* ── Dark Sidebar (Admin/College) ────────────────────────────────── */
.mlu-sidebar {
    background: #1e293b !important;
    border-right: none !important;
}

.mlu-sidebar .scroll-sidebar {
    background: #1e293b !important;
}

/* Brand header inside sidebar */
.mlu-sidebar-brand {
    padding: 18px 18px 14px;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mlu-sidebar-brand img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

/* Main menu items */
#sidebarnav {
    padding: 4px 8px !important;
}

#sidebarnav .sidebar-item {
    margin-bottom: 2px;
    position: relative;
}

#sidebarnav > .sidebar-item > .sidebar-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: 13.5px;
    border-radius: 8px;
    padding: 11px 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

#sidebarnav > .sidebar-item > .sidebar-link:hover {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
    padding-left: 14px;
}

#sidebarnav > .sidebar-item > .sidebar-link.active {
    background: rgba(59,130,246,0.18) !important;
    color: #60a5fa !important;
    box-shadow: none;
}

#sidebarnav .sidebar-link i {
    color: #94a3b8 !important;
    width: 20px;
    text-align: center;
    font-size: 14px;
    transition: color 0.2s;
    flex-shrink: 0;
}

#sidebarnav > .sidebar-item > .sidebar-link:hover i,
#sidebarnav > .sidebar-item > .sidebar-link.active i {
    color: #fff !important;
}

/* Arrow for submenu parents */
#sidebarnav .sidebar-link.has-arrow::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    border: none !important;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #64748b;
    transition: transform 0.25s;
    width: auto;
    height: auto;
    border-width: 0;
}

#sidebarnav .sidebar-item:hover > .sidebar-link.has-arrow::after,
#sidebarnav .sidebar-item.selected > .sidebar-link.has-arrow::after {
    transform: translateY(-50%) rotate(180deg);
    color: #94a3b8;
}

/* Submenu (first level) — hover expand on desktop */
#sidebarnav .first-level {
    background: rgba(0,0,0,0.12) !important;
    border-left: none;
    border-radius: 0 0 8px 8px;
    margin: 0;
    padding: 4px 0 4px 12px;
    overflow: hidden;
}

@media (min-width: 992px) {
    #sidebarnav .sidebar-item:hover > ul.collapse.first-level {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }
}

#sidebarnav .first-level .sidebar-item {
    margin-bottom: 1px;
}

#sidebarnav .first-level .sidebar-link {
    color: #94a3b8 !important;
    font-size: 12.5px;
    font-weight: 400;
    padding: 7px 14px;
    margin: 0 6px;
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
    transition: background 0.2s, color 0.2s;
}

#sidebarnav .first-level .sidebar-link:hover {
    background: rgba(255,255,255,0.07) !important;
    color: #e2e8f0 !important;
    padding-left: 14px;
}

#sidebarnav .first-level .sidebar-link i {
    font-size: 11px;
    opacity: 0.7;
}

/* Second level (nested submenu) */
#sidebarnav .second-level {
    list-style: none;
    padding-left: 10px;
}

#sidebarnav .second-level .sidebar-link {
    font-size: 12px;
    padding: 6px 12px;
}

/* Menu section divider */
.mlu-menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 8px 14px;
}

/* Sidebar scrollbar dark theme */
.mlu-sidebar .scroll-sidebar::-webkit-scrollbar { width: 4px; }
.mlu-sidebar .scroll-sidebar::-webkit-scrollbar-track { background: transparent; }
.mlu-sidebar .scroll-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Topbar dark match */
.mlu-topbar {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

/* Mini-sidebar override for dark theme */
#main-wrapper[data-sidebartype="mini-sidebar"] .mlu-sidebar #sidebarnav > .sidebar-item > .sidebar-link .hide-menu {
    display: none;
}

#main-wrapper[data-sidebartype="mini-sidebar"] .mlu-sidebar {
    width: 65px;
}

/* Responsive: sidebar off-canvas on mobile */
@media (max-width: 991.98px) {
    .mlu-sidebar {
        position: fixed;
        z-index: 100;
        transition: left 0.3s;
    }
}

/* ── Footer ──────────────────────────────────────────────────────── */
.mlu-footer {
    text-align: center;
    padding: 14px 20px;
    font-size: 12px;
    color: var(--mlu-muted);
    border-top: 1px solid var(--mlu-border);
    background: var(--mlu-surface);
    margin-top: auto;
}

.mlu-footer a {
    color: var(--mlu-primary);
    text-decoration: none;
    font-weight: 600;
}

.mlu-footer a:hover {
    text-decoration: underline;
}

/* ── Scrollbar ───────────────────────────────────────────────────── */
.scroll-sidebar::-webkit-scrollbar { width: 4px; }
.scroll-sidebar::-webkit-scrollbar-track { background: transparent; }
.scroll-sidebar::-webkit-scrollbar-thumb { background: var(--mlu-border-strong); border-radius: 2px; }
.scroll-sidebar::-webkit-scrollbar-thumb:hover { background: var(--mlu-muted); }

/* ── Focus States (a11y) ─────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--mlu-primary);
    outline-offset: 2px;
}

/* ── Status Dots ─────────────────────────────────────────────────── */
.mlu-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}
.mlu-dot.green  { background: var(--mlu-success); }
.mlu-dot.red    { background: var(--mlu-danger); }
.mlu-dot.yellow { background: var(--mlu-warning); }
.mlu-dot.blue   { background: var(--mlu-primary); }

/* ── Empty State ─────────────────────────────────────────────────── */
.mlu-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--mlu-muted);
}

.mlu-empty-state i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 12px;
    display: block;
}

.mlu-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* ── Dark Mode ───────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    :root {
        --mlu-text: #e2e8f0;
        --mlu-text-secondary: #cbd5e1;
        --mlu-muted: #94a3b8;
        --mlu-border: #334155;
        --mlu-border-strong: #475569;
        --mlu-surface: #1e293b;
        --mlu-bg: #0f172a;
        --mlu-bg-alt: #1e293b;
        --mlu-primary-soft: rgba(37, 99, 235, 0.15);
        --mlu-accent-soft: rgba(79, 70, 229, 0.15);
        --mlu-success-soft: rgba(5, 150, 105, 0.15);
        --mlu-warning-soft: rgba(217, 119, 6, 0.15);
        --mlu-danger-soft: rgba(220, 38, 38, 0.15);
        --mlu-shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
        --mlu-shadow: 0 1px 3px rgba(0,0,0,0.4);
        --mlu-shadow-md: 0 4px 6px rgba(0,0,0,0.35);
        --mlu-shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
    }

    .mlu-topbar {
        background: rgba(30, 41, 59, 0.9) !important;
    }

    .mlu-topbar .logo-text b,
    .mlu-topbar .navbar-brand b {
        color: #e2e8f0 !important;
    }

    .table thead th {
        background: #1e293b;
        color: #e2e8f0;
        border-bottom-color: #334155;
    }

    .table tbody tr:nth-child(even) {
        background: rgba(30, 41, 59, 0.5);
    }

    .table tbody tr:hover {
        background: rgba(37, 99, 235, 0.1);
    }

    img.rounded-circle,
    img.user-avatar { opacity: 0.9; }
}

/* ── Dynamic UI — Ripple Effect ─────────────────────────────────── */
.mlu-ripple {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transform: scale(0);
    animation: mlu-ripple-anim 0.6s ease-out;
    pointer-events: none;
}

@keyframes mlu-ripple-anim {
    to { transform: scale(50); opacity: 0; }
}

/* ── Non-blocking Card Enter Animation ──────────────────────────── */
.mlu-animate-ready {
    opacity: 0.3;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.mlu-animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ── Dynamic UI — Skeleton Loading ──────────────────────────────── */
.mlu-skeleton-rows {
    padding: 16px;
}

.mlu-skeleton-row {
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--mlu-bg-alt) 25%, var(--mlu-border) 50%, var(--mlu-bg-alt) 75%);
    background-size: 200% 100%;
    animation: mlu-shimmer 1.5s infinite;
    margin-bottom: 12px;
}

.mlu-skeleton-row:nth-child(2) { width: 85%; }
.mlu-skeleton-row:nth-child(3) { width: 70%; }
.mlu-skeleton-row:nth-child(4) { width: 60%; }

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

/* ── Dynamic UI — Active Row ────────────────────────────────────── */
.mlu-row-active {
    background: var(--mlu-primary-soft) !important;
    outline: 2px solid var(--mlu-primary);
    outline-offset: -2px;
    border-radius: 4px;
}

/* ── Dynamic UI — Scroll-to-Top hover ───────────────────────────── */
#mlu-scroll-top:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(37,99,235,0.45);
}

/* ── Manual Dark Mode Class (.mlu-dark) ─────────────────────────── */
body.mlu-dark {
    --mlu-text: #e2e8f0;
    --mlu-text-secondary: #cbd5e1;
    --mlu-muted: #94a3b8;
    --mlu-border: #334155;
    --mlu-border-strong: #475569;
    --mlu-surface: #1e293b;
    --mlu-bg: #0f172a;
    --mlu-bg-alt: #1e293b;
    --mlu-primary-soft: rgba(37, 99, 235, 0.15);
    --mlu-accent-soft: rgba(79, 70, 229, 0.15);
    --mlu-success-soft: rgba(5, 150, 105, 0.15);
    --mlu-warning-soft: rgba(217, 119, 6, 0.15);
    --mlu-danger-soft: rgba(220, 38, 38, 0.15);
    --mlu-shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --mlu-shadow: 0 1px 3px rgba(0,0,0,0.4);
    --mlu-shadow-md: 0 4px 6px rgba(0,0,0,0.35);
    --mlu-shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
}

body.mlu-dark .mlu-topbar {
    background: rgba(30, 41, 59, 0.95) !important;
}

body.mlu-dark .table thead th {
    background: #1e293b;
    color: #e2e8f0;
    border-bottom-color: #334155;
}

body.mlu-dark .table tbody tr:hover {
    background: rgba(37, 99, 235, 0.1);
}

body.mlu-dark .left-sidebar,
body.mlu-dark .sidebar-nav {
    background: #0f172a !important;
}

body.mlu-dark .sidebar-nav ul .sidebar-item .sidebar-link {
    color: #cbd5e1 !important;
}

body.mlu-dark .sidebar-nav ul .sidebar-item .sidebar-link:hover,
body.mlu-dark .sidebar-nav ul .sidebar-item.selected > .sidebar-link {
    background: rgba(37, 99, 235, 0.15) !important;
    color: #60a5fa !important;
}

/* ── Table Search Input ─────────────────────────────────────────── */
.mlu-table-search {
    position: relative;
}

.mlu-table-search input {
    padding-left: 36px !important;
    border-radius: var(--mlu-radius-sm) !important;
}

.mlu-table-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mlu-muted);
    font-size: 14px;
}

/* ── Empty State ───────────────────────────────────────────────── */
.mlu-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--mlu-muted);
}

.mlu-empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.4;
}

.mlu-empty-state p {
    margin: 0;
    font-size: 0.875rem;
}

/* ── Grid Scroll Container ─────────────────────────────────────── */
.mlu-grid-scroll {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--mlu-border) transparent;
}

.mlu-grid-scroll::-webkit-scrollbar { width: 5px; }
.mlu-grid-scroll::-webkit-scrollbar-track { background: transparent; }
.mlu-grid-scroll::-webkit-scrollbar-thumb { background: var(--mlu-border); border-radius: 10px; }

/* ── Status Dot Indicators ─────────────────────────────────────── */
.mlu-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.mlu-dot.green  { background: var(--mlu-success); }
.mlu-dot.blue   { background: var(--mlu-primary); }
.mlu-dot.yellow { background: var(--mlu-warning); }
.mlu-dot.red    { background: var(--mlu-danger); }

/* ── Search Box (used across Registration, FormFillup, etc.) ──── */
.mlu-search-box {
    position: relative;
}

.mlu-search-box .form-control {
    padding-right: 44px;
    border-radius: 999px !important;
}

.mlu-search-box .btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px !important;
    z-index: 4;
    padding: 6px 16px;
}

/* ── Print Status Indicators ─────────────────────────────────── */
.mlu-print-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
}

.mlu-print-status.printed  { background: var(--mlu-success); }
.mlu-print-status.pending  { background: var(--mlu-warning); }

/* ── Status Labels (FormFillup, Attendance, etc.) ────────────── */
.status-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-complete,
.status-received { background: var(--mlu-success-soft); color: var(--mlu-success); }

.status-pending,
.status-not-received { background: var(--mlu-danger-soft); color: var(--mlu-danger); }

/* ── Pagination Theming ──────────────────────────────────────── */
.mlu-pagination .pagination {
    justify-content: center;
    gap: 4px;
}

.mlu-pagination .page-item .page-link {
    border-radius: var(--mlu-radius-sm);
    color: var(--mlu-primary);
    border-color: var(--mlu-border);
    font-weight: 500;
    transition: all var(--mlu-transition);
}

.mlu-pagination .page-item.active .page-link {
    background: var(--mlu-gradient-primary);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.mlu-pagination .page-item .page-link:hover {
    background: var(--mlu-primary-soft);
}

/* ── Count Badge ─────────────────────────────────────────────── */
.count-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: var(--mlu-bg-alt);
    color: var(--mlu-text-secondary);
    border: 1px solid var(--mlu-border);
}

/* ── Form Panel (used in AddStudent, Registration preview, etc.) ─ */
.mlu-form-panel {
    background: var(--mlu-surface);
    border: 1px solid var(--mlu-border);
    border-radius: var(--mlu-radius);
    padding: 24px;
    box-shadow: var(--mlu-shadow-sm);
}

.mlu-form-panel .form-group {
    margin-bottom: 16px;
}

.mlu-form-panel label {
    font-weight: 600;
    font-size: 13px;
    color: var(--mlu-text-secondary);
}

/* ── Print Media Query ───────────────────────────────────────── */
@media print {
    .mlu-page-shell { padding: 0 !important; animation: none !important; }
    .page-breadcrumb,
    .mlu-filter-bar,
    .mlu-search-box,
    .btn,
    .left-sidebar,
    .topbar,
    #mlu-scroll-top { display: none !important; }
    
    .mlu-subtle-card,
    .card { border: none !important; box-shadow: none !important; }
    
    .table { font-size: 11px; }
    .table thead th { background: #f0f0f0 !important; }
}

/* ── Notice Ticker ───────────────────────────────────────────── */
.mlu-notice-ticker {
    background: linear-gradient(90deg, var(--mlu-danger-soft), rgba(220,38,38,0.05));
    border: 1px solid rgba(220,38,38,0.15);
    border-radius: var(--mlu-radius);
    padding: 10px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.mlu-notice-ticker .ticker-label {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mlu-danger);
    background: rgba(220,38,38,0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.mlu-notice-ticker .ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.mlu-notice-ticker .ticker-scroll {
    display: inline-block;
    animation: mluTickerScroll 25s linear infinite;
    font-size: 13px;
    color: var(--mlu-text);
}

@keyframes mluTickerScroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ── Animated Pulse Badge ───────────────────────────────────── */
@keyframes mluPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.mlu-pulse {
    animation: mluPulse 2s ease-in-out infinite;
}

/* ── Stat Card Accent Borders ───────────────────────────────── */
.mlu-stat-card.accent-left {
    border-left: 4px solid var(--mlu-primary);
}

.mlu-stat-card.accent-left.success { border-left-color: var(--mlu-success); }
.mlu-stat-card.accent-left.warning { border-left-color: var(--mlu-warning); }
.mlu-stat-card.accent-left.danger  { border-left-color: var(--mlu-danger); }
.mlu-stat-card.accent-left.info    { border-left-color: var(--mlu-info); }

/* ── Staggered Card Fade-In ─────────────────────────────────── */
.mlu-page-shell .mlu-stat-card,
.mlu-page-shell .mlu-subtle-card {
    animation: mluCardIn 0.45s ease-out both;
}
.mlu-page-shell .row > *:nth-child(1) .mlu-stat-card,
.mlu-page-shell .row > *:nth-child(1) .mlu-subtle-card { animation-delay: 0.05s; }
.mlu-page-shell .row > *:nth-child(2) .mlu-stat-card,
.mlu-page-shell .row > *:nth-child(2) .mlu-subtle-card { animation-delay: 0.10s; }
.mlu-page-shell .row > *:nth-child(3) .mlu-stat-card,
.mlu-page-shell .row > *:nth-child(3) .mlu-subtle-card { animation-delay: 0.15s; }
.mlu-page-shell .row > *:nth-child(4) .mlu-stat-card,
.mlu-page-shell .row > *:nth-child(4) .mlu-subtle-card { animation-delay: 0.20s; }
.mlu-page-shell .row > *:nth-child(5) .mlu-stat-card,
.mlu-page-shell .row > *:nth-child(5) .mlu-subtle-card { animation-delay: 0.25s; }
.mlu-page-shell .row > *:nth-child(6) .mlu-stat-card,
.mlu-page-shell .row > *:nth-child(6) .mlu-subtle-card { animation-delay: 0.30s; }

@keyframes mluCardIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Revenue Cards ──────────────────────────────────────────── */
.mlu-revenue-card {
    border: 1px solid var(--mlu-border);
    border-radius: var(--mlu-radius);
    background: var(--mlu-surface);
    box-shadow: var(--mlu-shadow-sm);
    padding: 20px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: box-shadow var(--mlu-transition), transform var(--mlu-transition);
    position: relative;
    overflow: hidden;
}

.mlu-revenue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(5,150,105,0.3), transparent);
}

.mlu-revenue-card:hover {
    box-shadow: var(--mlu-shadow-md);
    transform: translateY(-2px);
}

.mlu-rev-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.mlu-rev-body { flex: 1; min-width: 0; }

.mlu-rev-label {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mlu-muted);
}

.mlu-rev-amount {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--mlu-text);
    line-height: 1.2;
    font-family: var(--mlu-font-heading);
}

.mlu-rev-sub {
    margin: 2px 0 0;
    font-size: 11px;
    color: var(--mlu-muted);
}

/* ── Pending Actions Strip ─────────────────────────────────── */
.mlu-pending-strip {
    border: 1px solid rgba(217,119,6,0.2);
    border-radius: var(--mlu-radius);
    background: var(--mlu-surface);
    box-shadow: var(--mlu-shadow-sm);
    overflow: hidden;
}

.mlu-pending-header {
    background: linear-gradient(90deg, rgba(217,119,6,0.08), rgba(220,38,38,0.06));
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mlu-warning);
    border-bottom: 1px solid rgba(217,119,6,0.12);
}

.mlu-pending-items {
    display: flex;
    flex-wrap: wrap;
}

.mlu-pending-item {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-right: 1px solid var(--mlu-border);
    text-decoration: none;
    color: var(--mlu-text);
    transition: background var(--mlu-transition);
}

.mlu-pending-item:last-child { border-right: none; }

.mlu-pending-item:hover {
    background: var(--mlu-bg-alt);
    color: var(--mlu-text);
}

.mlu-pend-count {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
    font-family: var(--mlu-font-heading);
}

.mlu-pend-count.warning { background: var(--mlu-warning-soft); color: var(--mlu-warning); }
.mlu-pend-count.info    { background: var(--mlu-info-soft); color: var(--mlu-info); }
.mlu-pend-count.danger  { background: var(--mlu-danger-soft); color: var(--mlu-danger); }
.mlu-pend-count.accent  { background: var(--mlu-accent-soft); color: var(--mlu-accent); }

.mlu-pend-info { min-width: 0; flex: 1; }

.mlu-pend-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--mlu-text);
}

.mlu-pend-desc {
    display: block;
    font-size: 11px;
    color: var(--mlu-muted);
}

/* ── Activity Timeline ─────────────────────────────────────── */
.mlu-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mlu-border);
    transition: background var(--mlu-transition);
    position: relative;
}

.mlu-timeline-item:hover {
    background: var(--mlu-bg-alt);
}

.mlu-timeline-item:last-child { border-bottom: none; }

.mlu-timeline-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 32px;
    bottom: -1px;
    width: 2px;
    background: var(--mlu-border);
}

.mlu-timeline-item:last-child::before { display: none; }

.mlu-tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    border: 2px solid var(--mlu-surface);
    box-shadow: 0 0 0 2px var(--mlu-border);
}

.mlu-tl-dot.success { background: var(--mlu-success); box-shadow: 0 0 0 2px rgba(5,150,105,0.3); }
.mlu-tl-dot.primary { background: var(--mlu-primary); box-shadow: 0 0 0 2px rgba(37,99,235,0.3); }
.mlu-tl-dot.muted   { background: var(--mlu-muted); box-shadow: 0 0 0 2px rgba(100,116,139,0.2); }

.mlu-tl-body { flex: 1; min-width: 0; }

.mlu-tl-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--mlu-text);
    margin-bottom: 2px;
}

.mlu-tl-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--mlu-muted);
    margin-bottom: 2px;
}

.mlu-tl-time {
    font-size: 10px;
    color: var(--mlu-muted);
    opacity: 0.8;
}

/* ── Revenue Card Stagger Animation ────────────────────────── */
.mlu-page-shell .mlu-revenue-card {
    animation: mluCardIn 0.45s ease-out both;
}
.mlu-page-shell .row > *:nth-child(1) .mlu-revenue-card { animation-delay: 0.08s; }
.mlu-page-shell .row > *:nth-child(2) .mlu-revenue-card { animation-delay: 0.14s; }
.mlu-page-shell .row > *:nth-child(3) .mlu-revenue-card { animation-delay: 0.20s; }
.mlu-page-shell .row > *:nth-child(4) .mlu-revenue-card { animation-delay: 0.26s; }

/* ── Responsive Adjustments ──────────────────────────────────── */
@media (max-width: 768px) {
    .mlu-page-shell { padding: 12px 8px; }
    .mlu-stat-card { padding: 14px; }
    .mlu-stat-value { font-size: 20px; }
    .mlu-hero { padding: 20px 16px; }
    .mlu-hero h2 { font-size: 18px; }
    .mlu-toolbar { flex-direction: column; align-items: stretch; }
    .mlu-notice-ticker .ticker-scroll { animation-duration: 15s; }
    .mlu-revenue-card { padding: 14px; }
    .mlu-rev-amount { font-size: 18px; }
    .mlu-pending-items { flex-direction: column; }
    .mlu-pending-item { border-right: none; border-bottom: 1px solid var(--mlu-border); }
    .mlu-pending-item:last-child { border-bottom: none; }
}

/* ── Mobile Responsive Table → Card Layout ──────────────────── */
@media (max-width: 767.98px) {
    .mlu-table-responsive .table thead { display: none; }
    .mlu-table-responsive .table,
    .mlu-table-responsive .table tbody,
    .mlu-table-responsive .table tr,
    .mlu-table-responsive .table td {
        display: block;
        width: 100%;
    }
    .mlu-table-responsive .table tbody tr {
        margin-bottom: 12px;
        border: 1px solid var(--mlu-border);
        border-radius: var(--mlu-radius-sm, 8px);
        background: var(--mlu-surface, #fff);
        box-shadow: var(--mlu-shadow-sm, 0 1px 2px rgba(0,0,0,.06));
        overflow: hidden;
    }
    .mlu-table-responsive .table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        border-bottom: 1px solid rgba(226,232,240,.5);
        text-align: right;
        min-height: 40px;
    }
    .mlu-table-responsive .table tbody td:last-child {
        border-bottom: none;
    }
    .mlu-table-responsive .table tbody td::before {
        content: attr(data-title);
        font-size: 11px;
        font-weight: 700;
        color: var(--mlu-muted, #64748b);
        text-transform: uppercase;
        letter-spacing: .04em;
        text-align: left;
        flex-shrink: 0;
        margin-right: 12px;
    }
    .mlu-table-responsive .table tbody td[data-title=""] {
        justify-content: flex-end;
    }
    .mlu-table-responsive .table tbody td[data-title=""]::before {
        display: none;
    }
}

/* ── GridView Pagination Container ──────────────────────────── */
.pagination-container td {
    border: none !important;
    padding: 12px 4px !important;
}
.pagination-container a,
.pagination-container span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 4px 10px;
    border-radius: var(--mlu-radius-sm, 8px);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0 2px;
}
.pagination-container a {
    color: var(--mlu-primary, #0d1b2e);
    background: var(--mlu-surface, #fff);
    border: 1px solid var(--mlu-border, #e2e8f0);
}
.pagination-container a:hover {
    background: var(--mlu-primary-soft, #eff6ff);
    border-color: var(--mlu-primary, #0d1b2e);
    transform: translateY(-1px);
}
.pagination-container span {
    color: #fff;
    background: var(--mlu-gradient-primary, linear-gradient(135deg, #0d1b2e, #1e3352));
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ── Scrollbar Beautification (global) ──────────────────────── */
.mlu-table-responsive::-webkit-scrollbar { height: 6px; }
.mlu-table-responsive::-webkit-scrollbar-track { background: var(--mlu-bg-alt, #f1f5f9); border-radius: 3px; }
.mlu-table-responsive::-webkit-scrollbar-thumb { background: var(--mlu-border-strong, #cbd5e1); border-radius: 3px; }
.mlu-table-responsive::-webkit-scrollbar-thumb:hover { background: var(--mlu-muted, #64748b); }


/* ================================================================
   SIDEBAR HOVER EFFECT
   Allows sidebar dropdowns to open on hover instead of click
   (Only on desktop devices to preserve mobile tap functionality)
   ================================================================ */
@media (min-width: 768px) {
    .sidebar-nav ul#sidebarnav li.sidebar-item:hover > ul.collapse {
        display: block !important;
        height: auto !important;
        transition: opacity 0.2s ease-in-out;
    }
    .sidebar-nav ul#sidebarnav li.sidebar-item:hover > a.has-arrow::after {
        transform: rotate(-135deg) translate(0, -2px) !important;
    }
}

/* ================================================================
   Sidebar nav vs main column scroll (Wave #main-wrapper[data-layout=vertical])
   - Menu scroll: .left-sidebar .scroll-sidebar
   - Content scroll: .mlu-main-scroll only (not full window)
   ================================================================ */
:root {
    --mlu-shell-topbar: 70px;
}

@media (min-width: 992px) {
    body:has(#main-wrapper[data-layout="vertical"] .mlu-main-scroll) {
        overflow-x: hidden;
        overflow-y: hidden;
        height: 100%;
    }

    html:has(#main-wrapper[data-layout="vertical"] .mlu-main-scroll) {
        height: 100%;
    }

    /* Flex column so .scroll-sidebar can shrink (min-height:0) and scroll independently */
    #main-wrapper[data-layout="vertical"] .left-sidebar.mlu-sidebar {
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    #main-wrapper[data-layout="vertical"] .left-sidebar.mlu-sidebar .scroll-sidebar {
        flex: 1 1 auto;
        min-height: 0;
        max-height: calc(100vh - var(--mlu-shell-topbar));
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    #main-wrapper[data-layout="vertical"] .mlu-main-scroll {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        max-height: calc(100vh - var(--mlu-shell-topbar));
        min-height: 0;
    }
}

@media (max-width: 991.98px) {
    body:has(#main-wrapper[data-layout="vertical"] .mlu-main-scroll) {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
    }

    html:has(#main-wrapper[data-layout="vertical"] .mlu-main-scroll) {
        height: auto;
    }

    #main-wrapper[data-layout="vertical"] .mlu-main-scroll {
        max-height: none;
        overflow: visible;
    }

    #main-wrapper[data-layout="vertical"] .left-sidebar.mlu-sidebar .scroll-sidebar {
        max-height: none;
    }
}

/* ================================================================
   RPT-PREFIXED ALIASES
   Maps renamed rpt-* classes to existing mlu-* class definitions
   so pages migrated to rpt- naming continue to render correctly.
   ================================================================ */
.rpt-hero              { /* inherits .mlu-hero */ }
.rpt-stat-card         { /* inherits .mlu-stat-card */ }
.rpt-notice-ticker     { /* inherits .mlu-notice-ticker */ }

/* Hero alias */
.rpt-hero {
    color: #fff;
    border-radius: var(--mlu-radius);
    padding: 28px 32px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.rpt-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.rpt-hero h2 { font-size: 24px; font-weight: 800; margin: 0 0 4px; position: relative; z-index: 1; }
.rpt-hero p  { position: relative; z-index: 1; }

/* Stat card alias */
.rpt-stat-card {
    border: 1px solid var(--mlu-border);
    border-radius: var(--mlu-radius);
    background: var(--mlu-surface);
    box-shadow: var(--mlu-shadow-sm);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: box-shadow var(--mlu-transition), transform var(--mlu-transition);
}
.rpt-stat-card:hover {
    box-shadow: var(--mlu-shadow-md);
    transform: translateY(-2px);
}
.rpt-stat-card.accent-left        { border-left: 4px solid var(--mlu-primary); }
.rpt-stat-card.accent-left.success { border-left-color: var(--mlu-success); }
.rpt-stat-card.accent-left.warning { border-left-color: var(--mlu-warning); }
.rpt-stat-card.accent-left.danger  { border-left-color: var(--mlu-danger); }
.rpt-stat-card.accent-left.info    { border-left-color: var(--mlu-info); }

/* Notice ticker alias */
.rpt-notice-ticker {
    background: linear-gradient(90deg, var(--mlu-danger-soft), rgba(220,38,38,0.05));
    border: 1px solid rgba(220,38,38,0.15);
    border-radius: var(--mlu-radius);
    padding: 10px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}
.rpt-notice-ticker .ticker-label {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mlu-danger);
    background: rgba(220,38,38,0.1);
    padding: 4px 10px;
    border-radius: 6px;
}
.rpt-notice-ticker .ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.rpt-notice-ticker .ticker-scroll {
    display: inline-block;
    animation: mluTickerScroll 25s linear infinite;
    font-size: 13px;
    color: var(--mlu-text);
}

/* Staggered animation for rpt-stat-card */
.mlu-page-shell .rpt-stat-card {
    animation: mluCardIn 0.45s ease-out both;
}
.mlu-page-shell .row > *:nth-child(1) .rpt-stat-card { animation-delay: 0.05s; }
.mlu-page-shell .row > *:nth-child(2) .rpt-stat-card { animation-delay: 0.10s; }
.mlu-page-shell .row > *:nth-child(3) .rpt-stat-card { animation-delay: 0.15s; }
.mlu-page-shell .row > *:nth-child(4) .rpt-stat-card { animation-delay: 0.20s; }

/* Responsive aliases */
@media (max-width: 768px) {
    .rpt-stat-card { padding: 14px; }
    .rpt-hero { padding: 20px 16px; }
    .rpt-hero h2 { font-size: 18px; }
    .rpt-notice-ticker .ticker-scroll { animation-duration: 15s; }
}

/* ================================================================
   GLOBAL BOOTSTRAP BUTTON OVERRIDES (Navy/Gold Design System)
   Ensures all pages using .mlu-page-shell inherit unified branding
   for btn-primary, btn-info, btn-success, and bg-primary/bg-info.
   ================================================================ */
.mlu-page-shell .btn-primary {
    background: linear-gradient(135deg, #0d1b2e, #1e3352) !important;
    border-color: #0d1b2e !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.18s;
}
.mlu-page-shell .btn-primary:hover,
.mlu-page-shell .btn-primary:focus {
    box-shadow: 0 4px 14px rgba(13,27,46,.25) !important;
    transform: translateY(-1px);
}

.mlu-page-shell .btn-success {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    border-color: #16a34a !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
}
.mlu-page-shell .btn-success:hover,
.mlu-page-shell .btn-success:focus {
    box-shadow: 0 4px 14px rgba(22,163,74,.3) !important;
    transform: translateY(-1px);
}

.mlu-page-shell .btn-info {
    background: linear-gradient(135deg, #b8922a, #9e7a20) !important;
    border-color: #b8922a !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
}
.mlu-page-shell .btn-info:hover,
.mlu-page-shell .btn-info:focus {
    box-shadow: 0 4px 14px rgba(184,146,42,.35) !important;
    transform: translateY(-1px);
}

.mlu-page-shell .badge.bg-primary {
    background: linear-gradient(135deg, #0d1b2e, #1e3352) !important;
}

.mlu-page-shell .badge.bg-success {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
}

.mlu-page-shell .badge.bg-info {
    background: linear-gradient(135deg, #0d7c89, #0891b2) !important;
}

/* ================================================================
   GLOBAL CARD HEADER OVERRIDE
   All card-header elements within .mlu-page-shell get navy/gold
   treatment automatically. Pages with inline styles will override.
   ================================================================ */
.mlu-page-shell .card-header {
    background: linear-gradient(135deg, #0d1b2e, #1e3352);
    color: rgba(255,255,255,.92);
    border-bottom: 3px solid #b8922a;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 20px;
}

.mlu-page-shell .card-header h5,
.mlu-page-shell .card-header h6,
.mlu-page-shell .card-header span {
    color: rgba(255,255,255,.92);
}

/* ================================================================
   GLOBAL FORM LABEL ENHANCEMENT
   Uppercase, tracked labels with subtle styling.
   ================================================================ */
.mlu-page-shell .form-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #475569;
}

/* ================================================================
   GLOBAL TABLE HEADER ENHANCEMENT
   Light gray headers with uppercase tracking.
   ================================================================ */
.mlu-page-shell .table:not(.table-dark) thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.mlu-page-shell .table tbody td {
    padding: 12px 16px;
    font-size: 13.5px;
    color: #334155;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.mlu-page-shell .table tbody tr {
    transition: background 0.15s;
}

.mlu-page-shell .table tbody tr:hover {
    background: rgba(184,146,42,.04);
}

/* ================================================================
   GLOBAL FORM CONTROL FOCUS
   Gold-accented focus ring for all inputs/selects.
   ================================================================ */
.mlu-page-shell .form-control:focus,
.mlu-page-shell .form-select:focus {
    border-color: #b8922a;
    box-shadow: 0 0 0 3px rgba(184,146,42,.12);
}

/* ================================================================
   GLOBAL EMPTY DATA / EMPTY STATE
   Consistent empty state styling for GridView EmptyDataTemplate.
   ================================================================ */
.mlu-page-shell .table .text-center[colspan] {
    padding: 40px 20px !important;
    color: #94a3b8;
    font-size: 14px;
}

/* ================================================================
   GLOBAL ALERT STYLING (info, warning, danger)
   Subtle token-compliant alert backgrounds.
   ================================================================ */
.mlu-page-shell .alert-info {
    background: rgba(13,124,137,.06);
    border-color: rgba(13,124,137,.2);
    color: #334155;
}

.mlu-page-shell .alert-warning {
    background: rgba(217,119,6,.06);
    border-color: rgba(217,119,6,.2);
    color: #334155;
}

.mlu-page-shell .alert-success {
    background: rgba(22,163,74,.06);
    border-color: rgba(22,163,74,.2);
    color: #334155;
}

.mlu-page-shell .alert-danger {
    background: rgba(220,38,38,.06);
    border-color: rgba(220,38,38,.2);
    color: #334155;
}
