/* public/assets/css/app.css - eKAMPUS Modern Premium Theme */
:root {
    /* Main Colors */
    --primary: #059669;
    /* Emerald Green */
    --primary-dark: #064e3b;
    --primary-light: #34d399;
    --secondary: #d4af37;
    /* Gold */
    --secondary-light: #fbbf24;

    /* Backgrounds */
    --bg-main: #f8fafc;
    /* Slate 50 */
    --bg-card: #ffffff;
    --sidebar-bg: #064e3b;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --border-color: #e2e8f0;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Accessible table badge colors */
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --amber-600: #d97706;
    --slate-900: #0f172a;

    --table-badge-success-bg: var(--emerald-100);
    --table-badge-success-border: #86efac;
    --table-badge-success-text: var(--emerald-900);
    --table-badge-warning-bg: #fef3c7;
    --table-badge-warning-border: #fcd34d;
    --table-badge-warning-text: #92400e;
}

/* Global Brand Overrides */
.bg-primary {
    background-color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.text-primary {
    color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: #fff !important;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.text-secondary {
    color: #475569 !important;
}

.text-dark {
    color: var(--emerald-900) !important;
}

.text-dark-50 {
    color: rgba(6, 78, 59, 0.5) !important;
}

/* Improve status readability inside table badges */
.table .badge.bg-success,
.table .badge.text-bg-success {
    background-color: var(--table-badge-success-bg) !important;
    border: 1px solid var(--table-badge-success-border);
    color: var(--table-badge-success-text) !important;
    font-weight: 700;
}

.table .badge.bg-warning,
.table .badge.text-bg-warning {
    background-color: var(--table-badge-warning-bg) !important;
    border: 1px solid var(--table-badge-warning-border);
    color: var(--table-badge-warning-text) !important;
    font-weight: 700;
}

/* Support legacy soft variants so old views keep accessible contrast */
.table .badge.bg-success-soft,
.table .badge.bg-emerald-soft,
.table .badge.bg-emerald-dark-soft {
    background-color: var(--table-badge-success-bg) !important;
    border: 1px solid var(--table-badge-success-border);
    color: var(--table-badge-success-text) !important;
    font-weight: 700;
}

.table .badge.bg-warning-soft {
    background-color: var(--table-badge-warning-bg) !important;
    border: 1px solid var(--table-badge-warning-border);
    color: var(--table-badge-warning-text) !important;
    font-weight: 700;
}

/* Normalize informational table badge contrast */
.table .badge.bg-white.bg-opacity-50 {
    background-color: #f8fafc !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    color: var(--slate-900) !important;
    font-weight: 600;
}

/* Keep warning outline buttons readable inside dense table rows */
.table .btn-outline-warning {
    color: #7c2d12 !important;
    border-color: #f59e0b !important;
}

.table .btn-outline-warning:hover,
.table .btn-check:checked+.btn-outline-warning {
    color: #1f2937 !important;
    background-color: #fcd34d !important;
    border-color: #f59e0b !important;
}

/* Global Styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--emerald-900);
    overflow-x: hidden;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Sidebar Styling — Premium 3D Emerald */
.sidebar {
    height: 100vh;
    width: 270px;
    background:
        linear-gradient(175deg,
            rgba(4, 40, 28, 0.97) 0%,
            rgba(6, 78, 59, 0.95) 35%,
            rgba(4, 60, 44, 0.97) 70%,
            rgba(2, 30, 20, 0.99) 100%);
    color: white;
    transition: var(--transition);
    z-index: 1050;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Content area offset for fixed sidebar */
.sidebar~.flex-fill,
.sidebar+.flex-fill {
    margin-left: 270px;
}

/* Subtle geometric pattern overlay */
.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2310b981' stroke-width='0.4' opacity='0.08'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30Z'/%3E%3Ccircle cx='30' cy='30' r='8'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Inner edge highlight for depth */
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(52, 211, 153, 0.15) 0%,
            rgba(52, 211, 153, 0.05) 50%,
            transparent 100%);
    z-index: 1;
}

.sidebar>* {
    position: relative;
    z-index: 1;
}

/* ── Logo & Brand Section ── */
.sidebar-brand {
    padding: 1.5rem 1.25rem 1.25rem;
    text-align: center;
    position: relative;
}

.sidebar-brand::after {
    content: '';
    display: block;
    margin: 1rem auto 0;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(52, 211, 153, 0.3),
            rgba(212, 175, 55, 0.2),
            transparent);
}

