/* ═══════════════════════════════════════════════════════════════════════════
   DESELT ADMIN — Unified Design System (Sidebar Layout)
   ═══════════════════════════════════════════════════════════════════════════
   
   Usage:
   1. Add <link href="/css/admin.css" rel="stylesheet" /> to your _Host.cshtml
   2. Add class="admin-theme" to your root element (or body)
   3. Toggle [data-theme="dark"] on that element to switch themes
   
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   CSS Variables — Light Theme (Default)
   ───────────────────────────────────────────────────────────────────────────── */
.admin-theme,
[data-theme="light"] {
    /* Backgrounds — pale, low-contrast for all-day comfort */
    --bg-page: #F4F6F8;
    --bg-card: #FFFFFF;
    --bg-card-alt: #F8F9FB;
    --bg-input: #F8F9FB;
    --bg-hover: #F0F4F8;
    --bg-selected: #EDF2F7;
    
    /* Borders — very subtle */
    --border-default: #E5E9EF;
    --border-light: #F0F2F5;
    --border-input: #D1D8E0;
    --border-focus: #2563EB;
    
    /* Text — comfortable for extended reading */
    --text-primary: #1A2332;
    --text-secondary: #44546A;
    --text-muted: #6B7B8D;
    --text-subtle: #9BA8B7;
    --text-inverse: #FFFFFF;
    
    /* Brand */
    --brand-primary: #1E3A5F;
    --brand-secondary: #0F2744;
    --brand-accent: #2563EB;
    
    /* Status Colors */
    --status-success: #15803D;
    --status-success-bg: #DCFCE7;
    --status-success-border: #BBF7D0;
    
    --status-warning: #D97706;
    --status-warning-bg: #FEF3C7;
    --status-warning-border: #FDE68A;
    
    --status-error: #DC2626;
    --status-error-bg: #FEE2E2;
    --status-error-border: #FECACA;
    
    --status-info: #0891B2;
    --status-info-bg: #ECFEFF;
    --status-info-border: #A5F3FC;
    
    --status-neutral: #64748B;
    --status-neutral-bg: #F1F5F9;
    --status-neutral-border: #E2E8F0;
    
    /* CRM Stages */
    --stage-lead: #EF4444;
    --stage-lead-bg: #FEF2F2;
    --stage-proposal: #8B5CF6;
    --stage-proposal-bg: #F5F3FF;
    --stage-active: #22C55E;
    --stage-active-bg: #F0FDF4;
    --stage-hold: #F59E0B;
    --stage-hold-bg: #FFFBEB;
    --stage-completed: #06B6D4;
    --stage-completed-bg: #ECFEFF;
    
    /* Shadows — minimal, flat */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-card: none;
    
    /* Sidebar */
    --sidebar-width: 210px;
    --sidebar-bg: linear-gradient(180deg, #1E3A5F 0%, #152D4A 100%);
    
    /* Overlay */
    --overlay-bg: rgba(0,0,0,0.45);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CSS Variables — Dark Theme
   ───────────────────────────────────────────────────────────────────────────── */
[data-theme="dark"] {
    /* Backgrounds — slightly warmer dark for comfort */
    --bg-page: #111827;
    --bg-card: #1C2536;
    --bg-card-alt: #2A3548;
    --bg-input: #2A3548;
    --bg-hover: #2A3548;
    --bg-selected: #1E3A5F;
    
    /* Borders */
    --border-default: #2A3548;
    --border-light: #1E2B3E;
    --border-input: #3D4F65;
    --border-focus: #3B82F6;
    
    /* Text — slightly softened for dark bg comfort */
    --text-primary: #E8ECF1;
    --text-secondary: #B8C4D0;
    --text-muted: #8696A7;
    --text-subtle: #5E7086;
    --text-inverse: #1A2332;
    
    /* Brand */
    --brand-primary: #1E3A5F;
    --brand-secondary: #0F2744;
    --brand-accent: #3B82F6;
    
    /* Status Colors */
    --status-success: #4ADE80;
    --status-success-bg: rgba(34,197,94,0.15);
    --status-success-border: rgba(34,197,94,0.3);
    
    --status-warning: #FBBF24;
    --status-warning-bg: rgba(245,158,11,0.15);
    --status-warning-border: rgba(245,158,11,0.3);
    
    --status-error: #F87171;
    --status-error-bg: rgba(239,68,68,0.15);
    --status-error-border: rgba(239,68,68,0.3);
    
    --status-info: #22D3EE;
    --status-info-bg: rgba(6,182,212,0.15);
    --status-info-border: rgba(6,182,212,0.3);
    
    --status-neutral: #94A3B8;
    --status-neutral-bg: rgba(100,116,139,0.15);
    --status-neutral-border: rgba(100,116,139,0.3);
    
    /* CRM Stages */
    --stage-lead: #F87171;
    --stage-lead-bg: rgba(239,68,68,0.15);
    --stage-proposal: #A78BFA;
    --stage-proposal-bg: rgba(139,92,246,0.15);
    --stage-active: #4ADE80;
    --stage-active-bg: rgba(34,197,94,0.15);
    --stage-hold: #FBBF24;
    --stage-hold-bg: rgba(245,158,11,0.15);
    --stage-completed: #22D3EE;
    --stage-completed-bg: rgba(6,182,212,0.15);
    
    /* Shadows — minimal in dark */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.15);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.3);
    --shadow-card: none;
    
    /* Sidebar */
    --sidebar-bg: linear-gradient(180deg, #131D2F 0%, #0E1726 100%);
    
    /* Overlay */
    --overlay-bg: rgba(0,0,0,0.7);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Typography
   ───────────────────────────────────────────────────────────────────────────── */
.admin-theme {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-mono {
    font-family: 'IBM Plex Mono', 'SF Mono', 'Consolas', monospace;
}

.admin-h1 { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); margin: 0; line-height: 1.2; }
.admin-h2 { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin: 0; line-height: 1.3; }
.admin-h3 { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin: 0; }

.admin-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px; font-weight: 700; color: var(--text-subtle);
    text-transform: uppercase; letter-spacing: 1.5px;
}

.admin-breadcrumb {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; color: var(--text-muted); letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 4px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Layout — Sidebar + Main Content
   ───────────────────────────────────────────────────────────────────────────── */
.admin-page {
    min-height: 100vh;
    background: var(--bg-page);
    display: flex;
    transition: background-color 0.2s ease;
}

.admin-main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 28px 32px;
    max-width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    overflow-x: hidden;
}

.admin-content {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LEFT SIDEBAR NAVIGATION
   ───────────────────────────────────────────────────────────────────────────── */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1200;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
    overflow: visible;
}

/* Brand */
.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 16px;
    text-decoration: none;
    flex-shrink: 0;
}

