/* ============================================
   TERMINAL THEMES - CSS Custom Properties
   ============================================
   Dark Themes: phosphor, amber, arctic, matrix, solarized
   Light Themes: paper, solarized-light, ice, oxide
   ============================================ */

/* ── DARK THEMES ─────────────────────────── */

[data-theme="phosphor"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-surface: #0d1117;
    --text-primary: #00ff41;
    --text-secondary: #00cc33;
    --text-muted: #2a6b3a;
    --accent: #00ff41;
    --accent-hover: #33ff66;
    --accent-dim: rgba(0, 255, 65, 0.1);
    --border: #1a3d22;
    --border-bright: #00ff41;
    --error: #ff4444;
    --warning: #ffaa00;
    --success: #00ff41;
    --info: #00ccff;
    --cursor-color: #00ff41;
    --selection-bg: rgba(0, 255, 65, 0.15);
    --scrollbar-track: #0a0a0a;
    --scrollbar-thumb: #1a3d22;
    --glow: 0 0 10px rgba(0, 255, 65, 0.3);
    --nav-bg: #050505;
    --sidebar-bg: #080808;
    --chart-grid: rgba(0, 255, 65, 0.08);
    --chart-line-1: #00ff41;
    --chart-line-2: #00ccff;
    --chart-line-3: #ffaa00;
    --chart-line-4: #ff4444;
    --chart-fill-1: rgba(0, 255, 65, 0.15);
    --chart-fill-2: rgba(0, 204, 255, 0.15);
}

[data-theme="amber"] {
    --bg-primary: #0a0800;
    --bg-secondary: #12100a;
    --bg-tertiary: #1a1610;
    --bg-surface: #0f0d08;
    --text-primary: #ffb000;
    --text-secondary: #cc8d00;
    --text-muted: #6b5a2a;
    --accent: #ffb000;
    --accent-hover: #ffcc44;
    --accent-dim: rgba(255, 176, 0, 0.1);
    --border: #3d2e0a;
    --border-bright: #ffb000;
    --error: #ff4444;
    --warning: #ffcc00;
    --success: #ffb000;
    --info: #ffcc66;
    --cursor-color: #ffb000;
    --selection-bg: rgba(255, 176, 0, 0.15);
    --scrollbar-track: #0a0800;
    --scrollbar-thumb: #3d2e0a;
    --glow: 0 0 10px rgba(255, 176, 0, 0.3);
    --nav-bg: #050400;
    --sidebar-bg: #080600;
    --chart-grid: rgba(255, 176, 0, 0.08);
    --chart-line-1: #ffb000;
    --chart-line-2: #ffcc66;
    --chart-line-3: #ff8844;
    --chart-line-4: #ff4444;
    --chart-fill-1: rgba(255, 176, 0, 0.15);
    --chart-fill-2: rgba(255, 204, 102, 0.15);
}

[data-theme="arctic"] {
    --bg-primary: #0a0e14;
    --bg-secondary: #0f1419;
    --bg-tertiary: #151b23;
    --bg-surface: #0d1219;
    --text-primary: #73d0ff;
    --text-secondary: #59b8e8;
    --text-muted: #3a5f7a;
    --accent: #73d0ff;
    --accent-hover: #95dcff;
    --accent-dim: rgba(115, 208, 255, 0.1);
    --border: #1a2f40;
    --border-bright: #73d0ff;
    --error: #ff6b6b;
    --warning: #ffd580;
    --success: #95e6cb;
    --info: #73d0ff;
    --cursor-color: #73d0ff;
    --selection-bg: rgba(115, 208, 255, 0.15);
    --scrollbar-track: #0a0e14;
    --scrollbar-thumb: #1a2f40;
    --glow: 0 0 10px rgba(115, 208, 255, 0.3);
    --nav-bg: #060a0f;
    --sidebar-bg: #080c12;
    --chart-grid: rgba(115, 208, 255, 0.08);
    --chart-line-1: #73d0ff;
    --chart-line-2: #95e6cb;
    --chart-line-3: #ffd580;
    --chart-line-4: #ff6b6b;
    --chart-fill-1: rgba(115, 208, 255, 0.15);
    --chart-fill-2: rgba(149, 230, 203, 0.15);
}

