/* ═══════════════════════════════════════════════════════════════
   दूध प्रबंधन - Fresh Dairy Theme v3.0
   Mobile-First  |  Milk & Farm Inspired Design
   ═══════════════════════════════════════════════════════════════ */

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

/* ─── CSS Variables ─── */
:root {
    --primary: #16a34a;
    --primary-light: #22c55e;
    --primary-dark: #15803d;
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-900: #14532d;

    --forest: #064e3b;
    --forest-dark: #022c22;
    --forest-mid: #065f46;

    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --accent-50: #fffbeb;
    --accent-100: #fef3c7;

    --blue: #0ea5e9;
    --blue-light: #38bdf8;
    --blue-50: #f0f9ff;
    --blue-100: #e0f2fe;

    --purple: #8b5cf6;
    --purple-50: #f5f3ff;
    --purple-100: #ede9fe;

    --danger: #ef4444;
    --danger-light: #f87171;
    --danger-50: #fef2f2;
    --danger-100: #fee2e2;

    --surface: #ffffff;
    --surface-elevated: rgba(255,255,255,0.92);
    --surface-glass: rgba(255,255,255,0.72);

    --bg: #f0fdf4;
    --bg-gradient: linear-gradient(160deg, #f6fef9 0%, #f0fdf4 50%, #fffbeb 100%);

    --text-primary: #052e16;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --text-white: #ffffff;

    --border: #d1fae5;
    --border-light: #f0fdf4;

    --shadow-xs: 0 1px 3px rgba(6,78,59,0.06);
    --shadow-sm: 0 2px 8px rgba(6,78,59,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(6,78,59,0.10), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 28px rgba(6,78,59,0.12), 0 4px 8px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 44px rgba(6,78,59,0.13), 0 8px 16px rgba(0,0,0,0.07);
    --shadow-glow-green: 0 0 24px rgba(22,163,74,0.25);
    --shadow-glow-gold: 0 0 24px rgba(245,158,11,0.2);

    --sidebar-width: 256px;
    --topbar-height: 62px;
    --bottom-nav-height: 72px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.15s var(--ease-out);
    --transition-normal: 0.3s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body {
    font-family: 'Noto Sans Devanagari', 'Inter', -apple-system, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-secondary);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

a { color:var(--primary); text-decoration:none; transition:color var(--transition-fast); }
a:hover { color:var(--primary-dark); }
img { max-width:100%; height:auto; }

/* ─── Typography ─── */
h1,h2,h3,h4,h5,h6 { font-weight:700; line-height:1.3; color:var(--text-primary); }
h1 { font-size:1.6rem; letter-spacing:-0.02em; }
h2 { font-size:1.3rem; letter-spacing:-0.01em; }
h3 { font-size:1.1rem; }
h4 { font-size:1rem; }

/* ─── Layout ─── */
.app-layout { display:flex; min-height:100vh; }

/* ─── Sidebar ─── */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--forest-dark) 0%, var(--forest) 45%, var(--forest-mid) 100%);
    color: #fff;
    position: fixed; top:0; left:0; height:100vh; z-index:1000;
    overflow-y:auto; overflow-x:hidden;
    transition: transform var(--transition-normal);
    border-right: 1px solid rgba(255,255,255,0.04);
    box-shadow: 4px 0 28px rgba(2,44,34,0.35);
}
.sidebar::-webkit-scrollbar { width:3px; }
.sidebar::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.15); border-radius:3px; }
.sidebar::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 180px; height: 200px;
    background: radial-gradient(circle at top right, rgba(34,197,94,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-brand {
    padding: 24px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.18);
    position: relative;
}
.sidebar-brand .brand-icon {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, #22c55e, #f59e0b);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.65rem;
    margin: 0 auto 10px;
    box-shadow: 0 6px 20px rgba(34,197,94,0.38);
    animation: brandPulse 4s ease-in-out infinite;
}
.sidebar-brand h2 { color:#fff; font-size:1rem; font-weight:700; margin-bottom:2px; }
.sidebar-brand small { color:rgba(255,255,255,0.36); font-size:0.65rem; letter-spacing:1.2px; text-transform:uppercase; }

.sidebar-menu { padding:10px 0; list-style:none; }
.sidebar-menu .menu-label {
    padding: 14px 20px 5px;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.24);
    font-weight: 700;
}
.sidebar-menu a {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.62);
    font-size: 0.875rem; font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    margin: 1px 10px 1px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    min-height: 44px;
}
.sidebar-menu a:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
    border-left-color: var(--accent-light);
}
.sidebar-menu a.active {
    background: linear-gradient(90deg, rgba(34,197,94,0.2), rgba(34,197,94,0.05));
    color: #fff;
    border-left-color: var(--primary-light);
    font-weight: 600;
}
.sidebar-menu a i { width:20px; text-align:center; font-size:0.9rem; opacity:0.78; }
.sidebar-menu a.active i { opacity:1; color:var(--primary-light); }
.sidebar-menu .badge-count {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 0.58rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}