.sidebar-logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: 0.75rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sidebar-logo-card:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        0 0 20px rgba(52, 211, 153, 0.1);
}

.sidebar-logo-card img {
    max-height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sidebar-app-name {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #6ee7b7 0%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    margin-bottom: 0.15rem;
}

.sidebar-campus-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* ── Menu Section ── */
.sidebar-menu {
    padding: 0.5rem 0.75rem 2rem;
}

.sidebar-menu-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(52, 211, 153, 0.45);
    padding: 0.75rem 0.75rem 0.35rem;
    margin-top: 0.25rem;
}

/* ── Menu Items — 3D Embossed ── */
.sidebar .list-group-item {
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
    border: none;
    padding: 0.72rem 0.85rem;
    margin: 2px 0;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
}

.sidebar .list-group-item:hover {
    color: #fff;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.02));
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateX(3px);
}

/* Parent menu (with subs) — 3D raised look */
.sidebar .list-group-item[data-bs-toggle="collapse"] {
    font-weight: 600;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.01));
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar .list-group-item[data-bs-toggle="collapse"]:hover {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.03));
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(52, 211, 153, 0.1);
    transform: translateY(-1px);
}

/* Active parent menu — Emerald glow */
.sidebar .list-group-item.active[data-bs-toggle="collapse"] {
    background: linear-gradient(135deg,
            rgba(5, 150, 105, 0.25),
            rgba(16, 185, 129, 0.12)) !important;
    color: #6ee7b7 !important;
    box-shadow:
        0 4px 16px rgba(5, 150, 105, 0.2),
        inset 0 1px 0 rgba(110, 231, 183, 0.1),
        0 0 0 1px rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.12);
}

/* Active submenu item — Indent glow bar */
.sidebar .list-group-item.text-white.fw-bold {
    color: #6ee7b7 !important;
    background: linear-gradient(135deg,
            rgba(5, 150, 105, 0.18),
            rgba(16, 185, 129, 0.08));
    box-shadow:
        inset 3px 0 0 #34d399,
        0 2px 6px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

/* Single-page menu (Dashboard) active */
.sidebar .list-group-item.active:not([data-bs-toggle]) {
    background: linear-gradient(135deg,
            rgba(5, 150, 105, 0.3),
            rgba(16, 185, 129, 0.15)) !important;
    color: #fff !important;
    box-shadow:
        0 4px 16px rgba(5, 150, 105, 0.2),
        inset 0 1px 0 rgba(110, 231, 183, 0.12);
    font-weight: 600;
}

/* Submenu collapse container */
.sidebar .collapse,
.sidebar .collapsing {
    margin-left: 0.5rem;
    border-left: 2px solid rgba(52, 211, 153, 0.12);
    padding-left: 0.25rem;
}

/* Submenu items — Slightly recessed */
.sidebar .collapse .list-group-item,
.sidebar .collapsing .list-group-item {
    font-size: 0.81rem;
    padding: 0.5rem 0.75rem;
    margin: 1px 0;
    color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.sidebar .collapse .list-group-item:hover,
.sidebar .collapsing .list-group-item:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    transform: translateX(2px);
}

.sidebar .list-group-item i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* Chevron rotation */
.sidebar .chevron-icon {
    font-size: 0.65rem;
    opacity: 0.4;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar [aria-expanded="true"] .chevron-icon {
    transform: rotate(90deg);
    opacity: 0.7;
}

/* ── Sidebar Scrollbar ── */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(52, 211, 153, 0.2);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 211, 153, 0.35);
}

/* ═══════════════════════════════════════
   PREMIUM HEADER / NAVBAR — 3D CAMPUS
   ═══════════════════════════════════════ */

.hdr-navbar {
    z-index: 1040;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 4px 16px rgba(15, 23, 42, 0.06),
        0 1px 3px rgba(15, 23, 42, 0.04);
}

.hdr-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1.5rem;
    position: relative;
    min-height: 56px;
}

/* ── Mobile Brand ── */
.hdr-mobile-logo {
    max-height: 32px;
    border-radius: 6px;
}

.hdr-mobile-name {
    font-weight: 800;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Campus Brand Center ── */
.hdr-campus-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.hdr-brand-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 1.1rem 0.35rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(6, 78, 59, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    box-shadow:
        0 2px 8px rgba(6, 78, 59, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transition: all 0.3s ease;
}

.hdr-brand-chip:hover {
    box-shadow:
        0 4px 16px rgba(6, 78, 59, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.hdr-brand-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 0.85rem;
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.3);
    flex-shrink: 0;
}

.hdr-brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hdr-brand-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1;
}

.hdr-brand-name {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Action Buttons ── */
.hdr-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

.hdr-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.8);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    position: relative;
}