.admin-sidebar-logo {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-sidebar-title {
    color: white;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Navigation Links */
.admin-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 0;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    font-family: 'IBM Plex Sans', sans-serif;
    transition: all 0.12s ease;
    white-space: nowrap;
    border-left: 3px solid transparent;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.admin-sidebar-link:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.06);
}

.admin-sidebar-link.active {
    color: white;
    background: rgba(59,130,246,0.18);
    border-left-color: #3B82F6;
    font-weight: 600;
}

button.admin-sidebar-toggle {
    border-left: 3px solid transparent;
}

/* ─── Accordion Sections ─── */
.admin-sidebar-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0,0,0,0.15);
    padding-left: 0;
    counter-reset: sidebar-step;
}

.admin-sidebar-section.open > .admin-sidebar-sub {
    max-height: 800px;
    padding-top: 4px;
    padding-bottom: 8px;
}

/* ─ Sub-link items with dot indicator ─ */
.admin-sidebar-sub-link {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px 16px 6px 30px;
    color: rgba(255,255,255,0.5);
    font-size: 12.5px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.12s ease;
    position: relative;
    margin: 0 8px;
    border-radius: 5px;
}

/* dot indicator */
.admin-sidebar-sub-link::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    margin-right: 10px;
    flex-shrink: 0;
    transition: all 0.12s ease;
}

.admin-sidebar-sub-link:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.06);
}

.admin-sidebar-sub-link:hover::before {
    background: rgba(255,255,255,0.5);
}

.admin-sidebar-sub-link.active {
    color: #93C5FD;
    font-weight: 600;
    background: rgba(59,130,246,0.12);
}

.admin-sidebar-sub-link.active::before {
    background: #3B82F6;
    box-shadow: 0 0 6px rgba(59,130,246,0.5);
}

