/**
 * 8Dweb Contract Manager
 *
 * @file        theme.css
 * @description Core theme system with CSS custom properties and color presets
 * @author      8Dweb - Matthew J. Sine
 * @ai          Built with AI assistance (Claude, Anthropic)
 * @version     2.9.8.2
 * @revised     2026-02-24
 */

/* ============================================================
   Contract Manager — Theme System
   CSS Custom Properties + Light/Dark + Color Presets
   Option A: Clean Minimal Design
   ============================================================ */

/* ---- BLUE (Light) — DEFAULT THEME ---- */
:root,
[data-theme="blue"] {
    /* Primary */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --primary-rgb: 37, 99, 235;

    /* Semantic */
    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --info: #06b6d4;

    /* Surfaces */
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-alt: #f8fafc;
    --bg-inset: #f1f5f9;
    --bg-navbar: var(--primary);
    --bg-hover: rgba(0,0,0,0.04);

    /* Text */
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-on-primary: #ffffff;
    --text-on-card: var(--text);
    --text-link: var(--primary);

    /* Borders & Shadows */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);

    /* Radii */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    /* Section accents */
    --accent-pricing: #10b981;
    --accent-cost: #ef4444;
    --accent-exhibit: #8b5cf6;
    --accent-variable: #06b6d4;
    --accent-status: #6366f1;

    /* Workflow status */
    --status-draft: #64748b;
    --status-pre-approved: var(--primary);
    --status-sent: #f59e0b;
    --status-signed: #8b5cf6;
    --status-finalized: #10b981;

    /* Transitions */
    --transition: 150ms ease;
}

/* ---- BLUE DARK ---- */
[data-theme="blue-dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #1e3a5f;
    --primary-rgb: 59, 130, 246;

    --success: #34d399;
    --success-dark: #10b981;
    --warning: #fbbf24;
    --warning-dark: #f59e0b;
    --danger: #f87171;
    --danger-dark: #ef4444;
    --info: #22d3ee;

    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-card-alt: #1a2332;
    --bg-inset: #0f172a;
    --bg-navbar: #050812;
    --bg-hover: rgba(255,255,255,0.05);

    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-on-primary: #ffffff;
    --text-on-card: #e2e8f0;
    --text-link: #60a5fa;

    --border: #334155;
    --border-light: #1e293b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    --accent-pricing: #34d399;
    --accent-cost: #f87171;
    --accent-exhibit: #a78bfa;
    --accent-variable: #22d3ee;
    --accent-status: #818cf8;

    --status-draft: #9ca3af;
    --status-pre-approved: #3b82f6;
    --status-sent: #fbbf24;
    --status-signed: #c084fc;
    --status-finalized: #34d399;
}

/* ---- 8D ORANGE (Light) ---- */
[data-theme="8d-orange"] {
    --primary: #E8912D;
    --primary-dark: #c97a1e;
    --primary-light: #fef3e2;
    --primary-rgb: 232, 145, 45;

    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --info: #06b6d4;

    --bg-body: #f5f5f5;
    --bg-card: #ffffff;
    --bg-card-alt: #fafafa;
    --bg-inset: #f0f0f0;
    --bg-navbar: #1a1a2e;
    --bg-hover: rgba(232,145,45,0.06);

    --text: #1a1a2e;
    --text-secondary: #5f6b7a;
    --text-muted: #9ca3af;
    --text-on-primary: #ffffff;
    --text-on-card: var(--text);
    --text-link: #c97a1e;

    --border: #e5e5e5;
    --border-light: #f0f0f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    --accent-pricing: #10b981;
    --accent-cost: #ef4444;
    --accent-exhibit: #E8912D;
    --accent-variable: #06b6d4;
    --accent-status: #1a1a2e;

    --status-draft: #6b7280;
    --status-pre-approved: #E8912D;
    --status-sent: #f59e0b;
    --status-signed: #7c3aed;
    --status-finalized: #10b981;
}

