:root {
    /* Brand */
    --brand-500: #21b249;
    --brand-600: #197632;
    --brand-400: #34c95f;
    --brand-100: #e6f7ec;
    --brand-050: #f2fbf5;

    /* Semantic */
    --success: #21b249;
    --warning: #f5a524;
    --danger: #e5484d;
    --info: #3b82f6;

    /* Light theme surface */
    --bg-body: #f4f7f6;
    --bg-surface: #ffffff;
    --bg-surface-2: #f8faf9;
    --bg-sidebar: #0f2417;
    --bg-sidebar-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #12201a;
    --text-secondary: #5b6b64;
    --text-muted: #8a9791;
    --text-on-brand: #ffffff;
    --text-sidebar: #d7e6dc;
    --text-sidebar-muted: #8fa799;

    --border-color: #e3e9e6;
    --border-strong: #cfd9d4;

    --shadow-sm: 0 1px 2px rgba(16, 40, 26, 0.06);
    --shadow-md: 0 4px 16px rgba(16, 40, 26, 0.08);
    --shadow-lg: 0 12px 32px rgba(16, 40, 26, 0.12);

    /* Layout */
    --sidebar-width: 264px;
    --sidebar-collapsed-width: 76px;
    --topbar-height: 68px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    --font-sans: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition-fast: 150ms ease;
    --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-body: #0c1512;
    --bg-surface: #121e19;
    --bg-surface-2: #16241e;
    --bg-sidebar: #0a1310;
    --bg-sidebar-hover: rgba(255, 255, 255, 0.05);

    --text-primary: #eaf3ee;
    --text-secondary: #a9bcb3;
    --text-muted: #71857b;
    --text-on-brand: #ffffff;
    --text-sidebar: #cfe3d7;
    --text-sidebar-muted: #7d9188;

    --border-color: #223027;
    --border-strong: #2c3d33;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);

    --brand-100: #163826;
    --brand-050: #10241a;

    --z-dropdown: 20;
    --z-sticky-header: 2;
    --z-modal: 1000;
    --z-viewer: 1200;
    --z-toast: 1400;
}

/* =============================================================
   SECTION 2 — RESET & APP SHELL LAYOUT (sidebar / header / grid)
   ============================================================= */
/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

* { transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }

/* =========================================================
   APP SHELL
   ========================================================= */
.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
}

.app-shell.sidebar-collapsed {
    grid-template-columns: var(--sidebar-collapsed-width) 1fr;
}

/* ---------- Sidebar ---------- */
.sidebar {
    background: var(--bg-sidebar);
    color: var(--text-sidebar);
    padding: 20px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 40;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 22px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand__logo {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-brand__name {
    font-weight: 700;
    font-size: 15.5px;
    color: #fff;
    white-space: nowrap;
}

.sidebar-brand__tag {
    font-size: 11px;
    color: var(--text-sidebar-muted);
}

.sidebar-collapsed .sidebar-brand__name,
.sidebar-collapsed .sidebar-brand__tag,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-section-title {
    display: none;
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-sidebar-muted);
    padding: 14px 12px 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-sidebar);
    font-size: 13.8px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover { background: var(--bg-sidebar-hover); color: #fff; }

.nav-link.active {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.nav-link__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link__badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
}

.sidebar-collapsed .nav-link__badge { display: none; }

/* ---------- Topbar ---------- */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    position: sticky;
    top: 0;
    z-index: 30;
}

.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.icon-btn:hover { border-color: var(--brand-500); color: var(--brand-500); }

.page-title { font-size: 16.5px; font-weight: 700; }
.page-breadcrumb { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.theme-toggle {
    display: flex;
    align-items: center;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 2px;
}

.theme-toggle button {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.theme-toggle button.active {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff;
}

.admin-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: var(--bg-surface-2);
}

.admin-chip__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.admin-chip__name { font-size: 13px; font-weight: 600; }
.admin-chip__role { font-size: 11px; color: var(--text-muted); }

/* ---------- Content ---------- */
.content {
    padding: 24px;
    max-width: 1600px;
    flex: 1 1 auto;
    width: 100%;
}

.mobile-nav-toggle { display: none; }

.main-col {
    grid-column: 2 / 3;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-shell.sidebar-collapsed .main-col { grid-column: 2 / 3; }

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 35;
}

.sidebar-backdrop.show { display: block; }

/* =========================================================
   MOBILE RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .app-shell { grid-template-columns: 1fr; }
    .main-col { grid-column: 1 / 2; }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 264px;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }

    .sidebar.mobile-open { transform: translateX(0); }

    .app-shell.sidebar-collapsed .sidebar { width: 264px; }
    .sidebar-collapsed .nav-label,
    .sidebar-collapsed .nav-section-title,
    .sidebar-collapsed .sidebar-brand__name,
    .sidebar-collapsed .sidebar-brand__tag { display: block; }

    .mobile-nav-toggle { display: flex; }
}

@media (max-width: 640px) {
    .content { padding: 16px; }
    .topbar { padding: 0 14px; }
    .admin-chip__role { display: none; }
    .page-breadcrumb { display: none; }
}

/* =============================================================
   SECTION 3 — SHARED UI COMPONENTS (buttons, cards, tables, forms)
   ============================================================= */
/* =========================================================
   COMPONENTS
   ========================================================= */

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid transparent;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover { filter: brightness(1.05); box-shadow: var(--shadow-md); }

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.btn-outline:hover { border-color: var(--brand-500); color: var(--brand-500); }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-surface-2); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }

