/* ═══════════════════════════════════════════════════════
   DeceptShield — Dashboard Stylesheet
   Theme: Dark Cyber / Tactical
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Variables ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --bg-base:      #090c10;
  --bg-surface:   #0d1117;
  --bg-card:      #161b22;
  --bg-hover:     #1c2333;
  --bg-input:     #0d1117;

  /* Borders */
  --border:       #21262d;
  --border-focus: #388bfd;

  /* Accent */
  --accent:       #00d4aa;
  --accent-dim:   rgba(0, 212, 170, 0.15);
  --accent-glow:  0 0 20px rgba(0, 212, 170, 0.3);

  /* Text */
  --text-primary: #e6edf3;
  --text-muted:   #8b949e;
  --text-subtle:  #484f58;

  /* Status colors */
  --red:     #f85149;
  --orange:  #d29922;
  --yellow:  #e3b341;
  --green:   #3fb950;
  --blue:    #58a6ff;
  --purple:  #bc8cff;
  --cyan:    #39c5cf;

  /* Risk colors */
  --risk-critical: #f85149;
  --risk-high:     #d29922;
  --risk-medium:   #e3b341;
  --risk-low:      #3fb950;
  --risk-info:     #58a6ff;

  /* Sidebar */
  --sidebar-w: 240px;

  /* Fonts */
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --transition: 150ms ease;
}

html, body {
  height: 100%;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Splash Screen ───────────────────────────────────── */
#splash .splash-logo { font-size: 56px; animation: pulse 1.5s ease-in-out infinite; }
#splash .splash-text { font-size: 24px; font-weight: 700; color: var(--accent); letter-spacing: 2px; }
#splash .splash-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ── Auth Pages ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0,212,170,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(88,166,255,0.03) 0%, transparent 50%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.auth-brand { text-align: center; margin-bottom: 32px; }
.auth-brand .brand-icon { font-size: 40px; display: block; margin-bottom: 8px; }
.auth-brand .brand-name { font-size: 22px; font-weight: 700; color: var(--text-primary); display: block; }
.auth-brand .brand-tagline { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.auth-switch { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 13px; }
.auth-switch a { color: var(--accent); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ── Forms ───────────────────────────────────────────── */
.auth-form, .form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(56,139,253,0.15);
}
.form-group textarea { resize: vertical; min-height: 80px; font-family: var(--font-mono); font-size: 12px; }

.input-group { display: flex; }
.input-group input { border-radius: 8px 0 0 8px; }
.input-addon {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  padding: 0 14px;
  cursor: pointer;
  transition: color var(--transition);
}
.input-addon:hover { color: var(--text-primary); }

.form-error {
  background: rgba(248,81,73,0.1);
  border: 1px solid rgba(248,81,73,0.3);
  border-radius: 8px;
  color: var(--red);
  padding: 10px 14px;
  font-size: 13px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover:not(:disabled) {
  background: #00efc0;
  box-shadow: var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) { background: #2d3748; }

.btn-danger {
  background: rgba(248,81,73,0.1);
  color: var(--red);
  border-color: rgba(248,81,73,0.3);
}
.btn-danger:hover:not(:disabled) { background: rgba(248,81,73,0.2); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-hover); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 4px 8px; font-size: 11px; border-radius: 6px; }

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { color: var(--text-primary); background: var(--bg-hover); }

/* ── Dashboard Layout ────────────────────────────────── */
.dashboard-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}
.sidebar-brand .brand-icon { font-size: 24px; }

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 12px 10px 4px;
  margin-top: 4px;
}
.nav-section-label:first-child { margin-top: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}
.nav-item:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-item.active { color: var(--accent); background: var(--accent-dim); }
.nav-item i { width: 16px; text-align: center; }
.nav-badge {
  margin-left: auto;
  color: var(--accent);
  font-size: 10px;
  animation: pulse 1.5s infinite;
}

.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
}
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; truncate: ellipsis; overflow: hidden; white-space: nowrap; }
.user-role { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }

/* ── Main Content ────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-base);
}

/* ── Page Header ─────────────────────────────────────── */
.page-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-title { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Stats Grid ──────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 24px 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.stat-card:hover::before { opacity: 1; }

.stat-label { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); margin: 6px 0 4px; line-height: 1; }
.stat-change { font-size: 12px; color: var(--text-muted); }
.stat-icon {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 20px;
  opacity: 0.15;
}
.stat-card.critical { border-color: rgba(248,81,73,0.3); }
.stat-card.critical .stat-value { color: var(--red); }
.stat-card.warning  { border-color: rgba(210,153,34,0.3); }
.stat-card.warning  .stat-value { color: var(--yellow); }
.stat-card.success  { border-color: rgba(63,185,80,0.3); }
.stat-card.success  .stat-value { color: var(--green); }