/* ---- 8D ORANGE DARK ---- */
[data-theme="8d-orange-dark"] {
    --primary: #E8912D;
    --primary-dark: #c97a1e;
    --primary-light: #3d2a10;
    --primary-rgb: 232, 145, 45;

    --success: #34d399;
    --success-dark: #10b981;
    --warning: #fbbf24;
    --warning-dark: #f59e0b;
    --danger: #f87171;
    --danger-dark: #ef4444;
    --info: #22d3ee;

    --bg-body: #111118;
    --bg-card: #1c1c26;
    --bg-card-alt: #17171f;
    --bg-inset: #111118;
    --bg-navbar: #0d0d12;
    --bg-hover: rgba(232,145,45,0.08);

    --text: #e5e5e5;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-on-primary: #ffffff;
    --text-on-card: #e5e5e5;
    --text-link: #E8912D;

    --border: #2d2d3a;
    --border-light: #1c1c26;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow: 0 1px 3px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -2px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.6);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    --accent-pricing: #34d399;
    --accent-cost: #f87171;
    --accent-exhibit: #E8912D;
    --accent-variable: #22d3ee;
    --accent-status: #E8912D;

    --status-draft: #9ca3af;
    --status-pre-approved: #E8912D;
    --status-sent: #fbbf24;
    --status-signed: #c084fc;
    --status-finalized: #34d399;
}

/* ---- SLATE (Light) ---- */
[data-theme="slate"] {
    --primary: #475569;
    --primary-dark: #334155;
    --primary-light: #f1f5f9;
    --primary-rgb: 71, 85, 105;

    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --info: #06b6d4;

    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-alt: #f8fafc;
    --bg-inset: #f1f5f9;
    --bg-navbar: #1e293b;
    --bg-hover: rgba(0,0,0,0.03);

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-on-primary: #ffffff;
    --text-on-card: var(--text);
    --text-link: #334155;

    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    --accent-pricing: #059669;
    --accent-cost: #dc2626;
    --accent-exhibit: #6366f1;
    --accent-variable: #06b6d4;
    --accent-status: #475569;

    --status-draft: #94a3b8;
    --status-pre-approved: #475569;
    --status-sent: #f59e0b;
    --status-signed: #8b5cf6;
    --status-finalized: #10b981;
}

/* ---- SLATE DARK ---- */
[data-theme="slate-dark"] {
    --primary: #64748b;
    --primary-dark: #475569;
    --primary-light: #1e293b;
    --primary-rgb: 100, 116, 139;

    --success: #34d399;
    --success-dark: #10b981;
    --warning: #fbbf24;
    --warning-dark: #f59e0b;
    --danger: #f87171;
    --danger-dark: #ef4444;
    --info: #22d3ee;

    --bg-body: #0f172a;
    --bg-card: #1a2332;
    --bg-card-alt: #151e2b;
    --bg-inset: #0f172a;
    --bg-navbar: #050812;
    --bg-hover: rgba(255,255,255,0.05);

    --text: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-on-primary: #ffffff;
    --text-on-card: #e2e8f0;
    --text-link: #93c5fd;

    --border: #334155;
    --border-light: #1a2332;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    --accent-pricing: #34d399;
    --accent-cost: #f87171;
    --accent-exhibit: #c084fc;
    --accent-variable: #22d3ee;
    --accent-status: #64748b;

    --status-draft: #9ca3af;
    --status-pre-approved: #64748b;
    --status-sent: #fbbf24;
    --status-signed: #c084fc;
    --status-finalized: #34d399;
}

/* ---- FOREST (Light) ---- */
[data-theme="forest"] {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #dcfce7;
    --primary-rgb: 22, 163, 74;

    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --info: #06b6d4;

    --bg-body: #f0fdf4;
    --bg-card: #ffffff;
    --bg-card-alt: #f7fdf9;
    --bg-inset: #ecfdf5;
    --bg-navbar: #14532d;
    --bg-hover: rgba(22,163,74,0.05);

    --text: #14532d;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-on-primary: #ffffff;
    --text-on-card: var(--text);
    --text-link: #15803d;

    --border: #d1fae5;
    --border-light: #ecfdf5;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    --accent-pricing: #16a34a;
    --accent-cost: #dc2626;
    --accent-exhibit: #7c3aed;
    --accent-variable: #06b6d4;
    --accent-status: #14532d;

    --status-draft: #94a3b8;
    --status-pre-approved: #16a34a;
    --status-sent: #f59e0b;
    --status-signed: #8b5cf6;
    --status-finalized: #10b981;
}