.sidebar-user {
    padding: 14px 18px;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.15);
}
.sidebar-user .user-info { display:flex; align-items:center; gap:10px; }
.sidebar-user .user-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.sidebar-user .user-name { font-size:0.82rem; font-weight:600; }
.sidebar-user .user-role { font-size:0.65rem; color:rgba(255,255,255,0.38); }

/* ─── Main Content ─── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--transition-normal);
}

.topbar {
    height: var(--topbar-height);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1.5px solid rgba(187,247,208,0.5);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(6,78,59,0.07);
}
.topbar-left { display:flex; align-items:center; gap:12px; }
.topbar-left .page-title { font-size:1rem; font-weight:700; color:var(--text-primary); }
.topbar-right { display:flex; align-items:center; gap:8px; }

.sidebar-toggle {
    display: none;
    background: none; border: none;
    font-size: 1.2rem; cursor: pointer;
    color: var(--forest);
    padding: 8px; border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.sidebar-toggle:hover { background: var(--primary-50); }

.content-area {
    padding: 20px;
    animation: contentFade 0.35s var(--ease-out);
}

/* ─── Cards ─── */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(187,247,208,0.45);
    overflow: hidden;
    transition: all var(--transition-normal);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(187,247,208,0.4);
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #fafffe 0%, #f0fdf4 100%);
}
.card-header h3, .card-header h4 { display:flex; align-items:center; gap:8px; font-size:0.92rem; }
.card-body { padding: 18px; }
.card-footer { padding:12px 18px; border-top:1px solid rgba(187,247,208,0.4); background:#fafffe; }

/* ─── Stat Cards ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(187,247,208,0.4);
    display: flex; align-items: center; gap: 14px;
    transition: all var(--transition-normal);
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
}
.stat-card.green::before { background: linear-gradient(180deg, var(--primary), var(--primary-light)); }
.stat-card.gold::before  { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); }
.stat-card.blue::before  { background: linear-gradient(180deg, var(--blue), var(--blue-light)); }
.stat-card.red::before   { background: linear-gradient(180deg, var(--danger), var(--danger-light)); }
.stat-card.purple::before{ background: linear-gradient(180deg, var(--purple), #a78bfa); }
.stat-card::after {
    content: ''; position: absolute;
    top: -25px; right: -25px;
    width: 80px; height: 80px;
    border-radius: 50%; opacity: 0.05;
}
.stat-card.green::after  { background: var(--primary); }
.stat-card.gold::after   { background: var(--accent); }
.stat-card.blue::after   { background: var(--blue); }
.stat-card.red::after    { background: var(--danger); }
.stat-card.purple::after { background: var(--purple); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.stat-icon.green  { background: var(--primary-100); color: var(--primary); }
.stat-icon.gold   { background: var(--accent-100);  color: var(--accent-dark); }
.stat-icon.blue   { background: var(--blue-100);    color: var(--blue); }
.stat-icon.red    { background: var(--danger-100);  color: var(--danger); }
.stat-icon.purple { background: var(--purple-100);  color: var(--purple); }

.stat-info { flex: 1; min-width: 0; }
.stat-value { font-size: 1.45rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; margin-top: 3px; }

/* ─── Tables ─── */
.table-container { overflow-x: auto; border-radius: var(--radius-md); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
table thead th {
    background: linear-gradient(135deg, var(--forest-dark), var(--forest));
    color: #fff;
    padding: 12px 13px;
    text-align: right;
    font-weight: 600;
    font-size: 0.72rem;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
table thead th:first-child { text-align: center; border-radius: 8px 0 0 0; }
table thead th:last-child  { border-radius: 0 8px 0 0; }
table tbody td {
    padding: 11px 13px;
    text-align: right;
    border-bottom: 1px solid rgba(187,247,208,0.45);
    vertical-align: middle;
}
table tbody tr { transition: background var(--transition-fast); }
table tbody tr:nth-child(even) { background: rgba(240,253,244,0.55); }
table tbody tr:hover { background: rgba(220,252,231,0.65); }
table tbody tr:last-child td { border-bottom: none; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 18px;
    border: none; border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.84rem; font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none; white-space: nowrap;
    position: relative; overflow: hidden;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 2px 10px rgba(22,163,74,0.30);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--forest), var(--primary));
    box-shadow: 0 4px 18px rgba(22,163,74,0.42);
    color: #fff; transform: translateY(-1px);
}
.btn-gold {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 2px 10px rgba(245,158,11,0.28);
}
.btn-gold:hover { box-shadow: 0 4px 18px rgba(245,158,11,0.4); color:#fff; transform:translateY(-1px); }
.btn-success {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 2px 10px rgba(22,163,74,0.30);
}
.btn-success:hover { box-shadow: 0 4px 18px rgba(22,163,74,0.42); color:#fff; transform:translateY(-1px); }
.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-light));
    color: #fff;
    box-shadow: 0 2px 10px rgba(239,68,68,0.28);
}
.btn-danger:hover { box-shadow: 0 4px 18px rgba(239,68,68,0.4); color:#fff; transform:translateY(-1px); }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-gold {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent-dark);
}
.btn-outline-gold:hover { background: var(--accent); color: #fff; }
.btn-light {
    background: var(--primary-50);
    color: var(--text-secondary);
    border: 1px solid rgba(187,247,208,0.7);
}
.btn-light:hover { background: var(--primary-100); }
.btn-sm  { padding: 7px 13px; font-size: 0.76rem; border-radius: 8px; min-height: 36px; }
.btn-lg  { padding: 13px 26px; font-size: 0.96rem; border-radius: var(--radius-md); min-height: 52px; }
.btn-icon{ width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Forms ─── */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.82rem; font-weight: 600;
    color: var(--forest);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(187,247,208,0.8);
    border-radius: var(--radius-sm);
    font-family: inherit; font-size: 1rem;
    color: var(--text-primary);
    background: #fff;
    transition: all var(--transition-fast);
    min-height: 48px;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2316a34a'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    padding-left: 14px;
}
textarea.form-control { resize: vertical; min-height: 90px; }
.form-help  { font-size: 0.73rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.73rem; color: var(--danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ─── Badges ─── */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.2px;
}
.badge-success { background: var(--primary-100); color: var(--primary-dark); }
.badge-warning { background: var(--accent-100);  color: var(--accent-dark); }
.badge-danger  { background: var(--danger-100);  color: var(--danger); }
.badge-info    { background: var(--blue-100);    color: var(--blue); }
.badge-purple  { background: var(--purple-100);  color: var(--purple); }
.badge-gray    { background: var(--border-light); color: var(--text-secondary); }

/* ─── Alerts ─── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px;
    font-size: 0.85rem; font-weight: 500;
    animation: slideDown 0.4s var(--ease-spring);
    position: relative;
    border-right: 3px solid transparent;
}
.alert-success { background: var(--primary-50);  color: var(--primary-dark);  border-right-color: var(--primary); }
.alert-error   { background: var(--danger-50);   color: var(--danger);        border-right-color: var(--danger); }
.alert-warning { background: var(--accent-50);   color: var(--accent-dark);   border-right-color: var(--accent); }
.alert-info    { background: var(--blue-50);     color: var(--blue);          border-right-color: var(--blue); }
.alert-close {
    margin-right: auto; background: none; border: none;
    font-size: 1.1rem; cursor: pointer; opacity: 0.5; color: inherit;
    min-width: 30px; min-height: 30px; display: flex; align-items: center; justify-content: center;
}
.alert-close:hover { opacity: 1; }

/* ─── Modal — bottom-sheet on mobile ─── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(2,44,34,0.48);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all var(--transition-normal);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: #fff;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    max-width: 640px; width: 100%; max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 -8px 40px rgba(6,78,59,0.22);
    transform: translateY(50px);
    transition: transform var(--transition-normal);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(187,247,208,0.5);
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; background: #fff; z-index: 1;
}
/* drag handle */
.modal-header::before {
    content: '';
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 38px; height: 4px; background: var(--border);
    border-radius: 4px;
}
.modal-header h3 { font-size: 1rem; margin-top: 8px; }
.modal-close {
    background: none; border: none; font-size: 1.2rem;
    cursor: pointer; color: var(--text-muted);
    padding: 6px; border-radius: 8px;
    min-width: 38px; min-height: 38px;
    margin-top: 8px;
}
.modal-close:hover { background: var(--primary-50); }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid rgba(187,247,208,0.5); display: flex; gap: 8px; justify-content: flex-end; }

/* ─── Balance ─── */
.balance-positive { color: var(--primary); font-weight: 700; }
.balance-negative { color: var(--danger); font-weight: 700; }
.balance-zero     { color: var(--text-muted); font-weight: 600; }

/* ─── APK Banner ─── */
.apk-banner {
    background: linear-gradient(135deg, var(--forest), var(--primary));
    color: #fff;
    padding: 10px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 0.82rem;
    animation: slideDown 0.5s var(--ease-out);
}
.apk-banner .btn { background: #fff; color: var(--forest); font-size: 0.75rem; padding: 5px 14px; min-height: 32px; }

/* ─── Login Page ─── */
.login-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #011a10 0%, #022c22 30%, #064e3b 65%, #0a7040 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
/* floating glow orbs */
.login-page::before {
    content: '';
    position: absolute;
    width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(34,197,94,0.11) 0%, transparent 65%);
    top: -200px; right: -180px; border-radius: 50%;
    animation: floatOrb 9s ease-in-out infinite;
}
.login-page::after {
    content: '';
    position: absolute;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 65%);
    bottom: -120px; left: -100px; border-radius: 50%;
    animation: floatOrb 12s ease-in-out infinite reverse;
}
/* Subtle dot grid pattern */
.milk-dots {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
}
/* Floating milk drops */
.milk-drops { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.milk-drop {
    position: absolute;
    background: rgba(255,255,255,0.06);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: dropFloat linear infinite;
}
.milk-drop:nth-child(1){ width:12px; height:16px; left:10%; animation-duration:8s; animation-delay:0s; }
.milk-drop:nth-child(2){ width:8px;  height:11px; left:25%; animation-duration:11s; animation-delay:2s; }
.milk-drop:nth-child(3){ width:16px; height:22px; left:42%; animation-duration:9s;  animation-delay:4s; }
.milk-drop:nth-child(4){ width:10px; height:14px; left:60%; animation-duration:13s; animation-delay:1s; }
.milk-drop:nth-child(5){ width:7px;  height:10px; left:78%; animation-duration:10s; animation-delay:6s; }
.milk-drop:nth-child(6){ width:14px; height:18px; left:88%; animation-duration:7s;  animation-delay:3s; }

.login-container { width: 100%; max-width: 400px; padding: 20px; position: relative; z-index: 1; }

/* Milk illustration above card */
.login-illustration {
    text-align: center;
    margin-bottom: 16px;
}
.login-illustration svg { filter: drop-shadow(0 4px 16px rgba(34,197,94,0.3)); }

.login-card {
    background: rgba(255,255,255,0.98);
    border-radius: var(--radius-2xl);
    padding: 32px 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.38), 0 8px 20px rgba(0,0,0,0.2);
}
.login-logo { text-align: center; margin-bottom: 22px; }
.login-logo .logo-icon {
    width: 76px; height: 76px;
    background: linear-gradient(135deg, var(--forest), var(--primary), var(--accent));
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 13px;
    box-shadow: 0 10px 30px rgba(6,78,59,0.38);
    animation: brandPulse 3s ease-in-out infinite;
}
.login-logo h1 { font-size: 1.45rem; color: var(--text-primary); margin-bottom: 4px; }
.login-logo p  { color: var(--text-muted); font-size: 0.8rem; }
.login-form .form-group { margin-bottom: 15px; }
.login-form .form-control { padding: 13px 14px; }
.login-form .btn-primary { width: 100%; padding: 14px; font-size: 1rem; margin-top: 6px; }
.login-footer { text-align: center; margin-top: 18px; }
.login-footer p { color: var(--text-muted); font-size: 0.78rem; margin-bottom: 4px; }
.login-footer a { font-weight: 600; }
.login-contact {
    margin-top: 20px; text-align: center;
    padding: 16px;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    border: 1px solid rgba(187,247,208,0.8);
}
.login-contact h4 { font-size: 0.85rem; color: var(--forest); margin-bottom: 5px; }
.login-contact p  { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 3px; }
.login-contact .phone-numbers { display: flex; gap: 10px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.login-contact .phone-numbers a {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.8rem; font-weight: 600;
    transition: all var(--transition-fast);
    min-height: 40px;
}
.login-contact .phone-numbers a:hover { background: var(--forest); transform: translateY(-1px); color: #fff; }
.apk-download-login {
    margin-top: 16px; text-align: center;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: var(--radius-md);
    border: 1px solid rgba(187,247,208,0.6);
}
.apk-download-login p { font-size: 0.75rem; color: var(--primary-dark); margin-bottom: 6px; }

/* ─── Dashboard Welcome ─── */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 50%, var(--primary) 100%);
    border-radius: var(--radius-xl);
    padding: 22px 24px;
    color: #fff;
    margin-bottom: 20px;
    position: relative; overflow: hidden;
}
.dashboard-welcome::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px; width: 180px; height: 180px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
/* milk wave decoration */
.dashboard-welcome::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cpath d='M0 18 Q50 4 100 18 Q150 32 200 18 Q250 4 300 18 Q350 32 400 18 L400 28 L0 28 Z' fill='rgba(255,255,255,0.07)'/%3E%3C/svg%3E") no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}
.dashboard-welcome .welcome-emoji {
    position: absolute;
    right: 24px; top: 50%; transform: translateY(-50%);
    font-size: 3.2rem; opacity: 0.2;
}
.dashboard-welcome h2 { color: #fff; font-size: 1.2rem; margin-bottom: 3px; position: relative; }
.dashboard-welcome p  { opacity: 0.82; font-size: 0.83rem; position: relative; }

/* ─── Dashboard Grid ─── */
.dashboard-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.dashboard-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ─── Mini Stats ─── */
.mini-stat {
    padding: 14px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform var(--transition-fast);
}
.mini-stat:hover { transform: scale(1.03); }
.mini-stat-value { font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.mini-stat-label { font-size: 0.68rem; margin-top: 2px; opacity: 0.85; }
.mini-stat.green  { background: var(--primary-100); }
.mini-stat.green  .mini-stat-value { color: var(--primary-dark); }
.mini-stat.green  .mini-stat-label { color: var(--primary); }
.mini-stat.blue   { background: var(--blue-100); }
.mini-stat.blue   .mini-stat-value { color: var(--blue); }
.mini-stat.blue   .mini-stat-label { color: var(--blue-light); }
.mini-stat.gold   { background: var(--accent-100); }
.mini-stat.gold   .mini-stat-value { color: var(--accent-dark); }
.mini-stat.gold   .mini-stat-label { color: var(--accent); }
.mini-stat.red    { background: var(--danger-100); }
.mini-stat.red    .mini-stat-value { color: var(--danger); }
.mini-stat.red    .mini-stat-label { color: var(--danger-light); }
.mini-stat.purple { background: var(--purple-100); }
.mini-stat.purple .mini-stat-value { color: var(--purple); }
.mini-stat.purple .mini-stat-label { color: #a78bfa; }

/* ─── Quick Actions ─── */
.quick-actions { display: flex; flex-direction: column; gap: 8px; }
.quick-action-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    font-weight: 600; font-size: 0.875rem;
    transition: all var(--transition-fast);
    border: none; cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    color: #fff;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}
.quick-action-btn:hover { transform: translateX(4px); box-shadow: var(--shadow-md); color: #fff; }
.quick-action-btn i { font-size: 1rem; width: 20px; text-align: center; }
.quick-action-btn.green        { background: linear-gradient(135deg, var(--forest), var(--primary)); }
.quick-action-btn.gold         { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.quick-action-btn.outline-green{ background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.quick-action-btn.outline-green:hover { background: var(--primary); color: #fff; }
.quick-action-btn.light        { background: var(--primary-50); color: var(--text-secondary); border: 1px solid rgba(187,247,208,0.6); }
.quick-action-btn.light:hover  { background: var(--primary-100); color: var(--text-primary); }
.quick-action-btn.red          { background: linear-gradient(135deg, var(--danger), var(--danger-light)); }

/* ─── Provider Cards ─── */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.provider-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid rgba(187,247,208,0.5);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-normal);
    display: flex; flex-direction: column; gap: 10px;
}
.provider-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-200); transform: translateY(-2px); }
.provider-card-header { display: flex; align-items: center; justify-content: space-between; }
.provider-name  { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.provider-mobile{ font-size: 0.75rem; color: var(--text-muted); }
.provider-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.provider-stat  { text-align: center; padding: 8px; background: var(--primary-50); border-radius: var(--radius-sm); }
.provider-stat-value { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.provider-stat-label { font-size: 0.62rem; color: var(--text-muted); margin-top: 2px; }
.provider-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ─── Empty State ─── */
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state i    { font-size: 2.8rem; margin-bottom: 14px; color: var(--primary-200); }
.empty-state h3   { color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p    { font-size: 0.85rem; margin-bottom: 18px; }

/* ─── Filter Bar ─── */
.filter-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    border: 1px solid rgba(187,247,208,0.5);
}
.filter-bar .form-control { max-width: 200px; padding: 9px 12px; font-size: 0.84rem; min-height: 40px; }
.filter-bar label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); }

/* ─── Permission Grid ─── */
.permission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.permission-item {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px;
    background: var(--primary-50);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1.5px solid transparent;
    min-height: 46px;
}
.permission-item:hover { border-color: var(--primary-200); background: var(--primary-100); }
.permission-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.permission-item label { font-size: 0.82rem; cursor: pointer; font-weight: 500; }

/* ─── Subscription Card ─── */
.sub-status-card { padding: 20px; border-radius: var(--radius-lg); text-align: center; }
.sub-status-card.active    { background: linear-gradient(135deg, var(--primary-50), var(--primary-100)); border: 1.5px solid var(--primary-200); }
.sub-status-card.expired   { background: linear-gradient(135deg, var(--danger-50), var(--danger-100)); border: 1.5px solid var(--danger); }
.sub-status-card.trial     { background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); border: 1.5px solid var(--blue); }
.sub-status-card.suspended { background: linear-gradient(135deg, var(--accent-50), var(--accent-100)); border: 1.5px solid var(--accent); }

/* ─── Charts ─── */
.chart-container { position: relative; height: 260px; width: 100%; }

/* ─── Page Header ─── */
.page-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.page-header-info h2 { display: flex; align-items: center; gap: 8px; }
.page-header-info p  { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Bottom Navigation ─── */
.bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1.5px solid rgba(187,247,208,0.8);
    z-index: 1001;
    padding: 0 4px 10px;
    box-shadow: 0 -4px 24px rgba(6,78,59,0.1);
}
.bottom-nav-items {
    display: flex; justify-content: space-around;
    height: 100%; list-style: none;
    align-items: stretch;
}
.bottom-nav-items a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.62rem; font-weight: 600;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    min-width: 52px;
    flex: 1;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav-items a i { font-size: 1.3rem; transition: transform var(--transition-fast); }
.bottom-nav-items a.active { color: var(--primary); }
.bottom-nav-items a.active i { transform: translateY(-2px); color: var(--primary); }
.bottom-nav-items a:hover { color: var(--primary); }
/* active indicator pill */
.bottom-nav-items li { position: relative; display: flex; }
.bottom-nav-items a.active::before {
    content: '';
    position: absolute;
    top: 4px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* ─── Animations ─── */
@keyframes slideDown  { from{opacity:0;transform:translateY(-10px);} to{opacity:1;transform:translateY(0);} }
@keyframes contentFade{ from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }
@keyframes brandPulse { 0%,100%{box-shadow:0 6px 20px rgba(6,78,59,0.32);} 50%{box-shadow:0 8px 28px rgba(6,78,59,0.52);} }
@keyframes floatOrb   { 0%,100%{transform:translate(0,0);} 50%{transform:translate(18px,-18px);} }
@keyframes fadeIn     { from{opacity:0;} to{opacity:1;} }
@keyframes countUp    { from{opacity:0;transform:translateY(8px);} to{opacity:1;transform:translateY(0);} }
@keyframes dropFloat  { 0%{transform:translateY(110vh) rotate(0deg);opacity:0;} 10%{opacity:1;} 90%{opacity:1;} 100%{transform:translateY(-10vh) rotate(20deg);opacity:0;} }

.fade-in  { animation: fadeIn  0.5s var(--ease-out); }
.slide-in { animation: slideDown 0.4s var(--ease-spring); }

/* ─── Print ─── */
@media print {
    .sidebar,.topbar,.btn,.filter-bar,.sidebar-toggle,.bottom-nav { display:none !important; }
    .main-content { margin-left:0 !important; }
    .content-area { padding:10px !important; }
    .card { box-shadow:none !important; border:1px solid #ddd !important; }
}

/* ─── Responsive — Tablet ─── */
@media (max-width: 1024px) {
    .stats-grid    { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }
    .provider-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ─── Responsive — Mobile ─── */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; padding-bottom: calc(var(--bottom-nav-height) + 12px); }
    .sidebar-toggle { display: flex; }
    .bottom-nav { display: block; }
    .content-area { padding: 14px; }
    .topbar { padding: 0 12px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
    .stat-card { padding: 14px 12px; flex-direction: column; text-align: center; gap: 8px; }
    .stat-card::after { display: none; }
    .stat-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .stat-value { font-size: 1.2rem; }
    .stat-label { font-size: 0.68rem; }

    .form-row { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar .form-control { max-width: 100%; }
    .provider-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-welcome .welcome-emoji { display: none; }
    .dashboard-welcome { padding: 18px; border-radius: var(--radius-lg); }
    .dashboard-welcome h2 { font-size: 1.1rem; }

    table { font-size: 0.78rem; }
    table thead th { padding: 10px; font-size: 0.68rem; }
    table tbody td { padding: 10px; }

    .btn-group { flex-direction: column; }
    .page-header { gap: 8px; }
    h1 { font-size: 1.2rem; }
    h2 { font-size: 1.05rem; }

    .card-body { padding: 14px; }
    .card-header { padding: 12px 14px; }
    .modal { max-height: 90vh; }
    .login-card { padding: 26px 20px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .dashboard-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .mini-stat { padding: 10px 6px; }
    .mini-stat-value { font-size: 1.05rem; }
    .login-contact .phone-numbers { flex-direction: column; align-items: center; }
    .content-area { padding: 10px; }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(22,163,74,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─── Utilities ─── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-left    { text-align: left; }
.text-green   { color: var(--primary) !important; }
.text-gold    { color: var(--accent-dark) !important; }
.text-red     { color: var(--danger) !important; }
.text-blue    { color: var(--blue) !important; }
.text-gray    { color: var(--text-muted) !important; }
.text-sm      { font-size: 0.8rem; }
.text-xs      { font-size: 0.7rem; }
.text-bold    { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }

/* ─── Subscription Expired ─── */
.expired-page { display: flex; align-items: center; justify-content: center; min-height: 70vh; }
.expired-card {
    text-align: center; max-width: 460px;
    padding: 40px 32px;
    background: #fff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(187,247,208,0.5);
}
.expired-card .expired-icon { font-size: 3.5rem; margin-bottom: 18px; }
.expired-card h2 { color: var(--danger); margin-bottom: 10px; }
.expired-card p  { color: var(--text-secondary); margin-bottom: 20px; line-height: 1.8; }

/* ─── Dark Mode ─── */
[data-theme="dark"] {
    --surface: #0f1f16;
    --surface-elevated: rgba(15,31,22,0.96);
    --surface-glass: rgba(15,31,22,0.76);
    --bg: #080f0a;
    --bg-gradient: linear-gradient(160deg, #060c07 0%, #080f0a 50%, #0a0d06 100%);
    --text-primary: #ecfdf5;
    --text-secondary: #9db8a6;
    --text-muted: #516b5a;
    --border: #1a3325;
    --border-light: #0d1a10;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.35);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.35);
    --shadow-lg: 0 10px 28px rgba(0,0,0,0.55), 0 4px 8px rgba(0,0,0,0.35);
}
[data-theme="dark"] body { background: var(--bg-gradient); }
[data-theme="dark"] .sidebar { background: linear-gradient(180deg, #020806 0%, #040d07 45%, #06100a 100%); }
[data-theme="dark"] .topbar { background: rgba(6,12,8,0.94); border-bottom-color: rgba(26,51,37,0.5); }
[data-theme="dark"] .card { background: var(--surface); border-color: rgba(26,51,37,0.5); }
[data-theme="dark"] .card-header { background: rgba(4,10,6,0.55); border-bottom-color: rgba(26,51,37,0.4); }
[data-theme="dark"] .card-footer { background: rgba(4,10,6,0.35); border-top-color: rgba(26,51,37,0.4); }
[data-theme="dark"] table thead th { background: linear-gradient(135deg, #020806, #030d08); }
[data-theme="dark"] table tbody tr:nth-child(even) { background: rgba(15,31,22,0.5); }
[data-theme="dark"] table tbody tr:hover { background: rgba(22,163,74,0.07); }
[data-theme="dark"] .form-control { background: #0a1810; border-color: rgba(26,51,37,0.65); color: var(--text-primary); }
[data-theme="dark"] .form-control:focus { border-color: var(--primary); background: #0d1f14; }
[data-theme="dark"] .btn-light { background: rgba(26,51,37,0.5); color: var(--text-secondary); border-color: var(--border); }
[data-theme="dark"] .btn-light:hover { background: rgba(26,51,37,0.8); }
[data-theme="dark"] .filter-bar { background: var(--surface); border-color: rgba(26,51,37,0.5); }
[data-theme="dark"] .stat-card { background: var(--surface); border-color: rgba(26,51,37,0.5); }
[data-theme="dark"] .bottom-nav { background: rgba(6,12,8,0.96); border-top-color: rgba(26,51,37,0.65); }
[data-theme="dark"] .bottom-nav-items a.active { color: var(--primary-light); }
[data-theme="dark"] .bottom-nav-items a.active::before { background: var(--primary-light); }
[data-theme="dark"] .bottom-nav-items a:hover { color: var(--primary-light); }
[data-theme="dark"] .alert-success { background: rgba(22,163,74,0.12); }
[data-theme="dark"] .alert-error   { background: rgba(239,68,68,0.12); }
[data-theme="dark"] .alert-warning { background: rgba(245,158,11,0.12); }
[data-theme="dark"] .alert-info    { background: rgba(14,165,233,0.12); }
[data-theme="dark"] .provider-card { background: var(--surface); border-color: rgba(26,51,37,0.5); }
[data-theme="dark"] .provider-stat { background: rgba(26,51,37,0.4); }
[data-theme="dark"] .sidebar-overlay.active { background: rgba(0,0,0,0.72); }
[data-theme="dark"] .login-card { background: rgba(8,20,12,0.98); }
[data-theme="dark"] .login-card h1, [data-theme="dark"] .login-card label { color: var(--text-primary); }
[data-theme="dark"] .expired-card { background: var(--surface); border-color: rgba(26,51,37,0.5); }
[data-theme="dark"] .permission-item { background: rgba(26,51,37,0.4); }
[data-theme="dark"] .permission-item:hover { background: rgba(22,163,74,0.12); }
[data-theme="dark"] .mini-stat.green  { background: rgba(22,163,74,0.14); }
[data-theme="dark"] .mini-stat.blue   { background: rgba(14,165,233,0.14); }
[data-theme="dark"] .mini-stat.gold   { background: rgba(245,158,11,0.14); }
[data-theme="dark"] .mini-stat.red    { background: rgba(239,68,68,0.14); }
[data-theme="dark"] .mini-stat.purple { background: rgba(139,92,246,0.14); }
[data-theme="dark"] .quick-action-btn.outline-green { color: var(--primary-light); }
[data-theme="dark"] .quick-action-btn.light { background: rgba(26,51,37,0.4); color: var(--text-secondary); }
[data-theme="dark"] .modal { background: #0d1a10; }
[data-theme="dark"] .modal-header { background: #0d1a10; border-bottom-color: rgba(26,51,37,0.5); }
[data-theme="dark"] .login-contact { background: rgba(22,163,74,0.08); border-color: rgba(26,51,37,0.6); }
[data-theme="dark"] .apk-download-login { background: rgba(22,163,74,0.1); }
[data-theme="dark"] .dashboard-welcome { background: linear-gradient(135deg, #010d06 0%, #022c22 50%, #064e3b 100%); }
[data-theme="dark"] .sub-status-card.active { background: rgba(22,163,74,0.1); }

/* ─── Dark Toggle ─── */
.dark-toggle {
    background: none;
    border: 1.5px solid rgba(187,247,208,0.45);
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem; color: var(--forest);
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}
.dark-toggle:hover { background: var(--primary-50); color: var(--primary); border-color: var(--primary-200); }
[data-theme="dark"] .dark-toggle { color: var(--primary-light); border-color: rgba(26,51,37,0.65); }

/* ─── Sidebar Overlay ─── */
.sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(2,44,34,0.55);
    backdrop-filter: blur(3px);
    z-index: 999;
    display: none;
    transition: opacity var(--transition-normal);
}
.sidebar-overlay.active { display: block; }

/* ─── Search Result Items ─── */
.search-result-item {
    display: flex; flex-direction: column; gap: 3px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(187,247,208,0.4);
    cursor: pointer;
    transition: background var(--transition-fast);
    color: var(--text-primary);
    min-height: 52px;
}
.search-result-item:hover { background: var(--primary-50); }
.search-result-item strong { font-size: 0.9rem; }
.search-result-item span  { font-size: 0.75rem; color: var(--text-muted); }
