/* CSS design tokens - all custom properties defined here */

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

  /* ── Typography ── */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 13px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 22px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.75;

  /* ── Border radius ── */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

  /* ── Transitions ── */
  --transition-fast: 80ms ease;
  --transition-base: 150ms ease;
  --transition-slow: 300ms ease;

  /* ── Layout ── */
  --sidebar-width: 260px;
  --header-height: 40px;
  --panel-min-width: 320px;

  /* ── Z-index ── */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* ── Colors (defaults to dark theme) ── */
  /* Backgrounds */
  --color-bg-base: #0f1117;
  --color-bg-elevated: #1a1d27;
  --color-bg-overlay: #242736;
  --color-bg-subtle: #2d3148;

  /* Surfaces */
  --color-surface-1: #1a1d27;
  --color-surface-2: #242736;
  --color-surface-3: #2d3148;

  /* Text */
  --color-text-primary: #e2e8f0;
  --color-text-secondary: #94a3b8;
  --color-text-tertiary: #64748b;
  --color-text-disabled: #475569;

  /* Borders */
  --color-border: #2d3148;
  --color-border-subtle: #242736;
  --color-border-strong: #3d4466;

  /* Accent (blue) */
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-accent-muted: rgba(59, 130, 246, 0.15);
  --color-accent-foreground: #ffffff;

  /* Status */
  --color-success: #22c55e;
  --color-success-muted: rgba(34, 197, 94, 0.15);
  --color-warning: #f59e0b;
  --color-warning-muted: rgba(245, 158, 11, 0.15);
  --color-error: #ef4444;
  --color-error-muted: rgba(239, 68, 68, 0.15);
  --color-info: #06b6d4;
  --color-info-muted: rgba(6, 182, 212, 0.15);

  /* HTTP Method colors */
  --color-method-get: #22c55e;
  --color-method-post: #3b82f6;
  --color-method-put: #f59e0b;
  --color-method-patch: #8b5cf6;
  --color-method-delete: #ef4444;
  --color-method-head: #06b6d4;
  --color-method-options: #64748b;

  /* Input */
  --color-input-bg: #1a1d27;
  --color-input-border: #2d3148;
  --color-input-border-focus: #3b82f6;
  --color-input-placeholder: #475569;

  /* JSON syntax highlight (dark defaults) */
  --json-string: #86efac;
  --json-number: #93c5fd;
  --json-boolean: #fbbf24;
  --json-null: #f87171;
  --json-key: #c4b5fd;
}
