/* Design Tokens - Decor8.ai API Playground */

:root {
  /* Color Palette - Light Theme (Default) */
  --color-bg: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-surface: #ffffff;
  --color-surface-hover: #f8fafc;
  --color-surface-active: #f1f5f9;

  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  --color-border-strong: #cbd5e1;

  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-tertiary: #94a3b8;
  --color-text-inverse: #ffffff;

  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-active: #1e40af;
  --color-primary-subtle: #eff6ff;
  --color-primary-text: #ffffff;

  --color-success: #10b981;
  --color-success-subtle: #ecfdf5;
  --color-success-text: #065f46;

  --color-error: #ef4444;
  --color-error-subtle: #fef2f2;
  --color-error-text: #991b1b;

  --color-warning: #f59e0b;
  --color-warning-subtle: #fffbeb;
  --color-warning-text: #92400e;

  --color-info: #3b82f6;
  --color-info-subtle: #eff6ff;
  --color-info-text: #1e40af;

  /* Sidebar */
  --sidebar-bg: #ffffff;
  --sidebar-border: var(--color-border);
  --sidebar-item-hover: #f1f5f9;
  --sidebar-item-active: #eff6ff;
  --sidebar-item-active-border: var(--color-primary);
  --sidebar-category-text: #64748b;

  /* Code Block */
  --code-bg: #1e293b;
  --code-text: #e2e8f0;
  --code-border: #334155;

  /* Spacing Scale */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Monaco, Consolas, monospace;

  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

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

  /* Border Radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.375rem;  /* 6px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-2xl: 1rem;     /* 16px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

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

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* Layout */
  --header-height: 64px;
  --sidebar-width: 260px;
  --sidebar-width-collapsed: 0px;
  --content-max-width: 1400px;
}

/* Dark Theme */
[data-theme="dark"] {
  --color-bg: #0f172a;
  --color-bg-alt: #1e293b;
  --color-surface: #1e293b;
  --color-surface-hover: #334155;
  --color-surface-active: #475569;

  --color-border: #334155;
  --color-border-subtle: #1e293b;
  --color-border-strong: #475569;

  --color-text: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: #64748b;
  --color-text-inverse: #0f172a;

  --color-primary: #3b82f6;
  --color-primary-hover: #60a5fa;
  --color-primary-active: #2563eb;
  --color-primary-subtle: rgba(59, 130, 246, 0.1);

  --color-success-subtle: rgba(16, 185, 129, 0.1);
  --color-success-text: #34d399;

  --color-error-subtle: rgba(239, 68, 68, 0.1);
  --color-error-text: #f87171;

  --color-warning-subtle: rgba(245, 158, 11, 0.1);
  --color-warning-text: #fbbf24;

  --color-info-subtle: rgba(59, 130, 246, 0.1);
  --color-info-text: #60a5fa;

  /* Sidebar */
  --sidebar-bg: #1e293b;
  --sidebar-border: #334155;
  --sidebar-item-hover: #334155;
  --sidebar-item-active: rgba(59, 130, 246, 0.15);
  --sidebar-category-text: #94a3b8;

  /* Code Block - stays dark */
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --code-border: #334155;
}