/* ---- FOREST DARK ---- */
[data-theme="forest-dark"] {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #14532d;
    --primary-rgb: 34, 197, 94;

    --success: #34d399;
    --success-dark: #10b981;
    --warning: #fbbf24;
    --warning-dark: #f59e0b;
    --danger: #f87171;
    --danger-dark: #ef4444;
    --info: #22d3ee;

    --bg-body: #051c0f;
    --bg-card: #0f3d1c;
    --bg-card-alt: #0a3015;
    --bg-inset: #051c0f;
    --bg-navbar: #030d06;
    --bg-hover: rgba(34,197,94,0.08);

    --text: #e0f2e0;
    --text-secondary: #a8d5a8;
    --text-muted: #7a9e7a;
    --text-on-primary: #ffffff;
    --text-on-card: #e0f2e0;
    --text-link: #86efac;

    --border: #1b7a35;
    --border-light: #0f3d1c;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    --accent-pricing: #34d399;
    --accent-cost: #f87171;
    --accent-exhibit: #c084fc;
    --accent-variable: #22d3ee;
    --accent-status: #22c55e;

    --status-draft: #9ca3af;
    --status-pre-approved: #22c55e;
    --status-sent: #fbbf24;
    --status-signed: #c084fc;
    --status-finalized: #34d399;
}

/* ---- PURPLE (Light) ---- */
[data-theme="purple"] {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #f3e8ff;
    --primary-rgb: 124, 58, 237;

    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --info: #06b6d4;

    --bg-body: #faf5ff;
    --bg-card: #ffffff;
    --bg-card-alt: #faf5ff;
    --bg-inset: #f3e8ff;
    --bg-navbar: #5b21b6;
    --bg-hover: rgba(124,58,237,0.05);

    --text: #3f0f5c;
    --text-secondary: #6b21a8;
    --text-muted: #a78bfa;
    --text-on-primary: #ffffff;
    --text-on-card: var(--text);
    --text-link: #6d28d9;

    --border: #e9d5ff;
    --border-light: #f3e8ff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    --accent-pricing: #10b981;
    --accent-cost: #ef4444;
    --accent-exhibit: #7c3aed;
    --accent-variable: #06b6d4;
    --accent-status: #7c3aed;

    --status-draft: #a78bfa;
    --status-pre-approved: #7c3aed;
    --status-sent: #f59e0b;
    --status-signed: #7c3aed;
    --status-finalized: #10b981;
}

/* ---- PURPLE DARK ---- */
[data-theme="purple-dark"] {
    --primary: #a78bfa;
    --primary-dark: #7c3aed;
    --primary-light: #3f0f5c;
    --primary-rgb: 167, 139, 250;

    --success: #34d399;
    --success-dark: #10b981;
    --warning: #fbbf24;
    --warning-dark: #f59e0b;
    --danger: #f87171;
    --danger-dark: #ef4444;
    --info: #22d3ee;

    --bg-body: #1a0f2e;
    --bg-card: #2d1b4e;
    --bg-card-alt: #251543;
    --bg-inset: #1a0f2e;
    --bg-navbar: #0d0617;
    --bg-hover: rgba(167,139,250,0.08);

    --text: #f3e8ff;
    --text-secondary: #d8b4fe;
    --text-muted: #c4b5fd;
    --text-on-primary: #ffffff;
    --text-on-card: #f3e8ff;
    --text-link: #d8b4fe;

    --border: #581c87;
    --border-light: #2d1b4e;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    --accent-pricing: #34d399;
    --accent-cost: #f87171;
    --accent-exhibit: #a78bfa;
    --accent-variable: #22d3ee;
    --accent-status: #a78bfa;

    --status-draft: #9ca3af;
    --status-pre-approved: #a78bfa;
    --status-sent: #fbbf24;
    --status-signed: #a78bfa;
    --status-finalized: #34d399;
}

