/* ==========================================================================
   BCMX Design Tokens — CSS Custom Properties
   Shared across all BCMX-powered sites via bcmx-ui submodule
   ========================================================================== */

/* ---------- Light Theme (default) ---------- */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fa;
    --bg-sidebar: #1a1a2e;
    --bg-sidebar-hover: #252545;
    --bg-sidebar-border: #2d2d52;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-sidebar: #a0aec0;
    --text-sidebar-hover: #e2e8f0;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --accent: #1f8dd6;
    --accent-hover: #1a75b5;
    --accent-light: rgba(31, 141, 214, 0.08);
    --table-header-bg: #f0f4f8;
    --table-header-text: #334155;
    --table-row-alt: #f8fafc;
    --table-hover: #eef2f7;
    --table-border: #e2e8f0;
    --status-online-bg: #dcfce7;
    --status-online-text: #166534;
    --status-offline-bg: #fee2e2;
    --status-offline-text: #991b1b;
    --status-active-bg: #dcfce7;
    --btn-primary-bg: #1f8dd6;
    --btn-primary-hover: #1a75b5;
    --btn-danger-bg: #ef4444;
    --btn-danger-hover: #dc2626;
    --btn-neutral-bg: #f1f5f9;
    --btn-neutral-hover: #e2e8f0;
    --btn-neutral-text: #334155;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --sidebar-width: 220px;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    color-scheme: light dark;
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-sidebar: #0c0f1a;
    --bg-sidebar-hover: #1e293b;
    --bg-sidebar-border: #334155;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-sidebar: #94a3b8;
    --text-sidebar-hover: #f1f5f9;
    --border-color: #334155;
    --border-light: #1e293b;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --accent-light: rgba(56, 189, 248, 0.12);
    --table-header-bg: #1e293b;
    --table-header-text: #e2e8f0;
    --table-row-alt: #162032;
    --table-hover: #1e2d40;
    --table-border: #334155;
    --status-online-bg: rgba(34, 197, 94, 0.15);
    --status-online-text: #4ade80;
    --status-offline-bg: rgba(239, 68, 68, 0.15);
    --status-offline-text: #f87171;
    --status-active-bg: rgba(34, 197, 94, 0.15);
    --btn-primary-bg: #0ea5e9;
    --btn-primary-hover: #38bdf8;
    --btn-danger-bg: #ef4444;
    --btn-danger-hover: #f87171;
    --btn-neutral-bg: #1e293b;
    --btn-neutral-hover: #334155;
    --btn-neutral-text: #e2e8f0;
    --card-bg: #1e293b;
    --card-border: #334155;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
}