/* ── Cards & Panels ──────────────────────────────────── */
.content-grid {
  display: grid;
  gap: 20px;
  padding: 0 28px 28px;
}
.content-grid-2 { grid-template-columns: 1fr 1fr; }
.content-grid-3 { grid-template-columns: 2fr 1fr; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.card-body { padding: 20px; }
.card-body-flush { padding: 0; }

/* ── Tables ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg-surface); }
thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--bg-hover); }

.td-mono { font-family: var(--font-mono); font-size: 12px; }
.td-wrap { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-critical { background: rgba(248,81,73,0.15); color: var(--red); }
.badge-high     { background: rgba(210,153,34,0.15); color: var(--orange); }
.badge-medium   { background: rgba(227,179,65,0.15); color: var(--yellow); }
.badge-low      { background: rgba(63,185,80,0.15);  color: var(--green); }
.badge-info     { background: rgba(88,166,255,0.15); color: var(--blue); }
.badge-active   { background: rgba(63,185,80,0.15);  color: var(--green); }
.badge-inactive { background: rgba(139,148,158,0.15); color: var(--text-muted); }
.badge-blocked  { background: rgba(248,81,73,0.15); color: var(--red); }

/* ── Risk Score Bar ──────────────────────────────────── */
.risk-bar-wrap { display: flex; align-items: center; gap: 8px; }
.risk-bar-track {
  flex: 1;
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  overflow: hidden;
}
.risk-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}
.risk-score-label { font-family: var(--font-mono); font-size: 11px; min-width: 28px; text-align: right; }

/* ── Live Feed ───────────────────────────────────────── */
.live-feed { display: flex; flex-direction: column; gap: 0; max-height: 400px; overflow-y: auto; }
.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  animation: slideIn 0.3s ease;
  transition: background var(--transition);
}
.feed-item:hover { background: var(--bg-hover); }
.feed-item:last-child { border-bottom: none; }
.feed-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.feed-dot-critical { background: var(--red); box-shadow: 0 0 6px var(--red); }
.feed-dot-high     { background: var(--orange); }
.feed-dot-medium   { background: var(--yellow); }
.feed-dot-low      { background: var(--green); }
.feed-dot-info     { background: var(--blue); }

.feed-body { flex: 1; min-width: 0; }
.feed-title { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.feed-meta  { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-family: var(--font-mono); }
.feed-time  { font-size: 11px; color: var(--text-subtle); white-space: nowrap; }

/* ── Charts ──────────────────────────────────────────── */
.chart-wrap { position: relative; }
.chart-wrap canvas { max-height: 240px; }

/* ── Modals ──────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0,0,0,0.6);
  animation: slideUp 0.2s ease;
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 16px; font-weight: 600; }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ── Code / Snippet ──────────────────────────────────── */
.code-block {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-primary);
  overflow-x: auto;
  position: relative;
  white-space: pre;
}
.code-block .copy-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.code-block .copy-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ── Tabs ────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); padding: 0 20px; }
.tab-btn {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Filters ─────────────────────────────────────────── */
.filters {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
}
.filter-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 7px 12px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
}
.filter-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 7px 12px;
  font-size: 13px;
  font-family: var(--font-mono);
  min-width: 180px;
}
.filter-input:focus, .filter-select:focus { outline: none; border-color: var(--border-focus); }

/* ── Empty / Loading States ──────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 40px; opacity: 0.3; margin-bottom: 12px; }
.empty-state .empty-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.empty-state .empty-desc { font-size: 13px; }

.loading-row td { text-align: center; color: var(--text-muted); padding: 32px !important; }

/* ── Alert Banner ────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 28px 16px;
}
.alert-success { background: rgba(63,185,80,0.1); border: 1px solid rgba(63,185,80,0.3); color: var(--green); }
.alert-error   { background: rgba(248,81,73,0.1); border: 1px solid rgba(248,81,73,0.3); color: var(--red); }
.alert-warning { background: rgba(210,153,34,0.1); border: 1px solid rgba(210,153,34,0.3); color: var(--yellow); }

/* ── Toast Notifications ─────────────────────────────── */
#toastContainer {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 280px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: slideIn 0.3s ease;
  font-size: 13px;
}
.toast-success { border-left: 3px solid var(--green); }
.toast-error   { border-left: 3px solid var(--red); }
.toast-warning { border-left: 3px solid var(--yellow); }
.toast-info    { border-left: 3px solid var(--blue); }
.toast-icon    { font-size: 16px; margin-top: 1px; }
.toast-body    { flex: 1; }
.toast-title   { font-weight: 600; margin-bottom: 2px; }
.toast-msg     { color: var(--text-muted); }

/* ── Website Selector ────────────────────────────────── */
.site-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.site-selector label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.site-selector select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 6px 12px;
  font-size: 13px;
  font-family: var(--font-body);
  flex: 1;
  max-width: 320px;
}

/* ── Pagination ──────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.pagination-btns { display: flex; gap: 4px; }
.page-btn {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* ── Utility ─────────────────────────────────────────── */
.text-muted    { color: var(--text-muted); }
.text-accent   { color: var(--accent); }
.text-red      { color: var(--red); }
.text-green    { color: var(--green); }
.text-yellow   { color: var(--yellow); }
.text-mono     { font-family: var(--font-mono); }
.flex          { display: flex; }
.items-center  { align-items: center; }
.gap-8         { gap: 8px; }
.gap-12        { gap: 12px; }
.fw-600        { font-weight: 600; }
.fs-12         { font-size: 12px; }
.fs-11         { font-size: 11px; }

.divider { height: 1px; background: var(--border); margin: 8px 0; }

.section-pad { padding: 0 28px 28px; }

/* ── Animations ──────────────────────────────────────── */
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes pulse    { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideUp  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { width: 56px; min-width: 56px; }
  .sidebar-brand .brand-name,
  .nav-section-label,
  .nav-item span,
  .sidebar-footer .user-info,
  .sidebar-footer .user-name,
  .sidebar-footer .user-role { display: none; }
  .nav-item { justify-content: center; padding: 10px; }
  .content-grid-2, .content-grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header { padding: 16px; }
  .stats-grid, .section-pad, .content-grid { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}