/* ─ Sub-group with numbered badge ─ */
.admin-sidebar-sub-group {
    margin-top: 0;
    padding-top: 2px;
}

.admin-sidebar-sub-group + .admin-sidebar-sub-group {
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 6px;
}

.admin-sidebar-sub-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 4px 30px;
    margin: 0 8px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.25);
    user-select: none;
}

/* Small step number badge on group labels */
.admin-sidebar-sub-label::before {
    counter-increment: sidebar-step;
    content: counter(sidebar-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 4px;
    background: rgba(255,255,255,0.07);
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
    font-family: 'IBM Plex Mono', monospace;
}

/* Sidebar Footer / User */
.admin-sidebar-footer {
    padding: 12px 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.admin-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
}

.admin-sidebar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.12);
    position: relative;
}

.admin-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.admin-sidebar-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255,255,255,0.8);
    font-weight: 700;
    font-size: 13px;
    position: absolute;
    top: 0;
    left: 0;
}

.admin-sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.admin-sidebar-user-name {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

.admin-sidebar-logout {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    text-decoration: none;
    display: block;
    line-height: 1.2;
}

.admin-sidebar-logout:hover {
    color: rgba(255,255,255,0.7);
}

.admin-sidebar-toggle-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
    transition: all 0.12s;
}

.admin-sidebar-toggle-btn:hover {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}

/* ─────────────────────────────────────────────────────────────────────────────
   DASHBOARD SPECIFIC STYLES
   ───────────────────────────────────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════════════
   Dashboard — Pale, flat, conservative. Comfortable for all-day use.
   ═══════════════════════════════════════════════════════════════════════════ */

.dash-wrapper {
    width: 100%;
}

/* Header */
.dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.dash-greeting {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.dash-date {
    color: var(--text-subtle);
    font-size: 12.5px;
    margin-top: 3px;
}

.dash-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dash-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: 'IBM Plex Sans', sans-serif;
    cursor: pointer;
    border: 1px solid var(--brand-primary);
    background: var(--brand-primary);
    color: white;
    transition: all 0.15s;
    white-space: nowrap;
}

.dash-btn-add:hover {
    background: #2A4A70;
}

.dash-btn-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border-default);
    background: var(--bg-card);
    color: var(--text-subtle);
    cursor: pointer;
    transition: all 0.15s;
}

.dash-btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

/* ── Metrics Row ── */
.dash-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.dash-metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 16px 18px;
    transition: border-color 0.15s;
}

.dash-metric-card.admin-card-clickable { cursor: pointer; }
.dash-metric-card.admin-card-clickable:hover { border-color: var(--text-subtle); }

.dash-metric-label {
    font-size: 11px;
    color: var(--text-subtle);
    font-weight: 500;
    margin-bottom: 6px;
}

.dash-metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.dash-metric-unit {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.dash-metric-sub {
    font-size: 11px;
    color: var(--text-subtle);
    margin-top: 4px;
}

/* ── 3-Column Grid ── */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 0.7fr;
    gap: 14px;
    align-items: start;
}

.dash-col-left,
.dash-col-middle,
.dash-col-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Cards — flat, minimal shadow ── */
.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.2s, border-color 0.2s;
}

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

.dash-card-icon {
    width: 14px;
    height: 14px;
    opacity: 0.35;
    flex-shrink: 0;
}

.dash-card-title {
    font-size: 12.5px;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
}

.dash-card-body {
    padding: 14px 18px;
}

.dash-card-footer-info {
    padding: 10px 18px;
    border-top: 1px solid var(--border-light);
    font-size: 11px;
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Lead List ── */
.dash-lead-list {
    display: flex;
    flex-direction: column;
}

.dash-lead-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    text-decoration: none;
    border-top: 1px solid var(--border-light);
    transition: background 0.1s;
}

.dash-lead-row:first-child { border-top: none; }
.dash-lead-row:hover { background: var(--bg-hover); }

.dash-lead-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-subtle);
    flex-shrink: 0;
    opacity: 0.3;
}

.dash-lead-indicator.unread {
    background: var(--brand-accent);
    opacity: 1;
}

.dash-lead-info {
    flex: 1;
    min-width: 0;
}