[data-theme="matrix"] {
    --bg-primary: #000800;
    --bg-secondary: #001200;
    --bg-tertiary: #001a00;
    --bg-surface: #000e00;
    --text-primary: #00ff00;
    --text-secondary: #00cc00;
    --text-muted: #005500;
    --accent: #00ff00;
    --accent-hover: #44ff44;
    --accent-dim: rgba(0, 255, 0, 0.08);
    --border: #003300;
    --border-bright: #00ff00;
    --error: #ff0000;
    --warning: #bbff00;
    --success: #00ff00;
    --info: #00ff88;
    --cursor-color: #00ff00;
    --selection-bg: rgba(0, 255, 0, 0.12);
    --scrollbar-track: #000800;
    --scrollbar-thumb: #003300;
    --glow: 0 0 15px rgba(0, 255, 0, 0.4);
    --nav-bg: #000400;
    --sidebar-bg: #000600;
    --chart-grid: rgba(0, 255, 0, 0.06);
    --chart-line-1: #00ff00;
    --chart-line-2: #00ff88;
    --chart-line-3: #bbff00;
    --chart-line-4: #ff0000;
    --chart-fill-1: rgba(0, 255, 0, 0.12);
    --chart-fill-2: rgba(0, 255, 136, 0.12);
}

[data-theme="solarized"] {
    --bg-primary: #002b36;
    --bg-secondary: #073642;
    --bg-tertiary: #0a3f4c;
    --bg-surface: #073642;
    --text-primary: #93a1a1;
    --text-secondary: #839496;
    --text-muted: #586e75;
    --accent: #2aa198;
    --accent-hover: #35c4bb;
    --accent-dim: rgba(42, 161, 152, 0.15);
    --border: #0a4a56;
    --border-bright: #2aa198;
    --error: #dc322f;
    --warning: #b58900;
    --success: #859900;
    --info: #268bd2;
    --cursor-color: #93a1a1;
    --selection-bg: rgba(147, 161, 161, 0.12);
    --scrollbar-track: #002b36;
    --scrollbar-thumb: #0a4a56;
    --glow: 0 0 8px rgba(42, 161, 152, 0.25);
    --nav-bg: #001f28;
    --sidebar-bg: #00252e;
    --chart-grid: rgba(147, 161, 161, 0.08);
    --chart-line-1: #2aa198;
    --chart-line-2: #268bd2;
    --chart-line-3: #b58900;
    --chart-line-4: #dc322f;
    --chart-fill-1: rgba(42, 161, 152, 0.15);
    --chart-fill-2: rgba(38, 139, 210, 0.15);
}

/* ── ADDITIONAL DARK THEMES ──────────────── */

[data-theme="synthwave"] {
    --bg-primary: #0d0014;
    --bg-secondary: #140024;
    --bg-tertiary: #1e003a;
    --bg-surface: #110020;
    --text-primary: #f0a0ff;
    --text-secondary: #c06ae0;
    --text-muted: #6a2e80;
    --accent: #e040fb;
    --accent-hover: #ea80fc;
    --accent-dim: rgba(224, 64, 251, 0.12);
    --border: #3d1050;
    --border-bright: #e040fb;
    --error: #ff5370;
    --warning: #ffcb6b;
    --success: #c3e88d;
    --info: #82aaff;
    --cursor-color: #e040fb;
    --selection-bg: rgba(224, 64, 251, 0.18);
    --scrollbar-track: #0d0014;
    --scrollbar-thumb: #3d1050;
    --glow: 0 0 14px rgba(224, 64, 251, 0.4);
    --nav-bg: #080008;
    --sidebar-bg: #0b0010;
    --chart-grid: rgba(240, 160, 255, 0.07);
    --chart-line-1: #e040fb;
    --chart-line-2: #82aaff;
    --chart-line-3: #c3e88d;
    --chart-line-4: #ff5370;
    --chart-fill-1: rgba(224, 64, 251, 0.15);
    --chart-fill-2: rgba(130, 170, 255, 0.15);
}

