﻿/**
 * KLIC Design System &mdash; Centralized Semantic Tokens
 * Single source of truth for color, surfaces, elevation, and theme switches.
 */

:root,
[data-theme="midnight"] {
    /* ─── Base Palette ─── */
    --color-indigo: #6366f1;
    --color-purple: #a855f7;
    --color-cyan: #06b6d4;
    --color-emerald: #10b981;
    --color-rose: #f43f5e;
    --color-amber: #f59e0b;

    /* ─── Semantic Surfaces ─── */
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.85);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);

    /* ─── Typography Colors ─── */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;

    /* ─── Borders & Dividers ─── */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.12);
    --border-focus: rgba(99, 102, 241, 0.5);

    /* ─── Accents & Gradients ─── */
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --accent-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --accent-glow: 0 0 20px rgba(99, 102, 241, 0.35);

    /* ─── Elevation & Shadows ─── */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);

    /* ─── Component Specific ─── */
    --tab-inactive-color: #94a3b8;
    --tab-inactive-hover: #ffffff;
    --tab-active-bg: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --tab-active-color: #ffffff;
}

/* ═══════════════════════════════════════════════
   LIGHT THEME DESIGN TOKENS
   ═══════════════════════════════════════════════ */
[data-theme="light"] {
    /* ─── Semantic Surfaces ─── */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-glass: rgba(0, 0, 0, 0.02);
    --bg-glass-hover: rgba(0, 0, 0, 0.05);

    /* ─── Typography Colors ─── */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    /* ─── Borders & Dividers ─── */
    --border-subtle: #e2e8f0;
    --border-glass: #cbd5e1;
    --border-focus: #6366f1;

    /* ─── Elevation & Shadows ─── */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.04);

    /* ─── Component Specific ─── */
    --tab-inactive-color: #64748b;
    --tab-inactive-hover: #0f172a;
    --tab-active-bg: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --tab-active-color: #ffffff;
}
