:root {
    color-scheme: light;

    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-muted: #f1f5f9;
    --text: #0f172a;
    --text-muted: #475569;
    --text-faint: #64748b;
    --border: #e2e8f0;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-fg: #ffffff;

    --success: #15803d;
    --success-bg: #dcfce7;
    --warning: #b45309;
    --warning-bg: #fef3c7;
    --danger: #b91c1c;
    --danger-bg: #fee2e2;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

[data-theme="light"] {
    color-scheme: light;

    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-muted: #f1f5f9;
    --text: #0f172a;
    --text-muted: #475569;
    --text-faint: #64748b;
    --border: #e2e8f0;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-fg: #ffffff;

    --success: #15803d;
    --success-bg: #dcfce7;
    --warning: #b45309;
    --warning-bg: #fef3c7;
    --danger: #b91c1c;
    --danger-bg: #fee2e2;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] {
    color-scheme: dark;

    --bg: #0b0f19;
    --surface: #131b2e;
    --surface-muted: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-faint: #64748b;
    --border: rgba(255, 255, 255, 0.1);

    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-fg: #ffffff;

    --success: #4ade80;
    --success-bg: rgba(34, 197, 94, 0.15);
    --warning: #fbbf24;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --danger: #f87171;
    --danger-bg: rgba(239, 68, 68, 0.15);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.6);
}
