/* ==========================================================================
   ToolWorld Design System — Tokens
   ========================================================================== */

:root {
  /* Brand */
  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-primary-light: #eef2ff;
  --color-accent: #0d9488;
  --color-accent-light: #ecfdf9;

  /* Surfaces */
  --color-bg: #f7f8fb;
  --color-surface: #ffffff;
  --color-surface-2: #f1f3f9;
  --color-border: #e3e6ee;
  --color-border-strong: #cbd0dd;

  /* Text */
  --color-text: #13141f;
  --color-text-muted: #5b6072;
  --color-text-faint: #8a8fa3;
  --color-on-primary: #ffffff;

  /* Status */
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;
  --color-error: #dc2626;
  --color-error-bg: #fef2f2;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(20, 22, 40, 0.06);
  --shadow-md: 0 4px 16px rgba(20, 22, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 22, 40, 0.12);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* Layout */
  --container-width: 1180px;
  --header-height: 68px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
}

[data-theme="dark"] {
  --color-primary: #818cf8;
  --color-primary-hover: #a5b4fc;
  --color-primary-light: #1e1f3a;
  --color-accent: #2dd4bf;
  --color-accent-light: #10312d;

  --color-bg: #0b0c13;
  --color-surface: #14151f;
  --color-surface-2: #1b1d2a;
  --color-border: #272a3a;
  --color-border-strong: #383c52;

  --color-text: #edeef5;
  --color-text-muted: #a3a7ba;
  --color-text-faint: #757a8f;
  --color-on-primary: #10111a;

  --color-success: #4ade80;
  --color-success-bg: #0f2417;
  --color-error: #f87171;
  --color-error-bg: #2a1414;
  --color-warning: #fbbf24;
  --color-warning-bg: #2a2110;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
}