[data-theme="dracula"] {
    --bg-primary: #282a36;
    --bg-secondary: #21222c;
    --bg-tertiary: #1e1f29;
    --bg-surface: #2a2c3b;
    --text-primary: #f8f8f2;
    --text-secondary: #cccfdc;
    --text-muted: #6272a4;
    --accent: #bd93f9;
    --accent-hover: #caa8ff;
    --accent-dim: rgba(189, 147, 249, 0.12);
    --border: #44475a;
    --border-bright: #bd93f9;
    --error: #ff5555;
    --warning: #ffb86c;
    --success: #50fa7b;
    --info: #8be9fd;
    --cursor-color: #f8f8f2;
    --selection-bg: rgba(189, 147, 249, 0.18);
    --scrollbar-track: #282a36;
    --scrollbar-thumb: #44475a;
    --glow: 0 0 10px rgba(189, 147, 249, 0.25);
    --nav-bg: #1e1f28;
    --sidebar-bg: #232536;
    --chart-grid: rgba(248, 248, 242, 0.06);
    --chart-line-1: #bd93f9;
    --chart-line-2: #8be9fd;
    --chart-line-3: #50fa7b;
    --chart-line-4: #ff5555;
    --chart-fill-1: rgba(189, 147, 249, 0.15);
    --chart-fill-2: rgba(139, 233, 253, 0.15);
}

[data-theme="eink"] {
    --bg-primary: #1a1a18;
    --bg-secondary: #222220;
    --bg-tertiary: #2a2a28;
    --bg-surface: #1e1e1c;
    --text-primary: #e8e4d8;
    --text-secondary: #c8c4b4;
    --text-muted: #7a7870;
    --accent: #a8c090;
    --accent-hover: #b8d0a0;
    --accent-dim: rgba(168, 192, 144, 0.12);
    --border: #3a3a36;
    --border-bright: #a8c090;
    --error: #d47060;
    --warning: #c4a860;
    --success: #80b890;
    --info: #7098b8;
    --cursor-color: #e8e4d8;
    --selection-bg: rgba(168, 192, 144, 0.15);
    --scrollbar-track: #1a1a18;
    --scrollbar-thumb: #3a3a36;
    --glow: none;
    --nav-bg: #131312;
    --sidebar-bg: #171715;
    --chart-grid: rgba(232, 228, 216, 0.06);
    --chart-line-1: #a8c090;
    --chart-line-2: #7098b8;
    --chart-line-3: #c4a860;
    --chart-line-4: #d47060;
    --chart-fill-1: rgba(168, 192, 144, 0.14);
    --chart-fill-2: rgba(112, 152, 184, 0.14);
}

/* ── LIGHT THEMES ────────────────────────── */

[data-theme="paper"] {
    --bg-primary: #f5f0e8;
    --bg-secondary: #ebe5da;
    --bg-tertiary: #e0d9cc;
    --bg-surface: #f0ebe3;
    --text-primary: #2c2416;
    --text-secondary: #4a3f2f;
    --text-muted: #8a7e6b;
    --accent: #8b5e3c;
    --accent-hover: #a06b3f;
    --accent-dim: rgba(139, 94, 60, 0.1);
    --border: #d4cbb8;
    --border-bright: #8b5e3c;
    --error: #c0392b;
    --warning: #d4a017;
    --success: #2e7d32;
    --info: #1565c0;
    --cursor-color: #2c2416;
    --selection-bg: rgba(139, 94, 60, 0.15);
    --scrollbar-track: #f5f0e8;
    --scrollbar-thumb: #d4cbb8;
    --glow: 0 0 6px rgba(139, 94, 60, 0.15);
    --nav-bg: #ece7de;
    --sidebar-bg: #f0ebe3;
    --chart-grid: rgba(44, 36, 22, 0.06);
    --chart-line-1: #8b5e3c;
    --chart-line-2: #1565c0;
    --chart-line-3: #2e7d32;
    --chart-line-4: #c0392b;
    --chart-fill-1: rgba(139, 94, 60, 0.12);
    --chart-fill-2: rgba(21, 101, 192, 0.12);
}