.hdr-action-btn:hover {
    background: #fff;
    color: var(--primary);
    border-color: rgba(5, 150, 105, 0.15);
    transform: translateY(-1px);
    box-shadow:
        0 4px 12px rgba(5, 150, 105, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.hdr-notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    line-height: 1;
}

.hdr-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.08), transparent);
    margin: 0 0.35rem;
}

/* ── User Button ── */
.hdr-user-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    padding: 0.3rem 0.65rem 0.3rem 0.3rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.25s ease;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.hdr-user-btn:hover {
    background: #fff;
    border-color: rgba(5, 150, 105, 0.15);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.hdr-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.25);
    flex-shrink: 0;
}

.hdr-avatar-lg {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
    border-radius: 12px;
}

.hdr-user-info {
    display: flex;
    flex-direction: column;
}

.hdr-user-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.hdr-user-role {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
}

.hdr-user-caret {
    font-size: 0.6rem;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.hdr-user-btn[aria-expanded="true"] .hdr-user-caret {
    transform: rotate(180deg);
}

/* ── Dropdown Panels ── */
.hdr-dropdown-panel {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 14px !important;
    box-shadow:
        0 12px 32px rgba(15, 23, 42, 0.12),
        0 4px 12px rgba(15, 23, 42, 0.06) !important;
    padding: 0 !important;
    overflow: hidden;
    animation: hdrDropIn 0.2s ease-out;
    margin-top: 0.5rem !important;
}

@keyframes hdrDropIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hdr-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(248, 250, 252, 0.8);
}

.hdr-dropdown-footer {
    padding: 0.65rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(248, 250, 252, 0.5);
}

.hdr-dropdown-footer a {
    color: var(--primary) !important;
}

/* ── Notification Panel ── */
.hdr-notif-panel {
    width: 340px;
}

.hdr-notif-list {
    max-height: 300px;
    overflow-y: auto;
}

.hdr-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: background 0.2s ease;
    position: relative;
}

.hdr-notif-item:hover {
    background: rgba(5, 150, 105, 0.03);
}

.hdr-notif-item.unread {
    background: rgba(5, 150, 105, 0.04);
}

.hdr-notif-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
}

.hdr-notif-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.hdr-notif-content {
    min-width: 0;
}

.hdr-notif-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.hdr-notif-time {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* ── User Panel ── */
.hdr-user-panel {
    width: 260px;
}

.hdr-user-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.04), rgba(248, 250, 252, 0.6));
}

.hdr-user-panel-body {
    padding: 0.35rem;
}

.hdr-user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    text-decoration: none;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hdr-user-menu-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--primary-dark);
    transform: translateX(2px);
}

.hdr-user-menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.hdr-user-panel-footer {
    padding: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.hdr-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    padding: 0.55rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
    transition: all 0.2s ease;
}

.hdr-logout-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .hdr-navbar-inner {
        padding: 0.45rem 0.75rem;
    }

    .hdr-action-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .hdr-notif-panel {
        width: calc(100vw - 1rem);
    }

    .hdr-user-panel {
        width: calc(100vw - 1rem);
    }
}

/* Cards Overhaul */
.card {
    border: none;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

/* Stat Card Specifics */
.stat-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Content */
.main-content {
    padding: 2.5rem;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem;
    }
}

/* High Contrast Emerald Utilities */
.text-emerald-dark {
    color: var(--emerald-900) !important;
}

.bg-emerald-soft {
    background-color: var(--emerald-50) !important;
}

.btn-emerald {
    background-color: var(--emerald-600);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-emerald:hover {
    background-color: var(--emerald-700);
    color: white;
    transform: translateY(-1px);
}

.shadow-emerald {
    box-shadow: 0 5px 15px -3px rgba(5, 150, 105, 0.4);
}

/* Redefining legacy gold for compatibility while transitioning */
.text-gold {
    color: var(--emerald-700) !important;
}

.bg-gold {
    background-color: var(--emerald-600) !important;
}

.btn-gold {
    background-color: var(--emerald-600);
    color: white !important;
    border: none;
}

.btn-gold:hover {
    background-color: var(--emerald-700);
}

.shadow-gold {
    box-shadow: 0 5px 15px -3px rgba(5, 150, 105, 0.4);
}