.dash-lead-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-lead-email {
    font-size: 11px;
    color: var(--text-subtle);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-lead-time {
    font-size: 11px;
    color: var(--text-subtle);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Newsletter Stats ── */
.dash-stat-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.dash-stat-block {
    flex: 1;
    text-align: center;
    padding: 4px 0;
}

.dash-stat-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.dash-stat-num.warn {
    color: var(--status-warning);
}

.dash-stat-desc {
    font-size: 11px;
    color: var(--text-subtle);
    margin-top: 2px;
}

.dash-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-default);
    flex-shrink: 0;
    margin: 0 4px;
}

/* ── Project Cards (clickable) ── */
.dash-proj-list {
    display: flex;
    flex-direction: column;
}

.dash-proj-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    text-decoration: none;
    border-top: 1px solid var(--border-light);
    transition: background 0.1s;
    cursor: pointer;
    color: inherit;
}

.dash-proj-card:first-child { border-top: none; }
.dash-proj-card:hover { background: var(--bg-hover); }

.dash-proj-accent {
    width: 3px;
    flex-shrink: 0;
    border-radius: 0;
}

.dash-proj-body {
    flex: 1;
    min-width: 0;
    padding: 14px 12px 14px 14px;
}

.dash-proj-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.dash-proj-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-proj-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dash-proj-client {
    font-size: 11px;
    color: var(--text-subtle);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-proj-progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.dash-proj-pct {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    min-width: 28px;
    text-align: right;
}

.dash-proj-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.dash-proj-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-subtle);
}

.dash-proj-meta-item.overdue {
    color: var(--status-error);
    font-weight: 600;
}

.dash-proj-meta-item.soon {
    color: var(--status-warning);
    font-weight: 500;
}

.dash-proj-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-subtle);
    opacity: 0.25;
    flex-shrink: 0;
    align-self: center;
    margin-right: 14px;
    transition: opacity 0.1s;
}

.dash-proj-card:hover .dash-proj-chevron { opacity: 0.6; }

.dash-progress-track {
    height: 4px;
    background: var(--border-default);
    border-radius: 2px;
    overflow: hidden;
}

[data-theme="dark"] .dash-progress-track {
    background: rgba(255,255,255,0.08);
}

