/* =========================================================================
   LYRN v6 — MODERN DIMENSIONAL DARK SKIN (DEFAULT)
   Neutral Obsidian & Carbon Elevation | Tactile Bevels | Crisp Typography
   ========================================================================= */

html body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]),
body[data-theme="dark"],
body[data-theme="cyber-dark"] {
    /* Core Surface Hierarchy (Neutral Obsidian & Carbon Slate) */
    --bg-core: #08090d;
    --bg-panel: #0e1017;
    --bg-input: #07080c;
    --surface: #141720;
    --surface-hover: #1b1f2b;
    --input-focus-bg: #0c0e14;

    /* Brand & Accent Tokens */
    --brand-purple: #7c5cff;
    --brand-purple-neon: #9b82ff;
    --brand-purple-dim: rgba(124, 92, 255, 0.14);
    --brand-purple-glow: rgba(124, 92, 255, 0.35);
    --accent: #7c5cff;
    --accent-hover: #8f73ff;

    /* Crisp Neutral Typography (High Contrast, Zero Lavender Washout) */
    --text-head: #f8fafc;
    --text-body: #cbd5e1;
    --text-dim: #64748b;

    /* Structural Borders & Elevation */
    --border-color: #1f2433;
    --border-highlight: #32394f;
    --dock-bg: rgba(14, 16, 23, 0.88);
    --dock-border: rgba(255, 255, 255, 0.09);

    /* Semantic Status Colors */
    --success: #10b981;
    --success-color: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --error-color: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);

    /* Tactile Buttons */
    --btn-text: #e2e8f0;
    --btn-border: #282e40;
    --btn-bg: linear-gradient(180deg, #1a1e29 0%, #12151e 100%);
}

/* =========================================================================
   DIMENSIONAL SURFACES & TACTILE DEPTH (Active in Default Dark Mode)
   ========================================================================= */

/* 1. Elevated Panels & Containers */
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .panel,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .top-bar,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .module-window,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .modal-box,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .modal-card {
    background: linear-gradient(180deg, #12151f 0%, #0d0f16 100%);
    border-color: #1f2433;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 24px -4px rgba(0, 0, 0, 0.5);
}

/* 2. Panel & Module Headers */
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .panel-header,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) header,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .module-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%);
    border-bottom-color: #1e2330;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 3. Interactive Cards & List Items (Tactile Lift) */
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .job-card,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .metric-card,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .card {
    background: linear-gradient(180deg, #171b26 0%, #12151e 100%);
    border: 1px solid #232838;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .job-card:hover,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .card:hover {
    background: linear-gradient(180deg, #1d2230 0%, #161a25 100%);
    border-color: #353d54;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 14px rgba(0, 0, 0, 0.45);
}

body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .job-card.active {
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.18) 0%, rgba(124, 92, 255, 0.08) 100%);
    border-color: var(--brand-purple);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 4px 16px rgba(124, 92, 255, 0.2);
}

body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .component-item {
    border-bottom-color: #181c28;
    transition: background 0.15s ease, padding-left 0.15s ease;
}
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .component-item:hover {
    background: rgba(255, 255, 255, 0.03);
}
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .component-item.selected {
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.18) 0%, rgba(124, 92, 255, 0.03) 100%);
    border-left: 3px solid var(--brand-purple);
}

/* 4. Recessed Inputs, Code Editors & Consoles */
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) input[type="text"],
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) input[type="number"],
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) input[type="password"],
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) textarea,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) select {
    background-color: #07080c;
    border: 1px solid #1e2330;
    color: #f1f5f9;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.03);
}

body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) input[type="text"]:focus,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) input[type="number"]:focus,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) input[type="password"]:focus,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) textarea:focus,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) select:focus {
    background-color: #0a0c12;
    border-color: var(--brand-purple);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(124, 92, 255, 0.22);
}

/* 5. Tactile Dimensional Buttons */
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) button:not(.win-btn):not(.dock-btn):not(.bar-btn):not(.tab-btn):not(.pin-btn):not(.remove-btn) {
    background: linear-gradient(180deg, #1b1f2c 0%, #12151f 100%);
    border: 1px solid #282f42;
    color: #e2e8f0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 2px 4px rgba(0, 0, 0, 0.35);
}

body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) button:not(.win-btn):not(.dock-btn):not(.bar-btn):not(.tab-btn):not(.pin-btn):not(.remove-btn):hover:not(:disabled) {
    background: linear-gradient(180deg, #232838 0%, #171b27 100%);
    border-color: var(--brand-purple);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.45),
        0 0 8px rgba(124, 92, 255, 0.2);
}

body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) button.btn-primary,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) button.primary,
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) button.btn-success {
    background: linear-gradient(180deg, #8b6eff 0%, #6844ff 100%);
    border: 1px solid #967aff;
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 4px 12px rgba(124, 92, 255, 0.35);
}

body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) button.btn-primary:hover:not(:disabled),
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) button.primary:hover:not(:disabled),
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) button.btn-success:hover:not(:disabled) {
    background: linear-gradient(180deg, #987eff 0%, #7553ff 100%);
    border-color: #b19dff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 6px 18px rgba(124, 92, 255, 0.5);
}

/* 6. Desktop Windows & Floating Dock */
body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .lyrn-window {
    background: #0e1017;
    border: 1px solid #242938;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 64px -8px rgba(0, 0, 0, 0.78),
        0 0 1px rgba(0, 0, 0, 0.9);
}

body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .lyrn-window.active {
    border-color: rgba(124, 92, 255, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 28px 72px -8px rgba(0, 0, 0, 0.85),
        0 0 20px rgba(124, 92, 255, 0.18);
}

body:not([data-theme="light"]):not([data-theme="corporate"]):not([data-theme="2049"]):not([data-theme="amber"]):not([data-theme="claude"]) .window-header {
    background: linear-gradient(180deg, #161924 0%, #10131b 100%);
    border-bottom: 1px solid #202534;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
