/*
 * Global Design Tokens
 *
 * Change values here to update the entire application.
 * All templates reference these CSS variables.
 */

:root {
    /* ========== BRAND COLORS ========== */
    --color-accent: #8b5cf6;           /* Violet - primary brand color */
    --color-accent-hover: #7c3aed;     /* Darker violet for hover states */
    --color-accent-light: #a78bfa;     /* Lighter violet for dark mode */
    --color-gradient-from: #8b5cf6;    /* Gradient start color */
    --color-gradient-to: #9333ea;      /* Gradient end color */

    /* ========== SEMANTIC COLORS ========== */
    --color-success: #22c55e;          /* Green - success states */
    --color-success-light: #86efac;
    --color-warning: #f59e0b;          /* Amber - warning states */
    --color-warning-light: #fcd34d;
    --color-error: #ef4444;            /* Red - error states */
    --color-error-light: #fca5a5;
    --color-info: #3b82f6;             /* Blue - info states */

    /* ========== DARK THEME PALETTE ========== */
    --dark-950: #09090b;               /* Darkest - body background */
    --dark-900: #0c0c0f;
    --dark-850: #111114;
    --dark-800: #18181b;               /* Cards, panels */
    --dark-700: #27272a;               /* Borders, dividers */
    --dark-600: #3f3f46;               /* Muted elements */
    --dark-500: #52525b;
    --dark-400: #71717a;               /* Muted text */
    --dark-300: #a1a1aa;
    --dark-200: #d4d4d8;
    --dark-100: #e4e4e7;
    --dark-50: #fafafa;                /* Lightest */

    /* ========== SIDEBAR ========== */
    --sidebar-bg: hsl(240 5.9% 10%);
    --sidebar-fg: hsl(240 4.8% 95.9%);
    --sidebar-accent: hsl(240 3.7% 15.9%);
    --sidebar-border: hsl(240 3.7% 15.9%);

    /* ========== LIGHT THEME (default body) ========== */
    --bg-body: #f9fafb;                /* gray-50 */
    --bg-card: #ffffff;
    --bg-input: #f3f4f6;               /* gray-100 */
    --text-primary: #111827;           /* gray-900 */
    --text-secondary: #6b7280;         /* gray-500 */
    --text-muted: #9ca3af;             /* gray-400 */
    --border-default: #e5e7eb;         /* gray-200 */
    --border-light: #f3f4f6;           /* gray-100 */

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

    /* Font sizes */
    --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 */

    /* Line heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* ========== SPACING ========== */
    --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 */

    /* ========== BORDER RADIUS ========== */
    --radius-sm: 0.25rem;              /* 4px - small buttons, tags */
    --radius-md: 0.375rem;             /* 6px - inputs, small cards */
    --radius-lg: 0.5rem;               /* 8px - cards, modals */
    --radius-xl: 0.75rem;              /* 12px - large cards */
    --radius-2xl: 1rem;                /* 16px - chat bubbles */
    --radius-full: 9999px;             /* Pills, avatars */

    /* ========== 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;
    --transition-normal: 200ms;
    --transition-slow: 300ms;

    /* ========== Z-INDEX SCALE ========== */
    --z-dropdown: 50;
    --z-sticky: 100;
    --z-modal: 200;
    --z-tooltip: 300;
    --z-toast: 400;
}

/* Dark mode overrides (applied when .dark class is on html) */
.dark {
    --bg-body: var(--dark-950);
    --bg-card: var(--dark-800);
    --bg-input: var(--dark-700);
    --text-primary: var(--dark-50);
    --text-secondary: var(--dark-400);
    --text-muted: var(--dark-500);
    --border-default: var(--dark-700);
    --border-light: var(--dark-800);
}

/* ========== THEME PRESETS ========== */
/* Uncomment a theme or create your own */

/* Theme: Ocean Blue */
/*
[data-theme="ocean"] {
    --color-accent: #0ea5e9;
    --color-accent-hover: #0284c7;
    --color-accent-light: #38bdf8;
}
*/

/* Theme: Rose */
/*
[data-theme="rose"] {
    --color-accent: #f43f5e;
    --color-accent-hover: #e11d48;
    --color-accent-light: #fb7185;
}
*/

/* Theme: Emerald */
/*
[data-theme="emerald"] {
    --color-accent: #10b981;
    --color-accent-hover: #059669;
    --color-accent-light: #34d399;
}
*/