.dash-progress-fill {
    height: 100%;
    background: var(--brand-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ── Invoice Grid ── */
.dash-invoice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.dash-invoice-stat {
    text-align: center;
    padding: 4px 0;
}

.dash-invoice-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.dash-invoice-stat-value.dash-val-error {
    color: var(--status-error);
}

.dash-invoice-stat-label {
    font-size: 11px;
    color: var(--text-subtle);
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.dash-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── System Status ── */
.dash-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.dash-status-icon.ok {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.dash-status-icon.error {
    background: var(--status-error-bg);
    color: var(--status-error);
}

.dash-status-text {
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 10px;
}

.dash-status-text.ok { color: var(--status-success); }
.dash-status-text.error { color: var(--status-error); }

.dash-status-detail {
    font-size: 11px;
    color: var(--text-subtle);
    margin-top: 4px;
}

/* ── Quick Actions ── */
.dash-actions {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dash-action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-radius: 5px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12.5px;
    transition: all 0.1s;
}

.dash-action-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dash-action-icon {
    width: 14px;
    height: 14px;
    opacity: 0.4;
    flex-shrink: 0;
}

/* ── Alert Banners ── */
.dash-alerts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.dash-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.1s;
}

.dash-alert:hover { opacity: 0.85; }

.dash-alert-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.dash-alert-content {
    flex: 1;
    min-width: 0;
}

.dash-alert-title {
    font-size: 12.5px;
    font-weight: 600;
    display: block;
}

.dash-alert-sub {
    font-size: 11px;
    display: block;
    margin-top: 1px;
    opacity: 0.7;
}

.dash-alert-error {
    background: var(--status-error-bg);
    border: 1px solid var(--status-error-border);
    color: var(--status-error);
}

.dash-alert-warn {
    background: var(--status-warning-bg);
    border: 1px solid var(--status-warning-border);
    color: var(--status-warning);
}

/* ── IT Ops Panel Items ── */
.dash-ops-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.dash-ops-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-ops-indicator.ok { background: var(--status-success); }
.dash-ops-indicator.warn { background: var(--status-warning); }
.dash-ops-indicator.error { background: var(--status-error); }
.dash-ops-indicator.neutral { background: var(--text-subtle); opacity: 0.4; }

.dash-ops-info {
    flex: 1;
    min-width: 0;
}

.dash-ops-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
}

.dash-ops-value {
    font-size: 11px;
    color: var(--text-subtle);
    display: block;
    margin-top: 1px;
}

.dash-ops-bad { color: var(--status-error); font-weight: 600; }
.dash-ops-warn { color: var(--status-warning); font-weight: 600; }

.dash-ops-link {
    font-size: 14px;
    color: var(--text-subtle);
    text-decoration: none;
    flex-shrink: 0;
    padding: 4px;
    opacity: 0.4;
    transition: opacity 0.1s;
}

.dash-ops-item:hover .dash-ops-link { opacity: 1; }

/* ── Activity Feed ── */
.dash-activity-list {
    display: flex;
    flex-direction: column;
}

.dash-activity-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 18px;
    border-top: 1px solid var(--border-light);
}

.dash-activity-row:first-child { border-top: none; }

.dash-activity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.dash-activity-info {
    flex: 1;
    min-width: 0;
}

.dash-activity-title {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-activity-sub {
    font-size: 11px;
    color: var(--text-subtle);
    margin-top: 1px;
}

.dash-activity-time {
    font-size: 11px;
    color: var(--text-subtle);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Cards (Global)
   ───────────────────────────────────────────────────────────────────────────── */
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: background-color 0.2s, border-color 0.2s;
}

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

.admin-card-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-body { padding: 20px; }
.admin-card-footer { padding: 16px 20px; border-top: 1px solid var(--border-light); }

.admin-card-clickable { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.admin-card-clickable:hover { border-color: var(--brand-accent); box-shadow: var(--shadow-md); }

/* ─────────────────────────────────────────────────────────────────────────────
   Stat Cards
   ───────────────────────────────────────────────────────────────────────────── */
.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.admin-stat-card.primary {
    background: linear-gradient(135deg, #1E3A5F 0%, #0F2744 100%);
    border: none;
}

.admin-stat-card.primary .admin-stat-label { color: rgba(255,255,255,0.5); }
.admin-stat-card.primary .admin-stat-value { color: white; }
.admin-stat-card.primary .admin-stat-sub { color: rgba(255,255,255,0.5); }

.admin-stat-card.accent-success { border-left: 4px solid var(--status-success); }
.admin-stat-card.accent-warning { border-left: 4px solid var(--status-warning); }
.admin-stat-card.accent-error { border-left: 4px solid var(--status-error); }
.admin-stat-card.accent-info { border-left: 4px solid var(--status-info); }
.admin-stat-card.accent-primary { border-left: 4px solid var(--brand-primary); }

.admin-stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px; color: var(--text-subtle);
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px;
}

.admin-stat-value {
    font-size: 1.6rem; font-weight: 800; color: var(--text-primary);
    line-height: 1; font-variant-numeric: tabular-nums;
}

.admin-stat-value.success { color: var(--status-success); }
.admin-stat-value.warning { color: var(--status-warning); }
.admin-stat-value.error { color: var(--status-error); }

.admin-stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────────────────────── */
.admin-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 10px 18px; border-radius: 8px;
    font-size: 13px; font-weight: 600; font-family: 'IBM Plex Sans', sans-serif;
    cursor: pointer; border: none; transition: all 0.15s; white-space: nowrap;
}

.admin-btn-primary { background: linear-gradient(135deg, #1E3A5F 0%, #0F2744 100%); color: white; }
.admin-btn-primary:hover { background: linear-gradient(135deg, #2A4A70 0%, #1A3755 100%); box-shadow: var(--shadow-md); }
.admin-btn-secondary { background: var(--bg-card-alt); color: var(--text-muted); border: 1px solid var(--border-default); }
.admin-btn-secondary:hover { background: var(--bg-hover); color: var(--text-primary); }
.admin-btn-success { background: var(--status-success); color: white; }
.admin-btn-success:hover { filter: brightness(1.1); }
.admin-btn-danger { background: var(--status-error); color: white; }
.admin-btn-danger:hover { filter: brightness(1.1); }
.admin-btn-ghost { background: transparent; color: var(--text-muted); }
.admin-btn-ghost:hover { background: var(--bg-card-alt); color: var(--text-primary); }
.admin-btn-sm { padding: 6px 12px; font-size: 12px; }
.admin-btn-icon { width: 36px; height: 36px; padding: 0; }

/* ─────────────────────────────────────────────────────────────────────────────
   Forms & Inputs
   ───────────────────────────────────────────────────────────────────────────── */
.admin-input {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--border-input); border-radius: 8px;
    font-size: 13px; font-family: 'IBM Plex Sans', sans-serif;
    background: var(--bg-input); color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-input::placeholder { color: var(--text-subtle); }
.admin-input:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.admin-input:disabled { opacity: 0.6; cursor: not-allowed; }

.admin-select {
    padding: 10px 14px; border: 1px solid var(--border-input); border-radius: 8px;
    font-size: 13px; font-family: 'IBM Plex Sans', sans-serif;
    background: var(--bg-card); color: var(--text-primary); cursor: pointer; min-width: 140px;
}

.admin-textarea { min-height: 100px; resize: vertical; }
.admin-form-label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.admin-form-group { margin-bottom: 16px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Tables
   ───────────────────────────────────────────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead { background: var(--bg-card-alt); }
.admin-table th { padding: 12px 16px; text-align: left; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border-default); }
.admin-table td { padding: 14px 16px; border-top: 1px solid var(--border-light); color: var(--text-secondary); font-size: 13px; }
.admin-table tbody tr { transition: background-color 0.1s; }
.admin-table tbody tr:hover { background: var(--bg-hover); }
.admin-table tbody tr.clickable { cursor: pointer; }

/* ─────────────────────────────────────────────────────────────────────────────
   Status Badges
   ───────────────────────────────────────────────────────────────────────────── */
.admin-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.admin-badge-success { background: var(--status-success-bg); color: var(--status-success); }
.admin-badge-warning { background: var(--status-warning-bg); color: var(--status-warning); }
.admin-badge-error { background: var(--status-error-bg); color: var(--status-error); }
.admin-badge-info { background: var(--status-info-bg); color: var(--status-info); }
.admin-badge-neutral { background: var(--status-neutral-bg); color: var(--status-neutral); }

.admin-badge-lead { background: var(--stage-lead-bg); color: var(--stage-lead); }
.admin-badge-proposal { background: var(--stage-proposal-bg); color: var(--stage-proposal); }
.admin-badge-active { background: var(--stage-active-bg); color: var(--stage-active); }
.admin-badge-hold { background: var(--stage-hold-bg); color: var(--stage-hold); }
.admin-badge-completed { background: var(--stage-completed-bg); color: var(--stage-completed); }

/* ─────────────────────────────────────────────────────────────────────────────
   Kanban Board
   ───────────────────────────────────────────────────────────────────────────── */
.admin-kanban { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: start; min-height: 70vh; }
.admin-kanban-col { background: var(--bg-card-alt); border: 1px solid var(--border-default); border-radius: 12px; min-height: 200px; display: flex; flex-direction: column; }
.admin-kanban-header { padding: 12px 14px 10px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.admin-kanban-title { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.admin-kanban-count { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--bg-card); color: var(--text-muted); }
.admin-kanban-cards { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 120px; }
.admin-kanban-cards.drag-over { background: var(--bg-selected); border-radius: 0 0 10px 10px; outline: 2px dashed var(--brand-accent); outline-offset: -4px; }
.admin-kanban-card { background: var(--bg-card); border: 1.5px solid var(--border-default); border-radius: 10px; padding: 12px 14px; cursor: grab; transition: border-color 0.15s, box-shadow 0.15s; }
.admin-kanban-card:hover { border-color: var(--brand-accent); box-shadow: var(--shadow-md); }
.admin-kanban-card.dragging { opacity: 0.4; cursor: grabbing; }
.admin-kanban-card-company { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.admin-kanban-card-name { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: 13px; color: var(--text-primary); margin-bottom: 8px; line-height: 1.3; }
.admin-kanban-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-kanban-add-btn { width: 100%; padding: 8px; border: 1px dashed var(--border-input); border-radius: 8px; background: none; color: var(--text-subtle); font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; cursor: pointer; transition: all 0.15s; }
.admin-kanban-add-btn:hover { border-color: var(--brand-accent); color: var(--brand-accent); background: var(--bg-selected); }

/* ─────────────────────────────────────────────────────────────────────────────
   Modals
   ───────────────────────────────────────────────────────────────────────────── */
.admin-modal-overlay { position: fixed; inset: 0; background: var(--overlay-bg); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.admin-modal { background: var(--bg-card); border-radius: 14px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
.admin-modal-header { padding: 24px 28px 16px; border-bottom: 1px solid var(--border-light); }
.admin-modal-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 0; }
.admin-modal-body { padding: 20px 28px; }
.admin-modal-footer { padding: 16px 28px; border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: 10px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Alerts & Banners
   ───────────────────────────────────────────────────────────────────────────── */
.admin-alert { border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; }
.admin-alert-warning { background: linear-gradient(135deg, var(--status-warning-bg), #FDE68A); border: 1px solid var(--status-warning); }
.admin-alert-error { background: var(--status-error-bg); border: 1px solid var(--status-error-border); }
.admin-alert-success { background: var(--status-success-bg); border: 1px solid var(--status-success-border); }
.admin-alert-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; font-size: 14px; }
.admin-alert-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-alert-link { background: var(--bg-card); padding: 8px 14px; border-radius: 6px; font-size: 12px; text-decoration: none; border: 1px solid rgba(0,0,0,0.1); }

/* ─────────────────────────────────────────────────────────────────────────────
   Loading & Empty States
   ───────────────────────────────────────────────────────────────────────────── */
.admin-loading { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--text-subtle); padding: 80px 40px; }
.admin-loading-text { font-family: 'IBM Plex Mono', monospace; font-size: 13px; }
.admin-empty { padding: 40px; text-align: center; color: var(--text-subtle); font-size: 13px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Chips, Links, Pills
   ───────────────────────────────────────────────────────────────────────────── */
.admin-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 5px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; }
.admin-chip-default { background: var(--status-neutral-bg); color: var(--text-muted); }
.admin-chip-success { background: var(--status-success-bg); color: var(--status-success); border: 1px solid var(--status-success-border); }
.admin-chip-primary { background: var(--bg-selected); color: var(--brand-accent); border: 1px solid var(--brand-accent); }

.admin-link { color: var(--brand-accent); text-decoration: none; font-size: 12px; }
.admin-link:hover { text-decoration: underline; }

.admin-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-pill { font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 20px; border: 1.5px solid var(--border-default); background: transparent; color: var(--text-subtle); cursor: pointer; transition: all 0.15s; }
.admin-pill:hover { border-color: var(--text-muted); color: var(--text-primary); }
.admin-pill.active { border-color: var(--brand-accent); background: var(--bg-selected); color: var(--brand-accent); font-weight: 700; }

/* ─────────────────────────────────────────────────────────────────────────────
   Filter Bar
   ───────────────────────────────────────────────────────────────────────────── */
.admin-filter-bar { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border-default); padding: 12px 16px; margin-bottom: 16px; }
.admin-filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-filter-count { font-size: 12px; color: var(--text-subtle); white-space: nowrap; }
.admin-filter-clear { font-size: 12px; color: var(--text-subtle); background: var(--bg-card-alt); border: none; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.admin-filter-clear:hover { color: var(--text-primary); }

/* ─────────────────────────────────────────────────────────────────────────────
   Dividers
   ───────────────────────────────────────────────────────────────────────────── */
.admin-divider { height: 1px; background: var(--border-light); margin: 16px 0; }

/* ─────────────────────────────────────────────────────────────────────────────
   Grid Helpers
   ───────────────────────────────────────────────────────────────────────────── */
.admin-grid { display: grid; gap: 14px; }
.admin-grid-2 { grid-template-columns: repeat(2, 1fr); }
.admin-grid-3 { grid-template-columns: repeat(3, 1fr); }
.admin-grid-4 { grid-template-columns: repeat(4, 1fr); }
.admin-grid-5 { grid-template-columns: repeat(5, 1fr); }
.admin-grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1400px) {
    .dash-grid { grid-template-columns: 1fr 1fr; }
    .dash-col-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 1200px) {
    .admin-kanban { grid-template-columns: repeat(3, 1fr); }
    .admin-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .admin-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .dash-metrics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .admin-sidebar { width: 60px; }
    .admin-sidebar .admin-sidebar-title,
    .admin-sidebar .admin-sidebar-link span,
    .admin-sidebar .sidebar-chevron,
    .admin-sidebar .admin-sidebar-user-info,
    .admin-sidebar .admin-sidebar-sub { display: none !important; max-height: 0 !important; }
    .admin-sidebar-link { justify-content: center; padding: 10px; border-left: none !important; }
    .admin-sidebar-brand { justify-content: center; padding: 16px 8px; }
    .admin-sidebar-user { justify-content: center; }
    .admin-main-content { margin-left: 60px; max-width: calc(100% - 60px); padding: 20px 16px; }
    
    .dash-grid { grid-template-columns: 1fr; }
    .dash-col-right { grid-template-columns: 1fr; }
    .dash-metrics { grid-template-columns: repeat(2, 1fr); }
    
    .admin-kanban { grid-template-columns: repeat(2, 1fr); }
    .admin-grid-6, .admin-grid-5, .admin-grid-4, .admin-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .admin-kanban { grid-template-columns: 1fr; }
    .admin-grid-6, .admin-grid-5, .admin-grid-4, .admin-grid-3, .admin-grid-2 { grid-template-columns: 1fr; }
    .dash-metrics { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Spacing Utilities
   ───────────────────────────────────────────────────────────────────────────── */
.admin-mb-0 { margin-bottom: 0; }
.admin-mb-1 { margin-bottom: 4px; }
.admin-mb-2 { margin-bottom: 8px; }
.admin-mb-3 { margin-bottom: 12px; }
.admin-mb-4 { margin-bottom: 16px; }
.admin-mb-5 { margin-bottom: 24px; }
.admin-mb-6 { margin-bottom: 32px; }

.admin-mt-0 { margin-top: 0; }
.admin-mt-1 { margin-top: 4px; }
.admin-mt-2 { margin-top: 8px; }
.admin-mt-3 { margin-top: 12px; }
.admin-mt-4 { margin-top: 16px; }

.admin-gap-1 { gap: 4px; }
.admin-gap-2 { gap: 8px; }
.admin-gap-3 { gap: 12px; }
.admin-gap-4 { gap: 16px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Flex & Text Utilities
   ───────────────────────────────────────────────────────────────────────────── */
.admin-flex { display: flex; }
.admin-flex-wrap { flex-wrap: wrap; }
.admin-items-center { align-items: center; }
.admin-justify-between { justify-content: space-between; }
.admin-flex-1 { flex: 1; }

.admin-text-center { text-align: center; }
.admin-text-right { text-align: right; }
.admin-text-muted { color: var(--text-muted); }
.admin-text-subtle { color: var(--text-subtle); }
.admin-text-success { color: var(--status-success); }
.admin-text-warning { color: var(--status-warning); }
.admin-text-error { color: var(--status-error); }
.admin-text-sm { font-size: 12px; }
.admin-text-xs { font-size: 11px; }
.admin-font-bold { font-weight: 700; }
.admin-font-medium { font-weight: 500; }

/* ─────────────────────────────────────────────────────────────────────────────
   Transitions
   ───────────────────────────────────────────────────────────────────────────── */
.admin-transition { transition: all 0.2s ease; }

/* ─────────────────────────────────────────────────────────────────────────────
   Legacy Navbar Support (for non-sidebar pages if needed)
   ───────────────────────────────────────────────────────────────────────────── */
.admin-navbar {
    background: linear-gradient(135deg, #1E3A5F 0%, #0F2744 100%);
    height: 56px; display: flex; align-items: center; padding: 0 24px;
    position: sticky; top: 0; z-index: 1200; box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.admin-dropdown { position: relative; }
.admin-dropdown-menu { position: absolute; top: 100%; left: 0; padding-top: 10px; z-index: 9999; display: none; opacity: 0; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s; }
.admin-dropdown:hover .admin-dropdown-menu { display: block; opacity: 1; transform: translateY(0); }
.admin-dropdown-content { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; min-width: 200px; }
.admin-dropdown-content.wide { min-width: 580px; padding: 0; }
.admin-dropdown-item { display: flex; align-items: center; padding: 8px 12px; border-radius: 6px; color: var(--text-secondary); font-size: 13px; font-weight: 500; text-decoration: none; font-family: 'IBM Plex Sans', sans-serif; gap: 8px; transition: all 0.1s; white-space: nowrap; }
.admin-dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.admin-dropdown-item.primary { background: var(--bg-selected); color: var(--brand-accent); font-weight: 600; }
.admin-dropdown-divider { height: 1px; background: var(--border-light); margin: 6px 8px; }