/* ---- ROSE (Light) ---- */
[data-theme="rose"] {
    --primary: #e11d48;
    --primary-dark: #be123c;
    --primary-light: #ffe4e6;
    --primary-rgb: 225, 29, 72;

    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --info: #06b6d4;

    --bg-body: #fff1f5;
    --bg-card: #ffffff;
    --bg-card-alt: #fdf2f8;
    --bg-inset: #ffe4e6;
    --bg-navbar: #831843;
    --bg-hover: rgba(225,29,72,0.05);

    --text: #3d0814;
    --text-secondary: #801336;
    --text-muted: #f43f5e;
    --text-on-primary: #ffffff;
    --text-on-card: var(--text);
    --text-link: #be123c;

    --border: #fbcfe8;
    --border-light: #ffe4e6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    --accent-pricing: #10b981;
    --accent-cost: #e11d48;
    --accent-exhibit: #7c3aed;
    --accent-variable: #06b6d4;
    --accent-status: #e11d48;

    --status-draft: #f43f5e;
    --status-pre-approved: #e11d48;
    --status-sent: #f59e0b;
    --status-signed: #8b5cf6;
    --status-finalized: #10b981;
}

/* ---- ROSE DARK ---- */
[data-theme="rose-dark"] {
    --primary: #f43f5e;
    --primary-dark: #e11d48;
    --primary-light: #3d0814;
    --primary-rgb: 244, 63, 94;

    --success: #34d399;
    --success-dark: #10b981;
    --warning: #fbbf24;
    --warning-dark: #f59e0b;
    --danger: #f87171;
    --danger-dark: #ef4444;
    --info: #22d3ee;

    --bg-body: #160a0e;
    --bg-card: #3d151b;
    --bg-card-alt: #2f0f15;
    --bg-inset: #160a0e;
    --bg-navbar: #080405;
    --bg-hover: rgba(244,63,94,0.08);

    --text: #fce7eb;
    --text-secondary: #fbcfe8;
    --text-muted: #f472b6;
    --text-on-primary: #ffffff;
    --text-on-card: #fce7eb;
    --text-link: #fb7185;

    --border: #be123c;
    --border-light: #3d151b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    --accent-pricing: #34d399;
    --accent-cost: #f43f5e;
    --accent-exhibit: #c084fc;
    --accent-variable: #22d3ee;
    --accent-status: #f43f5e;

    --status-draft: #9ca3af;
    --status-pre-approved: #f43f5e;
    --status-sent: #fbbf24;
    --status-signed: #c084fc;
    --status-finalized: #34d399;
}

/* ---- TEAL (Light) ---- */
[data-theme="teal"] {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --primary-rgb: 13, 148, 136;

    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --info: #06b6d4;

    --bg-body: #f0fdfa;
    --bg-card: #ffffff;
    --bg-card-alt: #f5fffe;
    --bg-inset: #d1faf8;
    --bg-navbar: #134e4a;
    --bg-hover: rgba(13,148,136,0.05);

    --text: #0d3d3a;
    --text-secondary: #0f766e;
    --text-muted: #5eead4;
    --text-on-primary: #ffffff;
    --text-on-card: var(--text);
    --text-link: #0f766e;

    --border: #99f6e4;
    --border-light: #d1faf8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    --accent-pricing: #10b981;
    --accent-cost: #ef4444;
    --accent-exhibit: #7c3aed;
    --accent-variable: #0d9488;
    --accent-status: #0d9488;

    --status-draft: #5eead4;
    --status-pre-approved: #0d9488;
    --status-sent: #f59e0b;
    --status-signed: #8b5cf6;
    --status-finalized: #10b981;
}

/* ---- TEAL DARK ---- */
[data-theme="teal-dark"] {
    --primary: #14b8a6;
    --primary-dark: #0d9488;
    --primary-light: #0d3d3a;
    --primary-rgb: 20, 184, 166;

    --success: #34d399;
    --success-dark: #10b981;
    --warning: #fbbf24;
    --warning-dark: #f59e0b;
    --danger: #f87171;
    --danger-dark: #ef4444;
    --info: #22d3ee;

    --bg-body: #050f0d;
    --bg-card: #0f3d3a;
    --bg-card-alt: #082f2c;
    --bg-inset: #050f0d;
    --bg-navbar: #030807;
    --bg-hover: rgba(20,184,166,0.08);

    --text: #d1faf8;
    --text-secondary: #99f6e4;
    --text-muted: #5eead4;
    --text-on-primary: #ffffff;
    --text-on-card: #d1faf8;
    --text-link: #a7f3d0;

    --border: #0f766e;
    --border-light: #0f3d3a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    --accent-pricing: #34d399;
    --accent-cost: #f87171;
    --accent-exhibit: #c084fc;
    --accent-variable: #14b8a6;
    --accent-status: #14b8a6;

    --status-draft: #9ca3af;
    --status-pre-approved: #14b8a6;
    --status-sent: #fbbf24;
    --status-signed: #c084fc;
    --status-finalized: #34d399;
}


