/* ═══════════════════════════════════════════════════════════════════════════
   01-settings.css — Design Tokens
   Single source of truth for all visual decisions.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Colors: Dark theme (default) ─────────────────────────────────────── */
  --bg-base:       #1a1a1a;
  --bg-surface:    #242424;
  --bg-elevated:   #2e2e2e;
  --bg-hover:      #363636;
  --bg-active:     #404040;

  --border:        #3a3a3a;
  --border-subtle: #2e2e2e;

  --text-primary:   #ededef;
  --text-secondary: #8a8a8e;
  --text-tertiary:  #767676;

  --accent:        #16B1FF;
  --accent-hover:  #4DC4FF;
  --accent-subtle: rgba(22, 177, 255, 0.1);
  --accent-muted:  rgba(22, 177, 255, 0.18);

  --success:       #1DB800;
  --success-subtle: rgba(29, 184, 0, 0.1);
  --warning:       #FFB800;
  --warning-subtle: rgba(255, 184, 0, 0.1);
  --danger:        #FF4757;
  --danger-subtle: rgba(255, 71, 87, 0.1);
  --info:          #16B1FF;
  --info-subtle:   rgba(22, 177, 255, 0.1);

  /* ── Typography ────────────────────────────────────────────────────────── */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:    0.6875rem;   /* 11px */
  --text-sm:    0.75rem;     /* 12px */
  --text-base:  0.8125rem;   /* 13px */
  --text-md:    0.875rem;    /* 14px */
  --text-lg:    1rem;        /* 16px */
  --text-xl:    1.25rem;     /* 20px */
  --text-2xl:   1.5rem;      /* 24px */
  --text-3xl:   2rem;        /* 32px */

  --leading-tight:  1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;

  /* ── Spacing ───────────────────────────────────────────────────────────── */
  --sp-2xs:  0.125rem;  /* 2px */
  --sp-xs:   0.25rem;   /* 4px */
  --sp-sm:   0.375rem;  /* 6px */
  --sp-md:   0.5rem;    /* 8px */
  --sp-lg:   0.75rem;   /* 12px */
  --sp-xl:   1rem;      /* 16px */
  --sp-2xl:  1.5rem;    /* 24px */
  --sp-3xl:  2rem;      /* 32px */
  --sp-4xl:  3rem;      /* 48px */

  /* ── Border Radius ─────────────────────────────────────────────────────── */
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* ── Shadows ───────────────────────────────────────────────────────────── */
  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl:  0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);

  /* ── Transitions ───────────────────────────────────────────────────────── */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:   120ms;
  --duration-normal: 200ms;
  --duration-slow:   300ms;

  /* ── Layout ────────────────────────────────────────────────────────────── */
  --sidebar-w: 240px;
  --topnav-h:  0px;
  --page-max-w: 1400px;

  /* ── Z-Index ───────────────────────────────────────────────────────────── */
  --z-base:    1;
  --z-sticky:  100;
  --z-drawer:  200;
  --z-overlay: 300;
  --z-modal:   400;
  --z-toast:   500;
}

/* ── Light theme overrides ───────────────────────────────────────────────── */
[data-bs-theme="light"] {
  --bg-base:       #F7F7F7;
  --bg-surface:    #FFFFFF;
  --bg-elevated:   #F0F0F0;
  --bg-hover:      #EBEBEB;
  --bg-active:     #E0E0E0;

  --border:        #E8E8E8;
  --border-subtle: #F0F0F0;

  --text-primary:   #1C1C1C;
  --text-secondary: #585757;
  --text-tertiary:  #969696;

  --accent:        #16B1FF;
  --accent-hover:  #0E9AE6;
  --accent-subtle: rgba(22, 177, 255, 0.08);
  --accent-muted:  rgba(22, 177, 255, 0.14);

  --success:       #1DB800;
  --success-subtle: rgba(29, 184, 0, 0.08);
  --warning:       #FFB800;
  --warning-subtle: rgba(255, 184, 0, 0.08);
  --danger:        #FF4757;
  --danger-subtle: rgba(255, 71, 87, 0.08);
  --info:          #16B1FF;
  --info-subtle:   rgba(22, 177, 255, 0.08);

  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl:  0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}