/* ---------- Cards ---------- */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title { font-size: 14.5px; font-weight: 700; }
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.card-body { padding: 20px; }

/* ---------- Stat cards ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

@media (max-width: 1024px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.stat-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.stat-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--brand-100);
    color: var(--brand-600);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card__label { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.stat-card__value { font-size: 25px; font-weight: 800; margin-top: 2px; }

.trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 0; }
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 700;
}

.badge-success { background: var(--brand-100); color: var(--brand-600); }
.badge-warning { background: rgba(245, 165, 36, 0.14); color: var(--warning); }
.badge-danger { background: rgba(229, 72, 77, 0.12); color: var(--danger); }
.badge-info { background: rgba(59, 130, 246, 0.12); color: var(--info); }
.badge-muted { background: var(--bg-surface-2); color: var(--text-muted); border: 1px solid var(--border-color); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13.2px; min-width: 640px; }

.data-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tbody tr:hover { background: var(--bg-surface-2); }
.data-table tbody tr:last-child td { border-bottom: none; }

.cell-strong { font-weight: 700; }
.cell-muted { color: var(--text-muted); font-size: 12px; }

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    flex-wrap: wrap;
}

.table-filters { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }

.form-label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }

.form-control {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 13.5px;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px var(--brand-100);
}

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 42px; }
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: flex;
}

.input-toggle-visibility {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
}

.form-error { color: var(--danger); font-size: 12px; margin-top: 6px; }
.form-hint { color: var(--text-muted); font-size: 11.5px; margin-top: 6px; }

.search-input { position: relative; width: 260px; }
.search-input .form-control { padding-left: 38px; }

/* ---------- Alerts ---------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-success { background: var(--brand-100); color: var(--brand-600); border-color: rgba(33, 178, 73, 0.25); }
.alert-danger { background: rgba(229, 72, 77, 0.1); color: var(--danger); border-color: rgba(229, 72, 77, 0.25); }
.alert-warning { background: rgba(245, 165, 36, 0.12); color: #a86a08; border-color: rgba(245, 165, 36, 0.3); }

/* ---------- Progress / Pagination ---------- */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: flex-end; padding: 14px 20px; }
.pagination button {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 12.5px;
}
.pagination button.active { background: var(--brand-500); color: #fff; border-color: var(--brand-500); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { margin: 0 auto 14px; opacity: 0.5; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-color); margin-bottom: 18px; }
.tab-link { padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; }
.tab-link.active { color: var(--brand-600); border-color: var(--brand-500); }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 20, 14, 0.55); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal-backdrop.show { display: flex; }
.modal-box { background: var(--bg-surface); border-radius: var(--radius-md); width: 420px; max-width: 92vw; box-shadow: var(--shadow-lg); }
.modal-header { padding: 18px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 10px; }

/* =========================================================
   NOTIFICATION SYSTEM - Slide from right
   ========================================================= */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    width: 100%;
    pointer-events: none;
}

.notification {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--info);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(120%);
    transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 13px;
    min-width: 280px;
    max-width: 380px;
    position: relative;
    overflow: hidden;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.hide {
    opacity: 0;
    transform: translateX(120%);
}

/* Notification Types */
.notification-success {
    border-left-color: var(--success);
}

.notification-success .notification-icon {
    color: var(--success);
}

.notification-error {
    border-left-color: var(--danger);
}

.notification-error .notification-icon {
    color: var(--danger);
}

.notification-warning {
    border-left-color: var(--warning);
}

.notification-warning .notification-icon {
    color: var(--warning);
}

.notification-info {
    border-left-color: var(--info);
}

.notification-info .notification-icon {
    color: var(--info);
}

/* Notification Icon */
.notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-2);
    font-size: 16px;
    margin-top: 2px;
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notification-message {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-word;
}

.notification-time {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* Notification Close Button */
.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    margin-top: -4px;
    transition: color 0.2s ease;
    pointer-events: auto;
}

.notification-close:hover {
    color: var(--text-primary);
}

/* Notification Progress Bar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--border-color);
    width: 100%;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    background: var(--brand-500);
    width: 100%;
    transition: width 100ms linear;
}

.notification-success .notification-progress-bar {
    background: var(--success);
}

.notification-error .notification-progress-bar {
    background: var(--danger);
}

.notification-warning .notification-progress-bar {
    background: var(--warning);
}

.notification-info .notification-progress-bar {
    background: var(--info);
}

/* =========================================================
   FIX: Light mode text visibility issues
   ========================================================= */