[data-theme="solarized-light"] {
    --bg-primary: #fdf6e3;
    --bg-secondary: #eee8d5;
    --bg-tertiary: #e4ddc8;
    --bg-surface: #f5efdc;
    --text-primary: #586e75;
    --text-secondary: #657b83;
    --text-muted: #93a1a1;
    --accent: #2aa198;
    --accent-hover: #1a8a82;
    --accent-dim: rgba(42, 161, 152, 0.1);
    --border: #d6cdb7;
    --border-bright: #2aa198;
    --error: #dc322f;
    --warning: #b58900;
    --success: #859900;
    --info: #268bd2;
    --cursor-color: #586e75;
    --selection-bg: rgba(42, 161, 152, 0.12);
    --scrollbar-track: #fdf6e3;
    --scrollbar-thumb: #d6cdb7;
    --glow: 0 0 6px rgba(42, 161, 152, 0.12);
    --nav-bg: #f5efdc;
    --sidebar-bg: #f9f3e0;
    --chart-grid: rgba(88, 110, 117, 0.06);
    --chart-line-1: #2aa198;
    --chart-line-2: #268bd2;
    --chart-line-3: #b58900;
    --chart-line-4: #dc322f;
    --chart-fill-1: rgba(42, 161, 152, 0.12);
    --chart-fill-2: rgba(38, 139, 210, 0.12);
}

[data-theme="ice"] {
    --bg-primary: #eef2f7;
    --bg-secondary: #e3e9f0;
    --bg-tertiary: #d6dee8;
    --bg-surface: #e8edf3;
    --text-primary: #1e3a5f;
    --text-secondary: #2d5986;
    --text-muted: #7a8ea3;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-dim: rgba(37, 99, 235, 0.08);
    --border: #c8d3e0;
    --border-bright: #2563eb;
    --error: #dc2626;
    --warning: #d97706;
    --success: #16a34a;
    --info: #2563eb;
    --cursor-color: #1e3a5f;
    --selection-bg: rgba(37, 99, 235, 0.12);
    --scrollbar-track: #eef2f7;
    --scrollbar-thumb: #c8d3e0;
    --glow: 0 0 6px rgba(37, 99, 235, 0.12);
    --nav-bg: #e6ecf2;
    --sidebar-bg: #eaeef5;
    --chart-grid: rgba(30, 58, 95, 0.06);
    --chart-line-1: #2563eb;
    --chart-line-2: #16a34a;
    --chart-line-3: #d97706;
    --chart-line-4: #dc2626;
    --chart-fill-1: rgba(37, 99, 235, 0.12);
    --chart-fill-2: rgba(22, 163, 74, 0.12);
}

[data-theme="oxide"] {
    --bg-primary: #f3f0ed;
    --bg-secondary: #e8e4df;
    --bg-tertiary: #ddd7d0;
    --bg-surface: #edeae5;
    --text-primary: #3b2f2f;
    --text-secondary: #5c4a4a;
    --text-muted: #9a8a84;
    --accent: #c45d3e;
    --accent-hover: #a84b30;
    --accent-dim: rgba(196, 93, 62, 0.08);
    --border: #d1c8c0;
    --border-bright: #c45d3e;
    --error: #c0392b;
    --warning: #d4a017;
    --success: #4a8c5c;
    --info: #5b7fa5;
    --cursor-color: #3b2f2f;
    --selection-bg: rgba(196, 93, 62, 0.12);
    --scrollbar-track: #f3f0ed;
    --scrollbar-thumb: #d1c8c0;
    --glow: 0 0 6px rgba(196, 93, 62, 0.12);
    --nav-bg: #eae6e2;
    --sidebar-bg: #efebe7;
    --chart-grid: rgba(59, 47, 47, 0.06);
    --chart-line-1: #c45d3e;
    --chart-line-2: #5b7fa5;
    --chart-line-3: #4a8c5c;
    --chart-line-4: #c0392b;
    --chart-fill-1: rgba(196, 93, 62, 0.12);
    --chart-fill-2: rgba(91, 127, 165, 0.12);
}

