/* Design tokens (single source of truth)
   - Edit this file to adjust global CI colors, surfaces, typography, and elevation.
   - Themes can override these tokens via :root[data-theme="..."] in theme CSS files. */

:root {
    /* Typography */
    --font-body: 'Manrope', 'Helvetica Neue', 'Segoe UI', sans-serif;
    --font-display: 'Prata', 'Playfair Display', serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

    /* Typography system (optional; use these when you want per-role control) */
    --font-title: var(--font-display);
    --font-subtitle: var(--font-body);
    --font-text: var(--font-body);
    --font-ui: var(--font-body);

    /* Layout */
    --sidebar-width: 252px;
    --sidebar-collapsed: 72px;

    /* Radius scale */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    /* Spacing scale */
    --space-unit: 8px;
    --space-1: calc(var(--space-unit) * 1);
    --space-2: calc(var(--space-unit) * 2);
    --space-3: calc(var(--space-unit) * 3);
    --space-4: calc(var(--space-unit) * 4);
    --space-5: calc(var(--space-unit) * 5);
    --space-6: calc(var(--space-unit) * 6);

    /* Brand */
    --primary: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --secondary: #8b5cf6;
    --secondary-600: #7c3aed;

    /* Status */
    --success: #10b981;
    --danger: #ef4444;
    --danger-600: #dc2626;
    --warning: #f59e0b;

    /* Surfaces */
    --bg: #f9fafb;
    --card: #ffffff;
    --border: #e5e7eb;
    --surface: #f3f4f6;
    --surface-soft: #f8fafc;
    --surface-accent: #eef2ff;

    /* Text */
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-subtle: #9ca3af;

    /* Tints */
    --primary-soft: rgba(59, 130, 246, 0.12);
    --secondary-soft: rgba(139, 92, 246, 0.12);
    --success-soft: rgba(16, 185, 129, 0.12);
    --danger-soft: rgba(239, 68, 68, 0.12);
    --warning-soft: #fef3c7;
    --primary-soft-bg: #eff6ff;
    --info-soft: #e0e7ff;
    --info-text: #1e3a8a;
    --tooltip-bg: rgba(17, 24, 39, 0.94);
    --tooltip-foreground: #f8fafc;
    --tooltip-border: rgba(255, 255, 255, 0.08);

    /* Manual widget palette slots */
    --widget-manual-1: #d9ccb8;
    --widget-manual-1-strong: #bea889;
    --widget-manual-1-soft: rgba(217, 204, 184, 0.28);
    --widget-manual-2: #5865f2;
    --widget-manual-2-strong: #4752c4;
    --widget-manual-2-soft: rgba(88, 101, 242, 0.22);
    --widget-manual-3: #d97706;
    --widget-manual-3-strong: #b85f04;
    --widget-manual-3-soft: rgba(217, 119, 6, 0.22);

    /* Navigation */
    --nav-bg: var(--surface);
    --nav-border: var(--border);
    --nav-link: var(--text-muted);
    --nav-link-hover: var(--text-main);
    --nav-link-hover-bg: var(--surface-soft);
    --nav-link-active: var(--primary);
    --nav-link-active-bg: var(--primary-soft);
    --nav-icon: var(--text-subtle);
    --nav-icon-hover: var(--text-muted);
    --nav-icon-active: var(--primary);
    --nav-section: var(--text-subtle);
    --logo-color: var(--primary);

    /* Elevation */
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 18px 40px rgba(15, 23, 42, 0.12);
}
