/* ============================================================
   Blue Razer Theme (Default)
   Light + Dark mode CSS custom properties
   ============================================================ */

/* ---- Light mode (default) ---- */
:root {
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-sidebar: #0f172a;
    --bg-sidebar-hover: #1e293b;
    --bg-sidebar-active: #3b82f6;

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-sidebar: #e2e8f0;
    --text-sidebar-muted: #64748b;

    /* Borders */
    --border-color: #e2e8f0;
    --border-color-strong: #cbd5e1;

    /* Accent */
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #dbeafe;
    --accent-text: #1d4ed8;

    /* Semantic: success */
    --success: #22c55e;
    --success-light: #dcfce7;
    --success-text: #166534;

    /* Semantic: warning */
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --warning-text: #92400e;

    /* Semantic: danger */
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --danger-text: #991b1b;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Radii (Notion-style rounded) */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;

    /* Sidebar layout */
    --sidebar-width: 210px;
    --sidebar-header-padding: 16px 12px;
    --sidebar-border: 1px solid rgba(255, 255, 255, 0.1);

    /* Logo */
    --logo-size: 36px;
    --logo-font-size: 18px;
    --logo-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);

    /* Navigation items */
    --nav-item-padding: 10px 10px;
    --nav-item-radius: var(--radius-md);
    --nav-font-size: 14px;
    --nav-group-title-size: 11px;

    /* Inputs */
    --input-bg: var(--bg-primary);
    --input-border: 1px solid var(--border-color);
    --input-radius: var(--radius-sm);
    --input-padding: 8px 12px;
    --input-focus-border: var(--accent);
    --input-focus-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);

    /* Cards */
    --card-bg: var(--bg-primary);
    --card-border: 1px solid var(--border-color);
    --card-radius: var(--radius-lg);
    --card-padding: 24px;
    --card-shadow: var(--shadow-sm);

    /* Top bar */
    --topbar-bg: var(--bg-primary);
    --topbar-border: 1px solid var(--border-color);
    --topbar-height: 56px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-base: 14px;
    --line-height: 1.5;
}

/* ---- Dark mode ---- */
[data-theme="dark"] {
    /* Backgrounds */
    --bg-primary: #1e293b;
    --bg-secondary: #0f172a;
    --bg-tertiary: #334155;
    --bg-sidebar: #020617;
    --bg-sidebar-hover: #0f172a;

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;

    /* Borders */
    --border-color: #334155;
    --border-color-strong: #475569;

    /* Accent */
    --accent-light: #1e3a5f;
    --accent-text: #60a5fa;

    /* Semantic overrides */
    --success-light: #14532d;
    --success-text: #4ade80;
    --warning-light: #451a03;
    --warning-text: #fbbf24;
    --danger-light: #450a0a;
    --danger-text: #f87171;

    /* Shadows (heavier in dark mode) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);

    /* Inputs — slightly lighter than bg-tertiary so inputs stay visible on row hover */
    --input-bg: #3d4f66;
    --picker-icon-filter: invert(0.8);

    /* Cards */
    --card-bg: var(--bg-primary);
}