/* Fix for sidebar brand */
.sidebar-brand__name {
    color: #fff;
}

.sidebar-brand__tag {
    color: var(--text-sidebar-muted);
}

/* Fix for stat cards */
.stat-card__label {
    color: var(--text-muted);
}

.stat-card__value {
    color: var(--text-primary);
}

/* Fix for table headers */
.data-table thead th {
    color: var(--text-muted);
}

/* Fix for form labels */
.form-label {
    color: var(--text-secondary);
}

/* Fix for modal text */
.modal-header .card-title {
    color: var(--text-primary);
}

/* Fix for badge text */
.badge-success {
    color: var(--brand-600);
}

.badge-warning {
    color: var(--warning);
}

.badge-danger {
    color: var(--danger);
}

.badge-info {
    color: var(--info);
}

.badge-muted {
    color: var(--text-muted);
}

/* Fix for alert text */
.alert-success {
    color: var(--brand-600);
}

.alert-danger {
    color: var(--danger);
}

.alert-warning {
    color: #a86a08;
}

/* Fix for dark theme overrides */
[data-theme="dark"] .badge-success {
    color: #4ade80;
}

[data-theme="dark"] .badge-warning {
    color: #fbbf24;
}

[data-theme="dark"] .badge-danger {
    color: #f87171;
}

[data-theme="dark"] .badge-info {
    color: #60a5fa;
}

[data-theme="dark"] .badge-muted {
    color: #94a3b8;
}

/* Fix for notification text in dark mode */
[data-theme="dark"] .notification {
    background: var(--bg-surface);
    border-color: var(--border-color);
}

[data-theme="dark"] .notification-title {
    color: var(--text-primary);
}

[data-theme="dark"] .notification-message {
    color: var(--text-secondary);
}

/* Fix for input placeholder color */
.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Fix for select dropdown in dark mode */
[data-theme="dark"] .form-control option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

/* Fix for disabled buttons */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Fix for empty state text */
.empty-state {
    color: var(--text-muted);
}

.empty-state p {
    color: var(--text-muted);
}

/* Fix for pagination text */
.pagination button {
    color: var(--text-secondary);
}

.pagination button.active {
    color: #fff;
}

.pagination button:disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Fix for sidebar scrollbar */
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

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

/* Fix for tooltip text */
[data-tooltip] {
    position: relative;
}

/* Fix for dropdown menu text */
.export-dropdown__menu a {
    color: var(--text-primary);
}

.export-dropdown__menu a:hover {
    color: var(--brand-600);
}

[data-theme="dark"] .export-dropdown__menu a:hover {
    color: #4ade80;
}

/* =========================================================
   NOTIFICATION RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: 100%;
        width: auto;
    }

    .notification {
        min-width: unset;
        max-width: 100%;
        padding: 12px 14px;
        font-size: 12.5px;
    }

    .notification-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .notification-title {
        font-size: 12px;
    }

    .notification-message {
        font-size: 12px;
    }
}

/* =============================================================
   SIDEBAR DROPDOWN STYLES
   ============================================================= */

/* Dropdown container */
.nav-dropdown {
    position: relative;
    margin-bottom: 2px;
}

/* Dropdown toggle button */
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-sidebar);
    font-size: 13.8px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    width: 100%;
    background: transparent;
    border: none;
    font-family: inherit;
}

.nav-dropdown-toggle:hover {
    background: var(--bg-sidebar-hover);
    color: #fff;
}

.nav-dropdown-toggle.active {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* Dropdown arrow */
.nav-dropdown-arrow {
    margin-left: auto;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-arrow svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Dropdown menu */
.nav-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding: 0 12px;
}

.nav-dropdown-menu.show {
    max-height: 400px;
    opacity: 1;
    padding: 4px 12px 8px;
}

/* Dropdown items */
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 36px;
    border-radius: var(--radius-sm);
    color: var(--text-sidebar-muted);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
}

.nav-dropdown-item:hover {
    background: var(--bg-sidebar-hover);
    color: #fff;
}

.nav-dropdown-item.active {
    color: #fff;
    background: rgba(33, 178, 73, 0.15);
}

.nav-dropdown-item.active::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: var(--brand-500);
}

.nav-dropdown-item__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.nav-dropdown-item.active .nav-dropdown-item__icon {
    opacity: 1;
}

.nav-dropdown-item__label {
    flex: 1;
}

/* Sidebar collapsed mode */
.sidebar-collapsed .nav-dropdown-menu {
    max-height: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
}

.sidebar-collapsed .nav-dropdown-arrow {
    display: none;
}

.sidebar-collapsed .nav-dropdown-item {
    padding-left: 12px;
}

.sidebar-collapsed .nav-dropdown-item__label,
.sidebar-collapsed .nav-dropdown-arrow {
    display: none;
}

/* =============================================================
   RESPONSIVE - Mobile
   ============================================================= */
@media (max-width: 1024px) {
    .sidebar.mobile-open .nav-dropdown-menu.show {
        max-height: 400px;
        opacity: 1;
        padding: 4px 12px 8px;
    }
}