/* ============================================================
   BASE STYLES — apply variables everywhere
   ============================================================ */

body {
    background-color: var(--bg-body);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: background-color var(--transition), color var(--transition);
    line-height: 1.6;
}

a {
    color: var(--text-link);
}

a:hover {
    color: var(--primary-dark);
}


/* ---- NAVBAR ---- */
.navbar {
    background: var(--bg-navbar) !important;
    box-shadow: var(--shadow);
    padding: 0.5rem 1rem;
    border: none;
}

/* Two-row navbar: brand + user on row 1, main nav on row 2 */
@media (min-width: 992px) {
    .navbar > .container-fluid {
        flex-wrap: wrap;
    }
    .navbar .navbar-collapse {
        flex-basis: 100%;
        order: 99;
        border-top: 1px solid rgba(255,255,255,0.12);
        margin-top: 0.35rem;
        padding-top: 0.15rem;
    }
    .navbar .cm-main-nav {
        padding-bottom: 0.25rem;
    }
    .navbar .cm-user-nav {
        padding-bottom: 0.25rem;
    }
}

.navbar-brand {
    font-weight: 600;
    color: var(--text-on-primary) !important;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.75) !important;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
}

/* Content-area tabs (Settings, etc.) — use normal Bootstrap tab styling */
.nav-tabs .nav-link {
    color: var(--text-secondary, #6c757d) !important;
    font-size: 0.9rem;
    font-weight: 500;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary, #333) !important;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--text-primary, #333) !important;
    background: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}


/* ---- CARDS ---- */
.card {
    background: var(--bg-card);
    color: var(--text-on-card, var(--text));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), border-color var(--transition);
}

.card-header {
    background: var(--bg-card-alt);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 0.875rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}


/* ---- TABLES ---- */
.table {
    --bs-table-bg: var(--bg-card);
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
}

.table thead th {
    background: var(--bg-card-alt);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
    padding: 0.75rem 1rem;
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-color: var(--border-light);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: var(--bg-card-alt);
}


/* ---- BUTTONS ---- */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-on-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-on-primary);
}


/* ---- FORMS ---- */
.form-control,
.form-select {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.8rem;
}

textarea.form-control {
    min-height: 100px;
}


/* ---- BADGES ---- */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}


/* ---- WORKFLOW STATUS BADGES ---- */
.workflow-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.workflow-draft {
    background: var(--status-draft);
    color: #fff;
}

.workflow-pre-approved {
    background: var(--status-pre-approved);
    color: #fff;
}

.workflow-sent-to-client {
    background: var(--status-sent);
    color: #fff;
}

.workflow-client-signed {
    background: var(--status-signed);
    color: #fff;
}

.workflow-finalized {
    background: var(--status-finalized);
    color: #fff;
}


/* ---- DROPDOWNS ---- */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
}

.dropdown-item {
    color: var(--text);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text);
}


/* ============================================================
   OPTION A: CLEAN MINIMAL COMPONENTS
   ============================================================ */

/* ---- Page Header ---- */
.page-header {
    margin-bottom: 1.25rem;
}

.page-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.page-header h1 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.page-header .subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}


/* ---- Card Label (replaces colored headers) ---- */
.card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}


/* ---- Stat Cards (dashboard) ---- */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-card .stat-icon.primary {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-card .stat-icon.success {
    background: rgba(16,185,129,0.1);
    color: var(--success);
}

.stat-card .stat-icon.warning {
    background: rgba(245,158,11,0.1);
    color: var(--warning);
}

.stat-card .stat-icon.danger {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}


/* ---- Sidebar Card ---- */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.sidebar-card .section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}


/* ---- Financial Row ---- */
.financial-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-light);
}

.financial-row:last-child {
    border-bottom: none;
}

.financial-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.financial-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.financial-value.revenue {
    color: var(--accent-pricing);
}

