/* css/base.css — Variables, reset, typography */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg:  #0a0c10;
  --bg2: #0f1218;
  --bg3: #151922;
  --bg4: #1c2130;
  --border:  #232a38;
  --border2: #2d3650;
  --accent:     #3b82f6;
  --accent2:    #60a5fa;
  --accent-dim: rgba(59,130,246,0.12);
  --green:     #22c55e;
  --green-dim: rgba(34,197,94,0.12);
  --yellow:     #f59e0b;
  --yellow-dim: rgba(245,158,11,0.12);
  --red:     #ef4444;
  --red-dim: rgba(239,68,68,0.12);
  --purple:     #a855f7;
  --purple-dim: rgba(168,85,247,0.12);
  --text:  #e2e8f0;
  --text2: #94a3b8;
  --text3: #475569;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── Spinner ────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ────────────────────────────────────────────────────────── */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 20px;
  color: var(--text3);
  font-size: 14px;
}
.empty .icon { font-size: 36px; opacity: .5; }

/* ── Light mode ─────────────────────────────────────────────────────────── */
body.light {
  --bg:  #f0f4f8;
  --bg2: #ffffff;
  --bg3: #f8fafc;
  --bg4: #e2e8f0;
  --border:  #e2e8f0;
  --border2: #cbd5e1;
  --accent:     #2563eb;
  --accent2:    #3b82f6;
  --accent-dim: rgba(37,99,235,0.10);
  --green:     #16a34a;
  --green-dim: rgba(22,163,74,0.10);
  --yellow:     #d97706;
  --yellow-dim: rgba(217,119,6,0.10);
  --red:     #dc2626;
  --red-dim: rgba(220,38,38,0.10);
  --purple:     #9333ea;
  --purple-dim: rgba(147,51,234,0.10);
  --text:  #0f172a;
  --text2: #334155;
  --text3: #64748b;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

body.light ::-webkit-scrollbar-track { background: var(--bg3); }
body.light ::-webkit-scrollbar-thumb { background: var(--border2); }
