/* ==========================================================================
   CSS Design Tokens & Theme Variables
   Reverse-Engineered to match Submind & AllToolsNow aesthetic
   ========================================================================== */

:root {
  /* Core Color Palette */
  --bg-primary: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-secondary: #F1F5F9;
  --bg-surface-tertiary: #E2E8F0;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  /* Theme Accents (Submind Violet) */
  --accent: #7C3AED;
  --accent-hover: #6D28D9;
  --accent-active: #5B21B6;
  --accent-light: #EDE9FE;
  --accent-subtle: rgba(124, 58, 237, 0.08);
  --accent-glow: rgba(124, 58, 237, 0.25);

  /* Status Colors */
  --success: #10B981;
  --success-light: #D1FAE5;
  --success-text: #065F46;
  
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --warning-text: #92400E;
  
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --danger-text: #991B1B;

  /* Borders & Dividers */
  --border: #E2E8F0;
  --border-focus: #7C3AED;
  --separator: #F1F5F9;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Compatibility Aliases with AllToolsNow base.css */
  --color-bg-page: var(--bg-primary);
  --color-bg-surface: var(--bg-surface);
  --color-bg-surface-alt: var(--bg-surface-secondary);
  --color-text-main: var(--text-primary);
  --color-text-muted: var(--text-muted);
  --color-text-subtle: var(--text-secondary);
  --color-border: var(--border);
  --color-primary: var(--accent);
  --color-primary-hover: var(--accent-hover);
  --font-family-sans: var(--font-sans);
  --font-family-mono: var(--font-mono);
  --radius-default: var(--radius-md);
  --cat-audio: var(--accent);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0F172A;
    --bg-surface: #1E293B;
    --bg-surface-secondary: #334155;
    --bg-surface-tertiary: #475569;
    
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-inverse: #0F172A;

    --accent: #8B5CF6;
    --accent-hover: #A78BFA;
    --accent-light: rgba(139, 92, 246, 0.15);
    --accent-subtle: rgba(139, 92, 246, 0.12);
    --accent-glow: rgba(139, 92, 246, 0.35);

    --border: #334155;
    --border-focus: #8B5CF6;
    --separator: #1E293B;

    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.25);
  }
}