.financial-value.cost {
    color: var(--accent-cost);
}

.financial-value.profit {
    color: var(--primary);
}


/* ---- Info Grid ---- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    padding: 0.75rem;
    background: var(--bg-inset);
    border-radius: var(--radius-sm);
}

.info-item-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.info-item-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}


/* ---- Action Icon ---- */
.action-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-secondary);
}

.action-icon:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--bg-hover);
}


/* ---- Badge A Variants ---- */
.badge-a {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-a {
    background: var(--bg-card-alt);
    color: var(--text);
}

.badge-orange {
    background: rgba(232,145,45,0.15);
    color: #E8912D;
}

.badge-gray {
    background: rgba(148,163,184,0.15);
    color: #64748b;
}

.badge-green {
    background: rgba(16,185,129,0.15);
    color: #10b981;
}

.badge-blue {
    background: rgba(37,99,235,0.15);
    color: #2563eb;
}

.badge-red {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}


/* ---- Form Section ---- */
.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.form-section .section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.form-section .section-title i {
    color: var(--primary);
    margin-right: 0.5rem;
}


/* ---- Component Row ---- */
.component-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: box-shadow var(--transition);
}

.component-row:hover {
    box-shadow: var(--shadow);
}


/* ---- Exhibit Card ---- */
.exhibit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.875rem;
    transition: box-shadow var(--transition);
}

.exhibit-card:hover {
    box-shadow: var(--shadow);
}

.exhibit-letter {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-on-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}


/* ---- Action Bar ---- */
.action-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.action-bar .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.875rem;
}


/* ---- Alerts ---- */
.alert {
    border-radius: var(--radius);
    font-size: 0.9rem;
    border: none;
}


/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}


/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */

