/* ================================================================
   CryptoSetype Design Tokens
   ================================================================
   Dark theme defaults (:root) for public pages.
   Light overrides (.theme-light) for dashboard / admin pages.
   ================================================================ */

:root {
  /* ── Fonts ─────────────────────────────────────────────────── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ── Spacing (4 px base) ───────────────────────────────────── */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* ── Radius ────────────────────────────────────────────────── */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 100px;

  /* ── Shadows ───────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.12);

  /* ── Transitions ───────────────────────────────────────────── */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;

  /* ── Z-index ───────────────────────────────────────────────── */
  --z-dropdown: 50;
  --z-sidebar: 100;
  --z-modal-backdrop: 200;
  --z-modal: 210;
  --z-toast: 300;

  /* ── Typography ────────────────────────────────────────────── */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;

  /* ── Status: Success ───────────────────────────────────────── */
  --color-success: #22c55e;
  --color-success-muted: #166534;
  --color-success-bg: rgba(34, 197, 94, 0.1);

  /* ── Status: Warning ───────────────────────────────────────── */
  --color-warning: #f59e0b;
  --color-warning-muted: #92400e;
  --color-warning-bg: rgba(245, 158, 11, 0.1);

  /* ── Status: Error ─────────────────────────────────────────── */
  --color-error: #ef4444;
  --color-error-muted: #b91c1c;
  --color-error-bg: rgba(239, 68, 68, 0.1);

  /* ── Status: Info ──────────────────────────────────────────── */
  --color-info: #3b82f6;
  --color-info-muted: #1e40af;
  --color-info-bg: rgba(59, 130, 246, 0.1);

  /* ── Dark surfaces (default) ───────────────────────────────── */
  --bg-page: #09090b;
  --bg-surface: #141416;
  --bg-elevated: #1f1f23;
  --bg-hover: #18181b;

  --border-default: #1f1f23;
  --border-subtle: rgba(255, 255, 255, 0.06);

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-inverse: #09090b;

  --input-bg: #09090b;
  --input-border: #27272a;
  --input-focus-border: #52525b;
}

/* ── Light theme overrides (dashboard / admin) ─────────────── */
.theme-light {
  --bg-page: #fafafa;
  --bg-surface: #ffffff;
  --bg-elevated: #f4f4f5;
  --bg-hover: #fafafa;

  --border-default: #e4e4e7;
  --border-subtle: #f4f4f5;

  --text-primary: #09090b;
  --text-secondary: #71717a;
  --text-muted: #a1a1aa;
  --text-inverse: #ffffff;

  --input-bg: #ffffff;
  --input-border: #d4d4d8;
  --input-focus-border: #18181b;
}