/* ── NEWSPAPER: Pure Black & White Terminal ── */
[data-theme="newspaper"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #ebebeb;
    --bg-surface: #fafafa;
    --text-primary: #000000;
    --text-secondary: #1a1a1a;
    --text-muted: #555555;
    --accent: #000000;
    --accent-hover: #333333;
    --accent-dim: rgba(0, 0, 0, 0.06);
    --border: #cccccc;
    --border-bright: #000000;
    --error: #000000;
    --warning: #333333;
    --success: #000000;
    --info: #333333;
    --cursor-color: #000000;
    --selection-bg: rgba(0, 0, 0, 0.10);
    --scrollbar-track: #ffffff;
    --scrollbar-thumb: #cccccc;
    --glow: none;
    --nav-bg: #f0f0f0;
    --sidebar-bg: #f7f7f7;
    --chart-grid: rgba(0, 0, 0, 0.06);
    --chart-line-1: #000000;
    --chart-line-2: #444444;
    --chart-line-3: #888888;
    --chart-line-4: #bbbbbb;
    --chart-fill-1: rgba(0, 0, 0, 0.10);
    --chart-fill-2: rgba(68, 68, 68, 0.10);
}

/* ── LINEN: Parchment & Deep Sepia ──────── */
[data-theme="linen"] {
    --bg-primary: #f9f4ec;
    --bg-secondary: #ede6d8;
    --bg-tertiary: #e2d8c6;
    --bg-surface: #f4efe5;
    --text-primary: #2d1f0e;
    --text-secondary: #4a3520;
    --text-muted: #9a8570;
    --accent: #7c4f2a;
    --accent-hover: #924f20;
    --accent-dim: rgba(124, 79, 42, 0.10);
    --border: #d6c8b0;
    --border-bright: #7c4f2a;
    --error: #a8302a;
    --warning: #b8861a;
    --success: #3d6e40;
    --info: #2a5878;
    --cursor-color: #2d1f0e;
    --selection-bg: rgba(124, 79, 42, 0.14);
    --scrollbar-track: #f9f4ec;
    --scrollbar-thumb: #d6c8b0;
    --glow: 0 0 5px rgba(124, 79, 42, 0.10);
    --nav-bg: #ede6d8;
    --sidebar-bg: #f2ece0;
    --chart-grid: rgba(45, 31, 14, 0.06);
    --chart-line-1: #7c4f2a;
    --chart-line-2: #2a5878;
    --chart-line-3: #3d6e40;
    --chart-line-4: #a8302a;
    --chart-fill-1: rgba(124, 79, 42, 0.12);
    --chart-fill-2: rgba(42, 88, 120, 0.12);
}

/* ── MINT: Clean White with Teal Accents ── */
[data-theme="mint"] {
    --bg-primary: #f7fdfc;
    --bg-secondary: #eaf8f5;
    --bg-tertiary: #d8f2ed;
    --bg-surface: #f0faf8;
    --text-primary: #0e3530;
    --text-secondary: #1a5248;
    --text-muted: #6a9e96;
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --accent-dim: rgba(13, 148, 136, 0.08);
    --border: #b2ddd8;
    --border-bright: #0d9488;
    --error: #dc2626;
    --warning: #d97706;
    --success: #16a34a;
    --info: #0d9488;
    --cursor-color: #0e3530;
    --selection-bg: rgba(13, 148, 136, 0.12);
    --scrollbar-track: #f7fdfc;
    --scrollbar-thumb: #b2ddd8;
    --glow: 0 0 6px rgba(13, 148, 136, 0.12);
    --nav-bg: #e4f5f2;
    --sidebar-bg: #eef8f6;
    --chart-grid: rgba(14, 53, 48, 0.06);
    --chart-line-1: #0d9488;
    --chart-line-2: #2563eb;
    --chart-line-3: #16a34a;
    --chart-line-4: #dc2626;
    --chart-fill-1: rgba(13, 148, 136, 0.12);
    --chart-fill-2: rgba(37, 99, 235, 0.12);
}