[data-theme="blue-dark"] .modal-content,
[data-theme="slate-dark"] .modal-content,
[data-theme="forest-dark"] .modal-content,
[data-theme="purple-dark"] .modal-content,
[data-theme="rose-dark"] .modal-content,
[data-theme="teal-dark"] .modal-content,
[data-theme="8d-orange-dark"] .modal-content {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

[data-theme="blue-dark"] .modal-header,
[data-theme="slate-dark"] .modal-header,
[data-theme="forest-dark"] .modal-header,
[data-theme="purple-dark"] .modal-header,
[data-theme="rose-dark"] .modal-header,
[data-theme="teal-dark"] .modal-header,
[data-theme="8d-orange-dark"] .modal-header {
    border-color: var(--border);
}

[data-theme="blue-dark"] .modal-footer,
[data-theme="slate-dark"] .modal-footer,
[data-theme="forest-dark"] .modal-footer,
[data-theme="purple-dark"] .modal-footer,
[data-theme="rose-dark"] .modal-footer,
[data-theme="teal-dark"] .modal-footer,
[data-theme="8d-orange-dark"] .modal-footer {
    border-color: var(--border);
}

[data-theme="blue-dark"] .list-group-item,
[data-theme="slate-dark"] .list-group-item,
[data-theme="forest-dark"] .list-group-item,
[data-theme="purple-dark"] .list-group-item,
[data-theme="rose-dark"] .list-group-item,
[data-theme="teal-dark"] .list-group-item,
[data-theme="8d-orange-dark"] .list-group-item {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

[data-theme="blue-dark"] .bg-light,
[data-theme="slate-dark"] .bg-light,
[data-theme="forest-dark"] .bg-light,
[data-theme="purple-dark"] .bg-light,
[data-theme="rose-dark"] .bg-light,
[data-theme="teal-dark"] .bg-light,
[data-theme="8d-orange-dark"] .bg-light {
    background-color: var(--bg-card-alt) !important;
}

[data-theme="blue-dark"] .text-dark,
[data-theme="slate-dark"] .text-dark,
[data-theme="forest-dark"] .text-dark,
[data-theme="purple-dark"] .text-dark,
[data-theme="rose-dark"] .text-dark,
[data-theme="teal-dark"] .text-dark,
[data-theme="8d-orange-dark"] .text-dark {
    color: var(--text) !important;
}

[data-theme="blue-dark"] .text-muted,
[data-theme="slate-dark"] .text-muted,
[data-theme="forest-dark"] .text-muted,
[data-theme="purple-dark"] .text-muted,
[data-theme="rose-dark"] .text-muted,
[data-theme="teal-dark"] .text-muted,
[data-theme="8d-orange-dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="blue-dark"] .border,
[data-theme="slate-dark"] .border,
[data-theme="forest-dark"] .border,
[data-theme="purple-dark"] .border,
[data-theme="rose-dark"] .border,
[data-theme="teal-dark"] .border,
[data-theme="8d-orange-dark"] .border {
    border-color: var(--border) !important;
}


/* ---- Scrollbars for dark themes ---- */
[data-theme="blue-dark"] ::-webkit-scrollbar,
[data-theme="slate-dark"] ::-webkit-scrollbar,
[data-theme="forest-dark"] ::-webkit-scrollbar,
[data-theme="purple-dark"] ::-webkit-scrollbar,
[data-theme="rose-dark"] ::-webkit-scrollbar,
[data-theme="teal-dark"] ::-webkit-scrollbar,
[data-theme="8d-orange-dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="blue-dark"] ::-webkit-scrollbar-track,
[data-theme="slate-dark"] ::-webkit-scrollbar-track,
[data-theme="forest-dark"] ::-webkit-scrollbar-track,
[data-theme="purple-dark"] ::-webkit-scrollbar-track,
[data-theme="rose-dark"] ::-webkit-scrollbar-track,
[data-theme="teal-dark"] ::-webkit-scrollbar-track,
[data-theme="8d-orange-dark"] ::-webkit-scrollbar-track {
    background: var(--bg-body);
}

[data-theme="blue-dark"] ::-webkit-scrollbar-thumb,
[data-theme="slate-dark"] ::-webkit-scrollbar-thumb,
[data-theme="forest-dark"] ::-webkit-scrollbar-thumb,
[data-theme="purple-dark"] ::-webkit-scrollbar-thumb,
[data-theme="rose-dark"] ::-webkit-scrollbar-thumb,
[data-theme="teal-dark"] ::-webkit-scrollbar-thumb,
[data-theme="8d-orange-dark"] ::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}


/* ============================================================
   THEME SWITCHER UI
   ============================================================ */

.theme-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.08);
    padding: 4px 6px;
    border-radius: var(--radius);
}

.theme-pill {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.theme-pill:hover {
    border-color: rgba(255,255,255,0.5);
}

.theme-pill.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

/* Theme pill colors */
.theme-pill[data-theme="blue"] {
    background: #2563eb;
}

.theme-pill[data-theme="blue-dark"] {
    background: linear-gradient(135deg, #3b82f6 50%, #050812 50%);
}

.theme-pill[data-theme="8d-orange"] {
    background: linear-gradient(135deg, #E8912D 50%, #1a1a2e 50%);
}

.theme-pill[data-theme="8d-orange-dark"] {
    background: linear-gradient(135deg, #E8912D 50%, #0d0d12 50%);
}

.theme-pill[data-theme="slate"] {
    background: #475569;
}

.theme-pill[data-theme="slate-dark"] {
    background: linear-gradient(135deg, #64748b 50%, #050812 50%);
}

.theme-pill[data-theme="forest"] {
    background: #16a34a;
}

.theme-pill[data-theme="forest-dark"] {
    background: linear-gradient(135deg, #22c55e 50%, #030d06 50%);
}

.theme-pill[data-theme="purple"] {
    background: #7c3aed;
}

.theme-pill[data-theme="purple-dark"] {
    background: linear-gradient(135deg, #a78bfa 50%, #0d0617 50%);
}

.theme-pill[data-theme="rose"] {
    background: #e11d48;
}

.theme-pill[data-theme="rose-dark"] {
    background: linear-gradient(135deg, #f43f5e 50%, #080405 50%);
}

.theme-pill[data-theme="teal"] {
    background: #0d9488;
}

.theme-pill[data-theme="teal-dark"] {
    background: linear-gradient(135deg, #14b8a6 50%, #030807 50%);
}


/* ============================================================
   UTILITY OVERRIDES
   ============================================================ */

main.col-12 {
    padding: 1.25rem 1.5rem !important;
}

.bg-theme-primary {
    background: var(--primary) !important;
    color: var(--text-on-primary) !important;
}

.text-theme {
    color: var(--text) !important;
}

.text-theme-secondary {
    color: var(--text-secondary) !important;
}

.text-theme-muted {
    color: var(--text-muted) !important;
}

.bg-theme-card {
    background: var(--bg-card) !important;
}

.bg-theme-body {
    background: var(--bg-body) !important;
}

.border-theme {
    border-color: var(--border) !important;
}


/* ============================================================
   LAYOUT VARIANT B: ACCENT BAR
   Cards get colored top border, page headers get left accent
   ============================================================ */

[data-layout="b"] .card {
    border-top: 3px solid var(--primary);
}

[data-layout="b"] .card-header {
    border-top: none;
}

[data-layout="b"] .stat-card {
    border-top: 3px solid var(--primary);
}

[data-layout="b"] .page-header h1 {
    padding-left: 0.75rem;
    border-left: 4px solid var(--primary);
}

[data-layout="b"] .form-section {
    border-top: 3px solid var(--primary);
}

[data-layout="b"] .sidebar-card {
    border-top: 3px solid var(--primary);
}

[data-layout="b"] .component-row {
    border-left: 3px solid var(--primary);
}

[data-layout="b"] .exhibit-card {
    border-top: 2px solid var(--primary);
}

[data-layout="b"] .modern-card {
    border-top: 3px solid var(--primary);
}

[data-layout="b"] .financial-summary-card {
    border-top: 3px solid var(--primary);
}

[data-layout="b"] .exhibit-item {
    border-left: 3px solid var(--primary);
}

[data-layout="b"] .login-container {
    border-top: 3px solid var(--primary);
}

[data-layout="b"] .export-type-option {
    border-top: 2px solid var(--primary);
}


/* ============================================================
   LAYOUT VARIANT C: SOFT HEADER
   Gradient page header, rounded cards, tinted card headers
   ============================================================ */

[data-layout="c"] .page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-on-primary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

[data-layout="c"] .page-header h1 {
    color: var(--text-on-primary);
}

[data-layout="c"] .page-header h1 i {
    color: rgba(255,255,255,0.8);
}

[data-layout="c"] .page-header .subtitle {
    color: rgba(255,255,255,0.7);
}

[data-layout="c"] .card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-layout="c"] .card-header {
    background: rgba(var(--primary-rgb), 0.06);
    border-radius: 10px 10px 0 0;
}

[data-layout="c"] .stat-card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-layout="c"] .form-section {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-layout="c"] .sidebar-card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-layout="c"] .component-row {
    border-radius: 10px;
}

[data-layout="c"] .exhibit-card {
    border-radius: 10px;
}

[data-layout="c"] .modern-card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-layout="c"] .financial-summary-card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-layout="c"] .login-container {
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

[data-layout="c"] .export-type-option {
    border-radius: 14px;
}

[data-layout="c"] .exhibit-item {
    border-radius: 10px;
}


/* ============================================================
   ACCESSIBILITY — Focus-Visible Styles (WCAG 2.4.7)
   ============================================================ */

/* Global focus-visible ring for all interactive elements */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.dropdown-toggle:focus-visible,
.form-check-input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: none;
}

/* Navbar links: use white ring on dark backgrounds */
.navbar .nav-link:focus-visible,
.navbar .navbar-brand:focus-visible,
.navbar .dropdown-toggle:focus-visible {
    outline-color: #ffffff;
    outline-offset: 2px;
}

/* Dropdown items inside menus: use primary ring */
.dropdown-menu .dropdown-item:focus-visible {
    outline-color: var(--primary);
    outline-offset: -2px;
    background: var(--bg-hover);
}

/* Theme pills */
.theme-pill:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* ============================================================
   NAVBAR — Active State Highlighting
   ============================================================ */

/* Active nav item indicator */
.navbar .cm-main-nav .nav-link.active {
    color: #ffffff;
    font-weight: 600;
    position: relative;
}

.navbar .cm-main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background: #ffffff;
    border-radius: 2px 2px 0 0;
}

/* Active dropdown parent (Templates, Admin) */
.navbar .cm-main-nav .nav-item.active > .nav-link {
    color: #ffffff;
    font-weight: 600;
    position: relative;
}

.navbar .cm-main-nav .nav-item.active > .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background: #ffffff;
    border-radius: 2px 2px 0 0;
}
