/* ─── color-scheme for native selects ─── */
body.theme-dark, body.theme-terminal, body.theme-cyberpunk, body.theme-cyber,
body.theme-coffee, body.theme-lofi, body.theme-chocolate, body.theme-glass,
body.theme-bloody, body.theme-neon-void, body.theme-deep-sea, body.theme-lake,
body.theme-dracula, body.theme-sunset, body.theme-moon, body.theme-royal-gold,
body.theme-pixel, body.theme-win98 { color-scheme: dark; }

body.theme-cozy {
  --bg: #faf6f1;
  --bg2: #f0e9df;
  --bg3: #e8ddd0;
  --surface: #fff9f4;
  --surface2: #f5ede3;
  --border: #d9c9b8;
  --border2: #c9b59f;
  --text: #3d2b1f;
  --text2: #7a5c46;
  --text3: #a8896e;
  --accent: #c2734a;
  --accent2: #e8936b;
  --user-bg: #c2734a;
  --user-text: #fff9f4;
  --ai-bg: #f5ede3;
  --ai-text: #3d2b1f;
  --led-ready: #6bbf72;
  --led-gen: #e8b84b;
  --led-stop: #e05a5a;
  --input-bg: #fff9f4;
  --scrollbar: #d9c9b8;
  background: var(--bg);
  font-family: "Crimson Pro", Georgia, serif;
  --font-main: "Crimson Pro", Georgia, serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-size-base: 15px;
}

body.theme-win98 {
  --bg: #008080;
  --bg2: #006868;
  --bg3: #005050;
  --surface: #d4d0c8;
  --surface2: #c0c0c0;
  --border: #808080;
  --border2: #404040;
  --text: #000000;
  --text2: #404040;
  --text3: #606060;
  --accent: #000080;
  --accent2: #1084d0;
  --user-bg: #000080;
  --user-text: #ffffff;
  --ai-bg: #d4d0c8;
  --ai-text: #000000;
  --led-ready: #00c800;
  --led-gen: #ffff00;
  --led-stop: #ff0000;
  --input-bg: #ffffff;
  background: var(--bg);
  font-family: "Share Tech Mono", "Courier New", monospace;
  --font-main: "Share Tech Mono", "Courier New", monospace;
  --font-mono: "Share Tech Mono", monospace;
  --font-size-base: 13px;
  --radius: 0px;
  --radius-sm: 0px;
}

body.theme-win98 * {
  image-rendering: pixelated;
}

body.theme-pixel {
  --bg: #0d0118;
  --bg2: #130224;
  --bg3: #1a0430;
  --surface: #110120;
  --surface2: #1c0535;
  --border: #6a0dad;
  --border2: #00e5ff;
  --text: #f0e6ff;
  --text2: #c89cf0;
  --text3: #7a50a8;
  --accent: #e040fb;
  --accent2: #00e5ff;
  --user-bg: linear-gradient(135deg, #e040fb, #7b2ff7);
  --user-text: #ffffff;
  --ai-bg: #1c0535;
  --ai-text: #f0e6ff;
  --led-ready: #00e5ff;
  --led-gen: #e040fb;
  --led-stop: #ff1744;
  --input-bg: #110120;
  background: var(--bg);
  font-family: "Press Start 2P", monospace;
  --font-main: "Press Start 2P", monospace;
  --font-mono: "Press Start 2P", monospace;
  --font-size-base: 13px;
  --radius: 2px;
  --radius-sm: 2px;
}

body.theme-pixel .msg-text {
  line-height: 2.2;
}

body.theme-pixel .msg-bubble {
  font-size: 9px;
}

body.theme-pixel .opt-label {
  font-size: 8px;
}

body.theme-pixel .opt-select,
body.theme-pixel .opt-input {
  font-size: 8px;
}

body.theme-pixel .theme-btn {
  font-size: 8px;
  padding: 4px 2px;
}

body.theme-pixel #user-input {
  font-size: 9px;
}

body.theme-pixel .modal-box h2 {
  font-size: 10px;
}

body.theme-pixel .modal-box p {
  font-size: 8px;
}

body.theme-pixel .modal-btn {
  font-size: 8px;
}

body.theme-pixel #logo {
  font-size: 14px !important;
}
body.theme-pixel .response-time-badge {
  font-size: 8px !important;
}

body.theme-pixel .opt-file-btn {
  font-size: 8px;
  padding: 4px 2px;
}

body.theme-terminal {
  --bg: #0a0a0a;
  --bg2: #0f0f0f;
  --bg3: #141414;
  --surface: #0a0a0a;
  --surface2: #0f0f0f;
  --border: #00ff41;
  --border2: #39ff14;
  --text: #00ff41;
  --text2: #39ff14;
  --text3: #00cc33;
  --accent: #00ff41;
  --accent2: #39ff14;
  --user-bg: rgba(0, 255, 65, 0.08);
  --user-text: #39ff14;
  --ai-bg: #0a0a0a;
  --ai-text: #00ff41;
  --led-ready: #00ff41;
  --led-gen: #ffcc00;
  --led-stop: #ff3333;
  --input-bg: #0a0a0a;
  --glow-color: rgba(0, 255, 65, 0.15);
  --glow-strong: rgba(0, 255, 65, 0.3);
  --scanline-opacity: 0.03;
  --flicker-opacity: 0.98;

  background: var(--bg);
  font-family: "VT323", "Share Tech Mono", "Courier New", monospace;
  --font-main: "VT323", "Share Tech Mono", monospace;
  --font-mono: "VT323", "Share Tech Mono", monospace;
  --font-size-base: 14px;

  /* Subtle CRT flicker animation */
  animation: crt-flicker 4s infinite alternate;
}

/* ─── Scanlines overlay ─── */
body.theme-terminal::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, var(--scanline-opacity)) 2px,
    rgba(0, 0, 0, var(--scanline-opacity)) 4px
  );
}

/* ─── Vignette effect ─── */
body.theme-terminal::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* ─── CRT flicker animation ─── */
@keyframes crt-flicker {
  0% {
    opacity: 1;
  }
  5% {
    opacity: 0.98;
  }
  10% {
    opacity: 1;
  }
  15% {
    opacity: 0.97;
  }
  20% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  92% {
    opacity: 0.96;
  }
  94% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

/* ─── Text glow ─── */
body.theme-terminal * {
  text-shadow:
    0 0 2px var(--text3),
    0 0 8px var(--glow-color);
}

/* ─── Inputs — no glow, crisp text ─── */
body.theme-terminal input,
body.theme-terminal textarea,
body.theme-terminal select {
  text-shadow: none;
  caret-color: var(--accent);
  background: var(--input-bg);
  border: 1px solid rgba(0, 255, 65, 0.25);
  color: var(--text);
  font-family: var(--font-mono);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

body.theme-terminal input:focus,
body.theme-terminal textarea:focus,
body.theme-terminal select:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 6px var(--glow-color),
    inset 0 0 6px var(--glow-color);
  outline: none;
}

/* ─── Links ─── */
body.theme-terminal a {
  color: var(--accent2);
  text-decoration: none;
  text-shadow:
    0 0 4px var(--glow-color),
    0 0 12px var(--glow-color);
  transition: text-shadow 0.2s ease;
}

body.theme-terminal a:hover {
  color: #fff;
  text-shadow:
    0 0 6px var(--accent2),
    0 0 20px var(--glow-strong);
}

/* ─── Scrollbar ─── */
body.theme-terminal ::-webkit-scrollbar {
  width: 6px;
}

body.theme-terminal ::-webkit-scrollbar-track {
  background: var(--bg);
}

body.theme-terminal ::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 65, 0.2);
  border-radius: 3px;
}

body.theme-terminal ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 65, 0.4);
}

/* ─── Selection ─── */
body.theme-terminal ::selection {
  background: rgba(0, 255, 65, 0.25);
  color: #fff;
}

/* ─── Buttons ─── */
body.theme-terminal button {
  font-family: var(--font-mono);
  background: transparent;
  border: 1px solid rgba(0, 255, 65, 0.3);
  color: var(--text);
  text-shadow: 0 0 4px var(--glow-color);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

body.theme-terminal button:hover {
  border-color: var(--accent);
  background: rgba(0, 255, 65, 0.06);
  box-shadow:
    0 0 10px var(--glow-color),
    inset 0 0 10px var(--glow-color);
  color: var(--accent2);
}

body.theme-terminal button:active {
  background: rgba(0, 255, 65, 0.12);
}

/* ─── LED indicator pulses ─── */
@keyframes led-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

body.theme-terminal .led-generating {
  animation: led-pulse 0.8s ease-in-out infinite;
}

body.theme-dark {
  --bg: #000000;
  --bg2: #0a0a0a;
  --bg3: #111111;
  --surface: #111111;
  --surface2: #1a1a1a;
  --border: #2a2a2a;
  --border2: #3a3a3a;
  --text: #ffffff;
  --text2: #b0b0b0;
  --text3: #666666;
  --accent: #ffffff;
  --accent2: #cccccc;
  --user-bg: #ffffff;
  --user-text: #000000;
  --ai-bg: #1a1a1a;
  --ai-text: #ffffff;
  --led-ready: #4ade80;
  --led-gen: #facc15;
  --led-stop: #f87171;
  --input-bg: #111111;
  --scrollbar: #ffffff;
  background: var(--bg);
  font-family: "Montserrat", sans-serif;
  --font-main: "Montserrat", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-size-base: 13px;
}

body.theme-dark .btn-primary {
  color: #111111;
}

body.theme-coffee {
  --bg: #1c1007;
  --bg2: #251608;
  --bg3: #2e1c0a;
  --surface: #1e1208;
  --surface2: #2a1a0c;
  --border: #4a3020;
  --border2: #5e3e28;
  --text: #f5deb3;
  --text2: #c8a87a;
  --text3: #8a6a44;
  --accent: #d4843e;
  --accent2: #e8a05a;
  --user-bg: #c4712c;
  --user-text: #fff8f0;
  --ai-bg: #2a1a0c;
  --ai-text: #f5deb3;
  --led-ready: #7ec850;
  --led-gen: #e8c050;
  --led-stop: #e05050;
  --input-bg: #1e1208;
  --scrollbar: #4a3020;
  background: var(--bg);
  font-family: "Crimson Pro", Georgia, serif;
  --font-main: "Crimson Pro", Georgia, serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-size-base: 15px;
}

body.theme-pistachio {
  --bg: #f0f7ec;
  --bg2: #e4f0dd;
  --bg3: #d4e8ca;
  --surface: #f7fbf5;
  --surface2: #e8f4e2;
  --border: #b8d9a8;
  --border2: #9eca8c;
  --text: #1e3a18;
  --text2: #3d6635;
  --text3: #6a9b5e;
  --accent: #4a8c3a;
  --accent2: #64a850;
  --user-bg: #4a8c3a;
  --user-text: #f0fbec;
  --ai-bg: #e8f4e2;
  --ai-text: #1e3a18;
  --led-ready: #4ade80;
  --led-gen: #a3e635;
  --led-stop: #f87171;
  --input-bg: #f7fbf5;
  --scrollbar: #b8d9a8;
  background: var(--bg);
  font-family: "IBM Plex Mono", monospace;
  --font-main: "IBM Plex Mono", monospace;
  --font-mono: "IBM Plex Mono", monospace;
  --font-size-base: 13px;
}

/* ====================== LO-FI THEME ====================== */
body.theme-lofi {
  --bg: #2a2420;
  --bg2: #322c27;
  --bg3: #3a342e;
  --surface: #2f2924;
  --surface2: #3d3630;
  --border: #665f55;
  --border2: #8b8173;
  --text: #e8e0d4;
  --text2: #b8ab9a;
  --text3: #7c7164;
  --accent: #c9a26f;
  --accent2: #8b9a7c;
  --user-bg: linear-gradient(135deg, #c9a26f, #a88b5e);
  --user-text: #2a2420;
  --ai-bg: #3d3630;
  --ai-text: #e8e0d4;
  --led-ready: #8b9a7c;
  --led-gen: #c9a26f;
  --led-stop: #b85c4a;
  --input-bg: #28231f;
  --scrollbar: #8b8173;
  background: var(--bg);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  --font-main: "IBM Plex Mono", monospace;
  --font-mono: "IBM Plex Mono", monospace;
  --font-size-base: 14px;
  --radius: 6px;
  --radius-sm: 4px;
}

body.theme-chocolate {
  /* ─── Core palette ─── */
  --bg: #1a1410;
  --bg2: #201a15;
  --bg3: #2a221c;
  --surface: #1c1612;
  --surface2: #241e18;
  --border: #8b7355;
  --border2: #a08860;
  --text: #d4c4a8;
  --text2: #e0d4bc;
  --text3: #b8a888;
  --accent: #c08040;
  --accent2: #d09050;
  --user-bg: rgba(192, 128, 64, 0.08);
  --user-text: #e0d4bc;
  --ai-bg: #181410;
  --ai-text: #d4c4a8;
  --led-ready: #7a7a50;
  --led-gen: #c8a050;
  --led-stop: #8b4030;
  --input-bg: #1a1410;

  background: var(--bg);
  font-family: "Josefin Sans", "Quicksand", "Raleway", sans-serif;
  --font-main: "Josefin Sans", "Quicksand", sans-serif;
  --font-mono: "DM Mono", " Plex Mono", monospace;
  --font-size-base: 14px;
}

body.theme-glass {
  --bg: transparent;
  --bg2: rgba(255, 255, 255, 0.08);
  --bg3: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.12);
  --surface2: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.25);
  --border2: rgba(255, 255, 255, 0.4);
  --text: #ffffff;
  --text2: rgba(255, 255, 255, 0.75);
  --text3: rgba(255, 255, 255, 0.45);
  --accent: rgba(255, 255, 255, 0.9);
  --accent2: rgba(200, 220, 255, 0.9);
  --user-bg: rgba(255, 255, 255, 0.22);
  --user-text: #ffffff;
  --ai-bg: rgba(255, 255, 255, 0.1);
  --ai-text: #ffffff;
  --led-ready: #4ade80;
  --led-gen: #facc15;
  --led-stop: #f87171;
  --input-bg: rgba(255, 255, 255, 0.1);
  --scrollbar: rgba(255, 255, 255, 0.2);
  font-family: "IBM Plex Mono", monospace;
  --font-main: "IBM Plex Mono", monospace;
  --font-mono: "IBM Plex Mono", monospace;
  --font-size-base: 13px;
  color-scheme: dark;
}

body.theme-glass {
  background:
    radial-gradient(
      ellipse at 20% 20%,
      rgba(120, 80, 255, 0.45) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(0, 180, 255, 0.4) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 60% 10%,
      rgba(255, 80, 180, 0.35) 0%,
      transparent 50%
    ),
    #0a0a18;
  background-attachment: fixed;
}

body.theme-glass #app,
body.theme-glass #topbar,
body.theme-glass #options-panel,
body.theme-glass #input-area,
body.theme-glass #sidebar,
body.theme-glass .modal-box {
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
}

body.theme-glass #app {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

body.theme-glass #topbar {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

body.theme-glass #input-area {
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

body.theme-glass #user-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

body.theme-glass #user-input:focus {
  border-color: rgba(255, 255, 255, 0.6);
}

body.theme-glass #send-btn {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

body.theme-glass #send-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

body.theme-glass .msg-bubble {
  backdrop-filter: blur(8px);
}

body.theme-glass .msg-bubble.user {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

body.theme-glass .msg-bubble.ai {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

body.theme-glass .theme-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

body.theme-glass .theme-btn:hover,
body.theme-glass .theme-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

body.theme-glass .opt-select,
body.theme-glass .opt-input {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
body.theme-glass .opt-select option {
  background: #1a1a2e;
  color: #fff;
}

body.theme-glass #messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
}

body.theme-cyberpunk {
  --bg: #050010;
  --bg2: #08001a;
  --bg3: #0c0020;
  --surface: #06001a;
  --surface2: #0e0028;
  --border: #ff00aa;
  --border2: #00f0ff;
  --text: #f0e0ff;
  --text2: #c080f0;
  --text3: #7030a0;
  --accent: #ff00aa;
  --accent2: #00f0ff;
  --user-bg: linear-gradient(135deg, #ff00aa, #aa00ff);
  --user-text: #ffffff;
  --ai-bg: #0e0028;
  --ai-text: #f0e0ff;
  --led-ready: #00f0ff;
  --led-gen: #ff00aa;
  --led-stop: #ff3030;
  --input-bg: #080018;
  --scrollbar: #aa00ff;
  background: var(--bg);
  font-family: "Share Tech Mono", "Courier New", monospace;
  --font-main: "Share Tech Mono", monospace;
  --font-mono: "Share Tech Mono", monospace;
  --font-size-base: 13px;
  --radius: 0px;
  --radius-sm: 0px;
}

body.theme-cyberpunk #app {
  border: 1px solid #ff00aa;
  box-shadow:
    0 0 30px rgba(255, 0, 170, 0.2),
    inset 0 0 30px rgba(0, 240, 255, 0.03);
}

body.theme-cyberpunk #topbar {
  background: #06001a;
  border-bottom: 2px solid #ff00aa;
  box-shadow: 0 2px 20px rgba(255, 0, 170, 0.4);
}

body.theme-cyberpunk #logo {
  color: #00f0ff !important;
  text-shadow:
    0 0 10px #00f0ff,
    0 0 20px #00f0ff;
  letter-spacing: 6px;
}

body.theme-cyberpunk #input-area {
  border-top: 2px solid #ff00aa;
  background: #06001a;
}

body.theme-cyberpunk #user-input {
  border: 1px solid #ff00aa;
  background: #060012;
  color: #f0e0ff;
  caret-color: #00f0ff;
}

body.theme-cyberpunk #user-input:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

body.theme-cyberpunk #send-btn {
  background: #ff00aa;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 0, 170, 0.6);
}

body.theme-cyberpunk #send-btn:hover {
  background: #cc0088;
  box-shadow: 0 0 20px rgba(255, 0, 170, 0.9);
}

body.theme-cyberpunk .msg-bubble.user {
  background: linear-gradient(135deg, #ff00aa22, #aa00ff22);
  border: 1px solid #ff00aa;
  box-shadow: 0 0 8px rgba(255, 0, 170, 0.3);
}

body.theme-cyberpunk .msg-bubble.ai {
  background: #0c0022;
  border: 1px solid #00f0ff44;
}

body.theme-cyberpunk .theme-btn {
  border-color: #ff00aa44;
  color: #c080f0;
  background: #0a0020;
}

body.theme-cyberpunk .theme-btn:hover,
body.theme-cyberpunk .theme-btn.active {
  background: #ff00aa;
  color: #fff;
  border-color: #ff00aa;
  box-shadow: 0 0 10px rgba(255, 0, 170, 0.5);
}

body.theme-cyberpunk .opt-select,
body.theme-cyberpunk .opt-input {
  background: #060012;
  border-color: #ff00aa44;
  color: #f0e0ff;
}

body.theme-cyberpunk::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 0, 170, 0.015) 3px,
    rgba(255, 0, 170, 0.015) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

body.theme-cyberpunk #messages::-webkit-scrollbar-thumb {
  background: #ff00aa;
  box-shadow: 0 0 6px #ff00aa;
}

body.theme-cyberpunk .modal-box {
  border: 2px solid #ff00aa;
  box-shadow: 0 0 30px rgba(255, 0, 170, 0.4);
}

body.theme-banana {
  --bg: #fef9c3;
  --bg2: #fef08a;
  --bg3: #fde047;
  --surface: #fefce8;
  --surface2: #fef9c3;
  --border: #eab308;
  --border2: #ca8a04;
  --text: #1c1400;
  --text2: #713f12;
  --text3: #a16207;
  --accent: #ca8a04;
  --accent2: #eab308;
  --user-bg: #ca8a04;
  --user-text: #fefce8;
  --ai-bg: #fef9c3;
  --ai-text: #1c1400;
  --led-ready: #4ade80;
  --led-gen: #f97316;
  --led-stop: #ef4444;
  --input-bg: #fefce8;
  --scrollbar: #fde047;
  background: var(--bg);
  font-family: "IBM Plex Mono", monospace;
  --font-main: "IBM Plex Mono", monospace;
  --font-mono: "IBM Plex Mono", monospace;
  --font-size-base: 13px;
}

body.theme-banana #app {
  background: #fefce8;
}

body.theme-banana #topbar {
  background: #fef08a;
  border-bottom: 2px solid #eab308;
}

body.theme-banana #logo {
  color: #92400e !important;
}

body.theme-banana #send-btn {
  background: #ca8a04;
  color: #fefce8;
}

body.theme-banana .msg-bubble.user {
  background: #ca8a04;
  color: #fefce8;
}

body.theme-banana .msg-bubble.ai {
  background: #fef9c3;
  border: 1px solid #eab308;
}

body.theme-banana .theme-btn {
  background: #fef9c3;
  border-color: #eab308;
  color: #713f12;
}

body.theme-banana .theme-btn:hover,
body.theme-banana .theme-btn.active {
  background: #ca8a04;
  color: #fefce8;
  border-color: #ca8a04;
}

body.theme-banana #user-input {
  background: #fefce8;
  border-color: #eab308;
  color: #1c1400;
}

body.theme-banana #user-input:focus {
  border-color: #ca8a04;
}

body.theme-banana #input-area {
  background: #fef9c3;
  border-top: 2px solid #eab308;
}

body.theme-banana #messages::-webkit-scrollbar-thumb {
  background: #eab308;
}

body.theme-banana .opt-select,
body.theme-banana .opt-input {
  background: #fefce8;
  border-color: #eab308;
  color: #1c1400;
}

body.theme-banana .modal-box {
  border-color: #eab308;
  background: #fefce8;
}

body.theme-simplewhite {
  --bg: #ffffff;
  --bg2: #f8f8f8;
  --bg3: #f0f0f0;
  --surface: #ffffff;
  --surface2: #f5f5f5;
  --border: #d0d0d0;
  --border2: #b0b0b0;
  --text: #000000;
  --text2: #333333;
  --text3: #888888;
  --accent: #000000;
  --accent2: #333333;
  --user-bg: #000000;
  --user-text: #ffffff;
  --ai-bg: #f5f5f5;
  --ai-text: #000000;
  --led-ready: #22c55e;
  --led-gen: #eab308;
  --led-stop: #ef4444;
  --input-bg: #ffffff;
  --scrollbar: #d0d0d0;
  background: #ffffff;
  font-family: "Montserrat", sans-serif;
  --font-main: "Montserrat", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-size-base: 13px;
}

body.theme-simplewhite #app {
  background: #ffffff;
  border: 1px solid #d0d0d0;
}

body.theme-simplewhite #topbar {
  background: #ffffff;
  border-bottom: 1px solid #d0d0d0;
}

body.theme-simplewhite #logo {
  color: #000000 !important;
}

body.theme-simplewhite #send-btn {
  background: #000000;
  color: #ffffff;
}

body.theme-simplewhite #send-btn:hover {
  background: #333333;
}

body.theme-simplewhite .msg-bubble.user {
  background: #000000;
  color: #ffffff;
}

body.theme-simplewhite .msg-bubble.ai {
  background: #f5f5f5;
  border: 1px solid #d0d0d0;
  color: #000000;
}

body.theme-simplewhite .theme-btn {
  background: #ffffff;
  border-color: #d0d0d0;
  color: #333333;
}

body.theme-simplewhite .theme-btn:hover,
body.theme-simplewhite .theme-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

body.theme-simplewhite #user-input {
  background: #ffffff;
  border-color: #d0d0d0;
  color: #000000;
}

body.theme-simplewhite #user-input:focus {
  border-color: #000000;
}

body.theme-simplewhite #input-area {
  background: #ffffff;
  border-top: 1px solid #d0d0d0;
}

body.theme-simplewhite #messages::-webkit-scrollbar-thumb {
  background: #c0c0c0;
}

body.theme-simplewhite .opt-select,
body.theme-simplewhite .opt-input {
  background: #ffffff;
  border-color: #d0d0d0;
  color: #000000;
}

body.theme-simplewhite .modal-box {
  border-color: #d0d0d0;
  background: #ffffff;
}

body.theme-simplewhite .modal-btn {
  color: #ffffff;
}

body.theme-simplewhite #sidebar {
  background: #ffffff;
  border-right: 1px solid #d0d0d0;
}

body.theme-bloody {
  /* Paleta kolorów - bardziej agresywna i "brudna" */
  --bg: #0f0505;
  --bg2: #1a0808;
  --bg3: #260a0a;
  --surface: #140505;
  --surface2: #1f0707;
  --border: #5a0000;
  --border2: #990000;
  --text: #e0cccc; /* Nie czysta biel, lekko zanieczyszczona */
  --text2: #b36666;
  --text3: #804040;
  --accent: #cc0000;
  --accent2: #ff0000;
  --user-bg: #990000;
  --user-text: #ffcccc;
  --ai-bg: #1a0808;
  --ai-text: #d0cccc;
  --led-ready: #ff0000;
  --led-gen: #cc6600;
  --led-stop: #660000;
  --input-bg: #0f0505;
  --scrollbar: #660000;

  /* Tyografia - "brzydka" i systemowa */
  font-family:
    "Courier New",
    Courier,
    "Lucida Sans Typewriter",
    "Lucida Console",
    monospace,
    system-ui,
    -apple-system,
    sans-serif;
  --font-main: "Courier New", Courier, monospace;
  --font-mono: "Courier New", Courier, monospace;
  --font-size-base: 13px; /* Nieparzysta wielkość dla "nieidealnego" renderowania */
  --radius: 2px; /* Lekko zaokrąglone, ale niesymetryczne */
  --radius-sm: 1px;

  background: var(--bg);
  letter-spacing: -0.5px; /* Lekko zbita czcionka dla "brzydkiego" efektu */
}

body.theme-bloody #app {
  background: var(--bg);
  border: 2px solid var(--border);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

body.theme-bloody #topbar {
  background: var(--surface2);
  border-bottom: 3px solid var(--accent);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.theme-bloody #logo {
  color: var(--accent) !important;
  text-shadow: 2px 2px 0px #000;
  font-family: "Courier New", monospace !important;
  font-weight: 900;
}

body.theme-bloody .msg-bubble.user {
  background: var(--user-bg);
  border: 1px solid var(--accent2);
  color: var(--user-text);
  border-radius: 0; /* Kanciaste */
  box-shadow: 2px 2px 0px #000;
  font-weight: normal;
}

body.theme-bloody .msg-bubble.ai {
  background: var(--ai-bg);
  border: 1px solid var(--border);
  color: var(--ai-text);
  border-radius: 0;
  box-shadow: 2px 2px 0px #000;
  font-family: "Courier New", monospace;
}

body.theme-bloody .theme-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: "Courier New", monospace;
  text-transform: uppercase;
  font-size: 11px;
  border-radius: 0;
}

body.theme-bloody .theme-btn:hover,
body.theme-bloody .theme-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent2);
  box-shadow: 0 0 5px var(--accent);
}

body.theme-bloody #user-input {
  background: var(--input-bg);
  border: 2px solid var(--border);
  color: var(--text);
  font-family: "Courier New", monospace;
  border-radius: 0;
}

body.theme-bloody #user-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: inset 0 0 10px rgba(204, 0, 0, 0.3);
}

body.theme-bloody #input-area {
  background: var(--surface2);
  border-top: 3px solid var(--border);
}

body.theme-bloody #messages::-webkit-scrollbar-thumb {
  background: var(--accent);
  border: 1px solid #000;
}

body.theme-bloody .modal-box {
  border: 2px solid var(--accent);
  background: var(--surface2);
  font-family: "Courier New", monospace;
}

body.theme-bloody::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 50%,
      transparent 30%,
      rgba(50, 0, 0, 0.4) 100%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.1) 0px,
      rgba(0, 0, 0, 0.1) 1px,
      transparent 1px,
      transparent 2px
    ); /* Efekt "ziarna" / starych monitorów */
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

body.theme-solar-flare {
  --bg: #fffdf5; /* bardzo jasny, ciepły krem */
  --bg2: #fff8e1;
  --bg3: #ffecb3;
  --surface: #ffffff;
  --surface2: #fffaf0;
  --border: #e0d0a0;
  --border2: #d0c090;
  --text: #333333; /* głęboka szarość dla czytelności */
  --text2: #555555;
  --text3: #777777;
  --accent: #ff9800; /* ciepły pomarańcz */
  --accent2: #ff5722; /* głęboka czerwień pomarańczowa */
  --user-bg: linear-gradient(135deg, #ff9800, #ff5722);
  --user-text: #ffffff;
  --ai-bg: #fffaf0;
  --ai-text: #333333;
  --led-ready: #4caf50;
  --led-gen: #ff9800;
  --led-stop: #f44336;
  --input-bg: #ffffff;
  --scrollbar: #ff9800;

  /* Typografia - nowoczesna i czytelna */
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-main: "Segoe UI", Roboto, sans-serif;
  --font-mono: "Consolas", "Courier New", monospace;
  --font-size-base: 14px;
  --radius: 12px; /* Płynne zaokrąglenia */
  --radius-sm: 6px;

  background: var(--bg);
  letter-spacing: 0.2px;
}

body.theme-solar-flare #app {
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.1);
}

body.theme-solar-flare #logo {
  color: var(--accent) !important;
  text-shadow: 0 0 5px rgba(255, 152, 0, 0.3);
  font-weight: 700;
  letter-spacing: 1px;
}

body.theme-solar-flare .msg-bubble.user {
  background: var(--user-bg);
  border: none;
  color: var(--user-text);
  border-radius: var(--radius-sm) var(--radius-sm) 0 var(--radius-sm);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.theme-solar-flare .msg-bubble.ai {
  background: var(--ai-bg);
  border: 1px solid var(--border);
  color: var(--ai-text);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

body.theme-solar-flare .theme-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

body.theme-solar-flare .theme-btn:hover,
body.theme-solar-flare .theme-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

body.theme-solar-flare #user-input {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
}

body.theme-solar-flare #user-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.2);
}

body.theme-solar-flare #input-area {
  background: var(--surface2);
  border-top: 1px solid var(--border);
}

body.theme-solar-flare #messages::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 4px;
}

body.theme-solar-flare #messages::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

body.theme-solar-flare .modal-box {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

body.theme-solar-flare::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(255, 152, 0, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(255, 87, 34, 0.1) 0%,
      transparent 40%
    );
  pointer-events: none;
  z-index: -1;
}

body.theme-royal-gold {
  /* Paleta kolorów - złoto i czerń */
  --bg: #0a0a0a; /* Głęboka czerń */
  --bg2: #121212;
  --bg3: #1a1a1a;
  --surface: #111111;
  --surface2: #181818;
  --border: #b8860b; /* Ciemne złoto */
  --border2: #d4af37; /* Złoto */
  --text: #f5f5f5; /* Biały kremowy */
  --text2: #d4af37; /* Złoty tekst */
  --text3: #8b7355; /* Brązowy */
  --accent: #d4af37; /* Główne złoto */
  --accent2: #ffd700; /* Jaśniejsze złoto */
  --user-bg: linear-gradient(135deg, #b8860b, #8b6914);
  --user-text: #ffffff;
  --ai-bg: #121212;
  --ai-text: #f5f5f5;
  --led-ready: #d4af37;
  --led-gen: #ffd700;
  --led-stop: #8b7355;
  --input-bg: #111111;
  --scrollbar: #b8860b;

  /* Typografia - klasyczna i elegancka */
  font-family: "Georgia", "Times New Roman", serif;
  --font-main: "Georgia", serif;
  --font-mono: "Consolas", "Courier New", monospace;
  --font-size-base: 14px;
  --radius: 4px;
  --radius-sm: 2px;

  background: var(--bg);
  letter-spacing: 0.5px;
}

body.theme-royal-gold #app {
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

body.theme-royal-gold #topbar {
  background: var(--surface2);
  border-bottom: 2px solid var(--border);
}

body.theme-royal-gold #logo {
  color: var(--accent) !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  font-weight: bold;
}

body.theme-royal-gold .msg-bubble.user {
  background: var(--user-bg);
  border: 1px solid var(--border2);
  color: var(--user-text);
  border-radius: var(--radius-sm);
}

body.theme-royal-gold .msg-bubble.ai {
  background: var(--ai-bg);
  border: 1px solid var(--border);
  color: var(--ai-text);
  border-radius: var(--radius-sm);
}

body.theme-royal-gold .theme-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

body.theme-royal-gold .theme-btn:hover,
body.theme-royal-gold .theme-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent2);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

body.theme-royal-gold #user-input {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
}

body.theme-royal-gold #user-input:focus {
  border-color: var(--accent2);
  outline: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

body.theme-royal-gold #input-area {
  background: var(--surface2);
  border-top: 2px solid var(--border);
}

body.theme-royal-gold #messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

body.theme-royal-gold #messages::-webkit-scrollbar-thumb:hover {
  background: var(--accent2);
}

body.theme-royal-gold .modal-box {
  border: 1px solid var(--border);
  background: var(--surface2);
  border-radius: var(--radius);
}

body.theme-royal-gold::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(212, 175, 55, 0.05),
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

body.theme-deep-sea {
  /* Paleta kolorów - głębiny oceanu */
  --bg: #020c1b; /* Głęboki granat */
  --bg2: #0a192f;
  --bg3: #112240;
  --surface: #0a192f;
  --surface2: #112240;
  --border: #233554;
  --border2: #64ffda; /* Cyjan - bioluminescencja */
  --text: #ccd6f6; /* Jasny niebieski */
  --text2: #8892b0; /* Szary niebieski */
  --text3: #495670;
  --accent: #64ffda; /* Cyjan */
  --accent2: #00bfff; /* Jasny niebieski */
  --user-bg: linear-gradient(135deg, #112240, #233554);
  --user-text: #ccd6f6;
  --ai-bg: #0a192f;
  --ai-text: #ccd6f6;
  --led-ready: #64ffda;
  --led-gen: #00bfff;
  --led-stop: #233554;
  --input-bg: #0a192f;
  --scrollbar: #233554;

  /* Typografia - nowoczesna i czytelna */
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  --font-main: "Inter", sans-serif;
  --font-mono: "Fira Code", "Consolas", monospace;
  --font-size-base: 15px;
  --radius: 6px;
  --radius-sm: 3px;

  background: var(--bg);
  letter-spacing: 0.3px;
}

body.theme-deep-sea #app {
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 0 30px rgba(100, 255, 218, 0.05);
}

body.theme-deep-sea #topbar {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

body.theme-deep-sea #logo {
  color: var(--accent) !important;
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
  font-weight: 600;
}

body.theme-deep-sea .msg-bubble.user {
  background: var(--user-bg);
  border: 1px solid var(--border);
  color: var(--user-text);
  border-radius: var(--radius-sm) var(--radius-sm) 0 var(--radius-sm);
}

body.theme-deep-sea .msg-bubble.ai {
  background: var(--ai-bg);
  border: 1px solid var(--border);
  color: var(--ai-text);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-sm) 0;
}

body.theme-deep-sea .theme-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

body.theme-deep-sea .theme-btn:hover,
body.theme-deep-sea .theme-btn.active {
  background: var(--accent);
  color: #020c1b;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

body.theme-deep-sea #user-input {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
}

body.theme-deep-sea #user-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
}

body.theme-deep-sea #input-area {
  background: var(--surface2);
  border-top: 1px solid var(--border);
}

body.theme-deep-sea #messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

body.theme-deep-sea #messages::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

body.theme-deep-sea .modal-box {
  border: 1px solid var(--border);
  background: var(--surface2);
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

body.theme-deep-sea::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(100, 255, 218, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: -1;
}

body.theme-neon-void {
  /* Paleta kolorów - głęboki kosmos i neon */
  --bg: #0a0514; /* Głęboki fioletowy czarny */
  --bg2: #110a24;
  --bg3: #1a1033;
  --surface: #0f0820;
  --surface2: #150d2e;
  --border: #2a1a55;
  --border2: #4a2a88;
  --text: #e0e0ff; /* Biały z domieszką niebieskiego */
  --text2: #a0a0d0;
  --text3: #606090;
  --accent: #00ffff; /* Cyjan */
  --accent2: #ff00ff; /* Magenta */
  --user-bg: linear-gradient(135deg, #00b3b3, #008080);
  --user-text: #ffffff;
  --ai-bg: #150d2e;
  --ai-text: #e0e0ff;
  --led-ready: #00ffff;
  --led-gen: #ff00ff;
  --led-stop: #4a2a88;
  --input-bg: #0a0514;
  --scrollbar: #4a2a88;

  /* Typografia - nowoczesna i czytelna */
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-main: "Segoe UI", Roboto, sans-serif;
  --font-mono: "Consolas", "Courier New", monospace;
  --font-size-base: 14px;
  --radius: 8px; /* Płynne zaokrąglenia */
  --radius-sm: 4px;

  background: var(--bg);
  letter-spacing: 0.2px;
}

body.theme-neon-void #app {
  background: var(--bg);
  border: 1px solid var(--border2);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.05);
}

body.theme-neon-void #topbar {
  background: var(--surface2);
  border-bottom: 1px solid var(--border2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.theme-neon-void #logo {
  color: var(--accent) !important;
  text-shadow: 0 0 10px var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
}

body.theme-neon-void .msg-bubble.user {
  background: var(--user-bg);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: var(--user-text);
  border-radius: var(--radius-sm) var(--radius-sm) 0 var(--radius-sm);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.theme-neon-void .msg-bubble.ai {
  background: var(--ai-bg);
  border: 1px solid var(--border);
  color: var(--ai-text);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.theme-neon-void .theme-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

body.theme-neon-void .theme-btn:hover,
body.theme-neon-void .theme-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

body.theme-neon-void #user-input {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
}

body.theme-neon-void #user-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

body.theme-neon-void #input-area {
  background: var(--surface2);
  border-top: 1px solid var(--border2);
}

body.theme-neon-void #messages::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 4px;
}

body.theme-neon-void #messages::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

body.theme-neon-void .modal-box {
  border: 1px solid var(--border2);
  background: var(--surface2);
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

body.theme-neon-void::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 26, 85, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 26, 85, 0.3) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

body.theme-lake {
  --bg: #0a1f2f;
  --bg2: #0d2a3d;
  --bg3: #10354a;
  --surface: #0c2436;
  --surface2: #0f2d45;
  --border: #1e6b8c;
  --border2: #2a8fb3;
  --text: #d0f0ff;
  --text2: #a0d0e8;
  --text3: #70a0c0;
  --accent: #2a8fb3;
  --accent2: #5bc0eb;
  --user-bg: linear-gradient(135deg, #2a8fb3, #1e6b8c);
  --user-text: #ffffff;
  --ai-bg: #0f2d45;
  --ai-text: #d0f0ff;
  --led-ready: #5bc0eb;
  --led-gen: #90e0ef;
  --led-stop: #ff6b6b;
  --input-bg: #0c2436;
  --scrollbar: #1e6b8c;
  background: var(--bg);
  font-family: "IBM Plex Mono", monospace;
  --font-main: "IBM Plex Mono", monospace;
  --font-mono: "IBM Plex Mono", monospace;
  --font-size-base: 13px;
}

body.theme-lake #app {
  background: var(--bg);
}

body.theme-lake #topbar {
  background: var(--surface2);
  border-bottom: 1px solid #1e6b8c;
}

body.theme-lake #logo {
  color: #5bc0eb !important;
}

body.theme-lake .msg-bubble.user {
  background: linear-gradient(135deg, #2a8fb3, #1e6b8c);
}

body.theme-lake .msg-bubble.ai {
  background: #0f2d45;
  border: 1px solid #1e6b8c;
}

body.theme-lake .theme-btn {
  background: #0f2d45;
  border-color: #1e6b8c;
  color: #a0d0e8;
}

body.theme-lake .theme-btn:hover,
body.theme-lake .theme-btn.active {
  background: #2a8fb3;
  color: #fff;
}

body.theme-lake #user-input {
  background: #0c2436;
  border-color: #1e6b8c;
  color: #d0f0ff;
}

body.theme-lake #user-input:focus {
  border-color: #5bc0eb;
}

body.theme-lake #input-area {
  background: var(--surface2);
  border-top: 1px solid #1e6b8c;
}

body.theme-lake #messages::-webkit-scrollbar-thumb {
  background: #1e6b8c;
}

body.theme-lake .modal-box {
  border-color: #1e6b8c;
  background: var(--surface2);
}

body.theme-lake .reasoning-content {
  background: linear-gradient(135deg, #0a1f2f 0%, #0d2a3d 100%);
  border-color: #5bc0eb;
  color: #d0f0ff;
}

body.theme-lake .reasoning-content::before {
  background: linear-gradient(
    90deg,
    transparent,
    #5bc0eb,
    #90e0ef,
    transparent
  );
}

body.theme-lake .reasoning-content h3 {
  color: #90e0ef;
  text-shadow: 0 0 5px #5bc0eb;
}

body.theme-dracula {
  --bg: #282a36;
  --bg2: #21222c;
  --bg3: #191a21;
  --surface: #282a36;
  --surface2: #343746;
  --border: #bd93f9;
  --border2: #ff79c6;
  --text: #f8f8f2;
  --text2: #e0e0e0;
  --text3: #9a9a9a;
  --accent: #bd93f9;
  --accent2: #ff79c6;
  --user-bg: linear-gradient(135deg, #bd93f9, #6272a4);
  --user-text: #ffffff;
  --ai-bg: #21222c;
  --ai-text: #f8f8f2;
  --led-ready: #50fa7b;
  --led-gen: #f1fa8c;
  --led-stop: #ff5555;
  --input-bg: #282a36;
  --scrollbar: #bd93f9;
  background: var(--bg);
  font-family: "IBM Plex Mono", monospace;
  --font-main: "IBM Plex Mono", monospace;
  --font-mono: "IBM Plex Mono", monospace;
  --font-size-base: 13px;
}

body.theme-dracula #app {
  background: var(--bg);
  border: 1px solid #bd93f9;
}

body.theme-dracula #topbar {
  background: var(--surface2);
  border-bottom: 1px solid #bd93f9;
}

body.theme-dracula #logo {
  color: #bd93f9 !important;
  text-shadow: 0 0 5px #bd93f9;
}

body.theme-dracula .msg-bubble.user {
  background: linear-gradient(135deg, #bd93f9, #6272a4);
}

body.theme-dracula .msg-bubble.ai {
  background: #21222c;
  border: 1px solid #44475a;
}

body.theme-dracula .theme-btn {
  background: #21222c;
  border-color: #44475a;
  color: #e0e0e0;
}

body.theme-dracula .theme-btn:hover,
body.theme-dracula .theme-btn.active {
  background: #bd93f9;
  color: #282a36;
}

body.theme-dracula #user-input {
  background: #282a36;
  border-color: #44475a;
  color: #f8f8f2;
}

body.theme-dracula #user-input:focus {
  border-color: #bd93f9;
}

body.theme-dracula #input-area {
  background: var(--surface2);
  border-top: 1px solid #bd93f9;
}

body.theme-dracula #messages::-webkit-scrollbar-thumb {
  background: #bd93f9;
}

body.theme-dracula .modal-box {
  border-color: #bd93f9;
  background: var(--surface2);
}

body.theme-dracula .reasoning-content {
  background: linear-gradient(135deg, #282a36 0%, #21222c 100%);
  border-color: #ff79c6;
  color: #f8f8f2;
}

body.theme-dracula .reasoning-content::before {
  background: linear-gradient(
    90deg,
    transparent,
    #ff79c6,
    #bd93f9,
    transparent
  );
}

body.theme-dracula .reasoning-content h3 {
  color: #ff79c6;
  text-shadow: 0 0 5px #ff79c6;
}

body.theme-pinky {
  --bg: #fff0f5; /* Lavender Blush */
  --bg2: #ffe4ec;
  --bg3: #ffd6e0;
  --surface: #fff5f8;
  --surface2: #ffeef3;
  --border: #ffb6c1; /* Light Pink */
  --border2: #ff91a4;
  --text: #5c2a3a;
  --text2: #8a4a5a;
  --text3: #b06a7a;
  --accent: #ff69b4; /* Hot Pink */
  --accent2: #ff85c1;
  --user-bg: linear-gradient(135deg, #ff69b4, #ff1493);
  --user-text: #ffffff;
  --ai-bg: #ffeef3;
  --ai-text: #5c2a3a;
  --led-ready: #ff69b4;
  --led-gen: #ffb6c1;
  --led-stop: #ff1493;
  --input-bg: #fff5f8;
  --scrollbar: #ffb6c1;
  background: var(--bg);
  font-family: "Varela Round", "Segoe UI", sans-serif;
  --font-main: "Varela Round", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-size-base: 14px;
  --radius: 16px;
  --radius-sm: 10px;
}

body.theme-pinky #app {
  background: var(--bg);
  border: 2px solid var(--border);
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.15);
}

body.theme-pinky #topbar {
  background: var(--surface2);
  border-bottom: 2px solid var(--border);
}

body.theme-pinky #logo {
  color: var(--accent) !important;
  font-weight: 700;
  letter-spacing: 1px;
}

body.theme-pinky .msg-bubble.user {
  background: var(--user-bg);
  color: var(--user-text);
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

body.theme-pinky .msg-bubble.ai {
  background: var(--ai-bg);
  color: var(--ai-text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

body.theme-pinky .theme-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 20px;
}

body.theme-pinky .theme-btn:hover,
body.theme-pinky .theme-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.4);
}

body.theme-pinky #user-input {
  background: var(--input-bg);
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: 20px;
}

body.theme-pinky #user-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
}

body.theme-pinky #input-area {
  background: var(--surface2);
  border-top: 2px solid var(--border);
}

body.theme-pinky #send-btn {
  background: var(--accent);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.4);
}

body.theme-pinky #send-btn:hover {
  background: var(--accent2);
  transform: scale(1.05);
}

body.theme-pinky #messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

body.theme-pinky .modal-box {
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

body.theme-pinky .reasoning-content {
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 100%);
  border: 1px solid #ffb6c1;
  color: #5c2a3a;
}

body.theme-pinky .reasoning-content::before {
  background: linear-gradient(
    90deg,
    transparent,
    #ff69b4,
    #ffb6c1,
    transparent
  );
}

body.theme-pinky .reasoning-content h3 {
  color: #ff69b4;
  text-shadow: 0 0 5px #ffb6c1;
}

body.theme-win98 .win98-titlebar {
  display: flex;
}

body.theme-win98 #topbar {
  background: var(--surface2);
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  margin: 2px;
  padding: 6px 10px;
}

body.theme-pixel #logo {
  font-size: 11px;
  text-shadow: 2px 2px var(--border);
}

body.theme-terminal #logo {
  font-size: 22px;
  color: var(--accent);
}

body.theme-win98 #logo {
  font-size: 14px;
}

body.theme-win98 #led {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #404040;
}

body.theme-pixel #led {
  border-radius: 0;
  box-shadow: 0 0 8px currentColor;
}

body.theme-win98 .icon-btn {
  border: 1px solid;
  border-color: #fff #808080 #808080 #fff;
  background: var(--surface2);
  color: #000;
}

body.theme-pixel .icon-btn {
  border: 2px solid var(--accent);
  box-shadow: 2px 2px 0 var(--border2);
}

body.theme-win98 #sidebar {
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  border-left: none;
}

body.theme-pixel #welcome h2 {
  font-size: 12px;
}

body.theme-terminal #welcome h2 {
  font-size: 28px;
}

body.theme-win98 .msg-row.ai .msg-bubble {
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
}

body.theme-win98 .msg-row.user .msg-bubble {
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
}

body.theme-cozy .msg-text code:not(pre code) {
  color: #c2734a;
}

body.theme-cozy .msg-text pre code {
  background: #2d2019 !important;
  color: #f0dcc6 !important;
}

body.theme-win98 .msg-text pre code {
  background: #000080 !important;
  color: #ffffff !important;
  font-family: "Share Tech Mono", monospace !important;
}

body.theme-pixel .msg-text pre code {
  background: #0a0a1a !important;
  color: #e0e0ff !important;
}

body.theme-terminal .msg-text pre code {
  background: #000 !important;
  color: #00ff41 !important;
  font-family: "VT323", monospace !important;
  font-size: 18px !important;
}

body.theme-dark .msg-text pre code {
  background: #0a0a0a !important;
  color: #e0e0e0 !important;
}

body.theme-coffee .msg-text pre code {
  background: #120a04 !important;
  color: #f0d8b0 !important;
}

body.theme-pistachio .msg-text pre code {
  background: #162812 !important;
  color: #c8e8b8 !important;
}

body.theme-lofi .msg-text pre code {
  background: #1a1208 !important;
  color: #e8d8c0 !important;
}

body.theme-win98 .typing-dot {
  border-radius: 0;
}

body.theme-pixel .typing-dot {
  border-radius: 0;
  width: 8px;
  height: 8px;
}

body.theme-win98 #options-panel {
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  margin: 0 2px;
}

body.theme-win98 .opt-select,
body.theme-win98 .opt-input {
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  background: #fff;
  border-radius: 0;
}

body.theme-win98 .theme-btn {
  border-radius: 0;
  border-color: #fff #808080 #808080 #fff;
}

body.theme-win98 #input-area {
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  margin: 2px;
}

body.theme-win98 #user-input {
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  border-radius: 0;
  background: #fff;
}

body.theme-pixel #user-input {
  border: 2px solid var(--accent);
  box-shadow: 2px 2px 0 var(--bg3);
}

body.theme-terminal #user-input {
  border-color: var(--accent);
  background: #000;
  caret-color: var(--accent);
}

body.theme-win98 #send-btn {
  border-radius: 0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
}

body.theme-pixel #send-btn {
  border-radius: 0;
  border: 2px solid var(--accent2);
  box-shadow: 2px 2px 0 var(--border2);
}

body.theme-dark #send-btn {
  color: #000000;
}

body.theme-win98 .modal-box {
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  border-radius: 0;
}

body.theme-pixel .modal-box {
  border: 2px solid var(--accent);
  box-shadow: 4px 4px 0 var(--border2);
}

body.theme-dark .modal-btn {
  color: #000000;
}

body.theme-dark .delete-modal-btn.confirm {
  color: #000000;
}

body.theme-dark #toast {
  color: #000000;
}

body.theme-win98 #messages::-webkit-scrollbar-thumb {
  background: #808080;
}

body.theme-pixel #messages::-webkit-scrollbar-thumb {
  background: var(--accent);
}

body.theme-terminal #messages::-webkit-scrollbar-thumb {
  background: var(--accent);
}

body.theme-dark #messages::-webkit-scrollbar-thumb {
  background: #333333;
}

body.theme-coffee #messages::-webkit-scrollbar-thumb {
  background: #5e3e28;
}

body.theme-pistachio #messages::-webkit-scrollbar-thumb {
  background: #9eca8c;
}

body.theme-lofi #messages::-webkit-scrollbar-thumb {
  background: #b8a080;
}

body.theme-terminal::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 65, 0.02) 2px,
    rgba(0, 255, 65, 0.02) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

body.theme-win98 .win98-status {
  display: flex;
  gap: 16px;
}

body.theme-win98 .file-modal-box {
  border-radius: 0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
}

body.theme-pixel .file-modal-box {
  border: 2px solid var(--accent);
  box-shadow: 4px 4px 0 var(--border2);
  border-radius: 2px;
}

body.theme-win98 .toggle-slider {
  border-radius: 0;
}

body.theme-win98 .toggle-slider::before {
  border-radius: 0;
}

body.theme-dark .toggle-switch input:checked + .toggle-slider {
  background: #ffffff;
}

body.theme-dark .toggle-slider::before {
  background: #444;
}

body.theme-dark .toggle-switch input:checked + .toggle-slider::before {
  background: #000;
}

body.theme-dark #scroll-bottom-btn {
  background: #333333;
  color: #ffffff;
}

/* CYBERPUNK theme */
body.theme-cyber {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --surface: #0f0f0f;
  --surface2: #1a1a1a;
  --border: #f0e130;
  --border2: #00ff41;
  --text: #f0e130;
  --text2: #cccccc;
  --text3: #888888;
  --accent: #f0e130;
  --accent2: #00ff41;
  --user-bg: linear-gradient(135deg, #f0e130, #b8b42d);
  --user-text: #000000;
  --ai-bg: #111111;
  --ai-text: #00ff41;
  --led-ready: #00ff41;
  --led-gen: #f0e130;
  --led-stop: #ff003c;
  --input-bg: #0a0a0a;
  --scrollbar: #f0e130;
  background: var(--bg);
  font-family: "Share Tech Mono", monospace;
  --font-main: "Share Tech Mono", monospace;
  --font-mono: "Share Tech Mono", monospace;
  --font-size-base: 14px;
}

body.theme-cyber #app {
  background: var(--bg);
  border: 1px solid #f0e130;
  box-shadow: 0 0 10px rgba(240, 225, 48, 0.2);
}

body.theme-cyber #topbar {
  background: var(--surface2);
  border-bottom: 1px solid #f0e130;
}

body.theme-cyber #logo {
  color: #f0e130 !important;
  text-shadow: 0 0 8px #f0e130;
  letter-spacing: 2px;
}

body.theme-cyber .msg-bubble.user {
  background: linear-gradient(135deg, #f0e130, #b8b42d);
  border: 1px solid #f0e130;
}

body.theme-cyber .msg-bubble.ai {
  background: #111111;
  border: 1px solid #333333;
  color: #00ff41;
}

body.theme-cyber .theme-btn {
  background: #111111;
  border-color: #333333;
  color: #f0e130;
}

body.theme-cyber .theme-btn:hover,
body.theme-cyber .theme-btn.active {
  background: #f0e130;
  color: #000000;
  box-shadow: 0 0 10px #f0e130;
}

body.theme-cyber #user-input {
  background: #0a0a0a;
  border-color: #333333;
  color: #f0e130;
}

body.theme-cyber #user-input:focus {
  border-color: #f0e130;
  box-shadow: 0 0 5px #f0e130;
}

body.theme-cyber #input-area {
  background: var(--surface2);
  border-top: 1px solid #f0e130;
}

body.theme-cyber #messages::-webkit-scrollbar-thumb {
  background: #f0e130;
}

body.theme-cyber .modal-box {
  border-color: #f0e130;
  background: var(--surface2);
}

body.theme-cyber .reasoning-content {
  background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
  border-color: #00ff41;
  color: #00ff41;
}

body.theme-cyber .reasoning-content::before {
  background: linear-gradient(
    90deg,
    transparent,
    #00ff41,
    #f0e130,
    transparent
  );
}

body.theme-cyber .reasoning-content h3 {
  color: #f0e130;
  text-shadow: 0 0 5px #f0e130;
}

/* sunset theme */
body.theme-sunset {
  --bg: #2d1b2d;
  --bg2: #3d263d;
  --bg3: #231523;
  --surface: #2d1b2d;
  --surface2: #4a2c4a;
  --border: #ff9966;
  --border2: #ff5e62;
  --text: #fff0f5;
  --text2: #ffd1dc;
  --text3: #ffb6c1;
  --accent: #ff9966;
  --accent2: #ff5e62;
  --user-bg: linear-gradient(135deg, #ff9966, #ff5e62);
  --user-text: #ffffff;
  --ai-bg: #3d263d;
  --ai-text: #fff0f5;
  --led-ready: #ff6b6b;
  --led-gen: #ff9966;
  --led-stop: #8b0000;
  --input-bg: #2d1b2d;
  --scrollbar: #ff9966;
  background: var(--bg);
  font-family: "Source Code Pro", monospace;
  --font-main: "Source Code Pro", monospace;
  --font-mono: "Source Code Pro", monospace;
  --font-size-base: 14px;
}

body.theme-sunset #app {
  background: var(--bg);
  border: 1px solid #ff5e62;
}

body.theme-sunset #topbar {
  background: var(--surface2);
  border-bottom: 1px solid #ff9966;
}

body.theme-sunset #logo {
  color: #ff9966 !important;
  text-shadow: 0 0 5px #ff9966;
}

body.theme-sunset .msg-bubble.user {
  background: linear-gradient(135deg, #ff9966, #ff5e62);
}

body.theme-sunset .msg-bubble.ai {
  background: #3d263d;
  border: 1px solid #5c3a5c;
  color: #fff0f5;
}

body.theme-sunset .theme-btn {
  background: #3d263d;
  border-color: #5c3a5c;
  color: #ffd1dc;
}

body.theme-sunset .theme-btn:hover,
body.theme-sunset .theme-btn.active {
  background: #ff9966;
  color: #2d1b2d;
}

body.theme-sunset #user-input {
  background: #2d1b2d;
  border-color: #5c3a5c;
  color: #fff0f5;
}

body.theme-sunset #user-input:focus {
  border-color: #ff9966;
}

body.theme-sunset #input-area {
  background: var(--surface2);
  border-top: 1px solid #ff9966;
}

body.theme-sunset #messages::-webkit-scrollbar-thumb {
  background: #ff9966;
}

body.theme-sunset .modal-box {
  border-color: #ff9966;
  background: var(--surface2);
}

body.theme-sunset .reasoning-content {
  background: linear-gradient(135deg, #2d1b2d 0%, #3d263d 100%);
  border-color: #ff5e62;
  color: #fff0f5;
}

body.theme-sunset .reasoning-content::before {
  background: linear-gradient(
    90deg,
    transparent,
    #ff5e62,
    #ff9966,
    transparent
  );
}

body.theme-sunset .reasoning-content h3 {
  color: #ff5e62;
  text-shadow: 0 0 5px #ff5e62;
}

/* Moon Theme */
body.theme-moon {
  --bg: #0d1117;
  --bg2: #161b22;
  --bg3: #010409;
  --surface: #161b22;
  --surface2: #21262d;
  --border: #8b949e;
  --border2: #58a6ff;
  --text: #c9d1d9;
  --text2: #8b949e;
  --text3: #6e7681;
  --accent: #58a6ff;
  --accent2: #a5d6ff;
  --user-bg: linear-gradient(135deg, #58a6ff, #1f6feb);
  --user-text: #ffffff;
  --ai-bg: #161b22;
  --ai-text: #c9d1d9;
  --led-ready: #3fb950;
  --led-gen: #d29922;
  --led-stop: #f85149;
  --input-bg: #0d1117;
  --scrollbar: #8b949e;
  background: var(--bg);
  font-family: "JetBrains Mono", monospace;
  --font-main: "JetBrains Mono", monospace;
  --font-mono: "JetBrains Mono", monospace;
  --font-size-base: 14px;
}

body.theme-moon #app {
  background: var(--bg);
  border: 1px solid #30363d;
}

body.theme-moon #topbar {
  background: var(--surface2);
  border-bottom: 1px solid #30363d;
}

body.theme-moon #logo {
  color: #8b949e !important;
  text-shadow: 0 0 5px #8b949e;
}

body.theme-moon .msg-bubble.user {
  background: linear-gradient(135deg, #58a6ff, #1f6feb);
}

body.theme-moon .msg-bubble.ai {
  background: #161b22;
  border: 1px solid #30363d;
  color: #c9d1d9;
}

body.theme-moon .theme-btn {
  background: #161b22;
  border-color: #30363d;
  color: #8b949e;
}

body.theme-moon .theme-btn:hover,
body.theme-moon .theme-btn.active {
  background: #58a6ff;
  color: #0d1117;
}

body.theme-moon #user-input {
  background: #0d1117;
  border-color: #30363d;
  color: #c9d1d9;
}

body.theme-moon #user-input:focus {
  border-color: #58a6ff;
}

body.theme-moon #input-area {
  background: var(--surface2);
  border-top: 1px solid #30363d;
}

body.theme-moon #messages::-webkit-scrollbar-thumb {
  background: #8b949e;
}

body.theme-moon .modal-box {
  border-color: #30363d;
  background: var(--surface2);
}

body.theme-moon .reasoning-content {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  border-color: #58a6ff;
  color: #c9d1d9;
}

body.theme-moon .reasoning-content::before {
  background: linear-gradient(
    90deg,
    transparent,
    #58a6ff,
    #8b949e,
    transparent
  );
}

body.theme-moon .reasoning-content h3 {
  color: #58a6ff;
  text-shadow: 0 0 5px #58a6ff;
}

/* emerald wood */
body.theme-emerald-wood {
  --bg: #1a2f1a;
  --bg2: #243624;
  --bg3: #142614;
  --surface: #1e331e;
  --surface2: #2d4a2d;
  --border: #50c878;
  --border2: #2e8b57;
  --text: #e8f5e9;
  --text2: #c8e6c9;
  --text3: #a5d6a7;
  --accent: #50c878;
  --accent2: #2e8b57;
  --user-bg: linear-gradient(135deg, #50c878, #2e8b57);
  --user-text: #ffffff;
  --ai-bg: #243624;
  --ai-text: #e8f5e9;
  --led-ready: #a5d6a7;
  --led-gen: #d2b48c;
  --led-stop: #cd5c5c;
  --input-bg: #1a2f1a;
  --scrollbar: #50c878;
  background: var(--bg);
  font-family: "Fira Code", monospace;
  --font-main: "Fira Code", monospace;
  --font-mono: "Fira Code", monospace;
  --font-size-base: 14px;
}

body.theme-emerald-wood #app {
  background: var(--bg);
  border: 1px solid #2e8b57;
}

body.theme-emerald-wood #topbar {
  background: var(--surface2);
  border-bottom: 1px solid #50c878;
}

body.theme-emerald-wood #logo {
  color: #50c878 !important;
  text-shadow: 0 0 5px #50c878;
}

body.theme-emerald-wood .msg-bubble.user {
  background: linear-gradient(135deg, #50c878, #2e8b57);
}

body.theme-emerald-wood .msg-bubble.ai {
  background: #243624;
  border: 1px solid #3e4d3e;
  color: #e8f5e9;
}

body.theme-emerald-wood .theme-btn {
  background: #243624;
  border-color: #3e4d3e;
  color: #c8e6c9;
}

body.theme-emerald-wood .theme-btn:hover,
body.theme-emerald-wood .theme-btn.active {
  background: #50c878;
  color: #1a2f1a;
}

body.theme-emerald-wood #user-input {
  background: #1a2f1a;
  border-color: #3e4d3e;
  color: #e8f5e9;
}

body.theme-emerald-wood #user-input:focus {
  border-color: #50c878;
}

body.theme-emerald-wood #input-area {
  background: var(--surface2);
  border-top: 1px solid #50c878;
}

body.theme-emerald-wood #messages::-webkit-scrollbar-thumb {
  background: #50c878;
}

body.theme-emerald-wood .modal-box {
  border-color: #50c878;
  background: var(--surface2);
}

body.theme-emerald-wood .reasoning-content {
  background: linear-gradient(135deg, #1a2f1a 0%, #243624 100%);
  border-color: #2e8b57;
  color: #e8f5e9;
}

body.theme-emerald-wood .reasoning-content::before {
  background: linear-gradient(
    90deg,
    transparent,
    #2e8b57,
    #50c878,
    transparent
  );
}

body.theme-emerald-wood .reasoning-content h3 {
  color: #2e8b57;
  text-shadow: 0 0 5px #2e8b57;
}

body.theme-wood {
  /* ─── Palette ─── */
  --bg: #1a1008;
  --bg2: #201408;
  --bg3: #2a1a0e;
  --surface: #241810;
  --surface2: #2e1e12;
  --border: #5c3a1e;
  --border2: #7a4e2a;
  --text: #d4a86a;
  --text2: #e0be84;
  --text3: #a07840;
  --accent: #c87533;
  --accent2: #e09040;
  --user-bg: rgba(200, 117, 51, 0.1);
  --user-text: #e0be84;
  --ai-bg: #1e140a;
  --ai-text: #d4a86a;
  --led-ready: #6b8e23;
  --led-gen: #daa520;
  --led-stop: #8b4513;
  --input-bg: #1e140a;

  /* ─── Wood-specific ─── */
  --wood-dark: #1a1008;
  --wood-mid: #3a2410;
  --wood-light: #5c3a1e;
  --wood-highlight: #7a4e2a;
  --wood-grain: rgba(90, 55, 20, 0.15);
  --wood-knot: #2a1808;
  --varnish-glow: rgba(210, 170, 100, 0.06);
  --shadow-warm: rgba(10, 5, 0, 0.5);
  --ring-color: rgba(90, 55, 20, 0.08);

  background: var(--bg);
  font-family: "Merriweather", "Georgia", "Palatino", serif;
  --font-main: "Merriweather", "Georgia", serif;
  --font-mono: "Courier Prime", "Courier New", monospace;
  --font-size-base: 14px;

  /* Subtle wood grain texture via gradients */
  background-image:
    /* Fine grain lines */
    repeating-linear-gradient(
      82deg,
      transparent,
      transparent 12px,
      var(--wood-grain) 12px,
      var(--wood-grain) 13px
    ),
    /* Wider grain bands */
    repeating-linear-gradient(
        78deg,
        transparent,
        transparent 40px,
        rgba(90, 55, 20, 0.06) 40px,
        rgba(90, 55, 20, 0.06) 44px
      ),
    /* Knot suggestion */
    radial-gradient(
        ellipse 60px 80px at 85% 20%,
        var(--wood-knot) 0%,
        transparent 70%
      ),
    radial-gradient(
      ellipse 40px 50px at 15% 75%,
      var(--wood-knot) 0%,
      transparent 60%
    ),
    /* Annual rings hint */
    radial-gradient(
        ellipse 300px 250px at 50% 50%,
        var(--ring-color) 20%,
        transparent 21%,
        transparent 30%,
        var(--ring-color) 31%,
        transparent 32%,
        transparent 45%,
        var(--ring-color) 46%,
        transparent 47%
      ),
    /* Base warm gradient */
    linear-gradient(175deg, #1e140a 0%, #1a1008 40%, #161006 100%);
}

/* ─── Varnish shine overlay ─── */
body.theme-wood::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background:
    /* Glossy varnish reflection */
    radial-gradient(
      ellipse 80% 50% at 30% 25%,
      rgba(255, 220, 150, 0.03) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 70% 70%,
      rgba(255, 200, 120, 0.02) 0%,
      transparent 50%
    );
}

/* ─── Warm ambient shadow ─── */
body.theme-wood::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    var(--shadow-warm) 100%
  );
}

/* ─── Text styling ─── */
body.theme-wood * {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 0 20px var(--varnish-glow);
}

/* ─── Inputs ─── */
body.theme-wood input,
body.theme-wood textarea,
body.theme-wood select {
  text-shadow: none;
  caret-color: var(--accent2);
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text2);
  font-family: var(--font-main);
  transition: all 0.3s ease;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 220, 150, 0.05);
}

body.theme-wood input:focus,
body.theme-wood textarea:focus,
body.theme-wood select:focus {
  border-color: var(--accent);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 8px rgba(200, 117, 51, 0.2),
    0 0 20px rgba(200, 117, 51, 0.08);
  outline: none;
}

/* ─── Links ─── */
body.theme-wood a {
  color: var(--accent2);
  text-decoration: none;
  border-bottom: 1px dotted rgba(224, 144, 64, 0.3);
  transition: all 0.2s ease;
}

body.theme-wood a:hover {
  color: #f0b060;
  border-bottom-color: var(--accent2);
  text-shadow: 0 0 8px rgba(224, 144, 64, 0.3);
}

/* ─── Buttons ─── */
body.theme-wood button {
  font-family: var(--font-main);
  background: linear-gradient(
    to bottom,
    var(--wood-light) 0%,
    var(--wood-mid) 100%
  );
  border: 1px solid var(--border2);
  border-radius: 4px;
  color: var(--text2);
  padding: 6px 10px;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 220, 150, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

body.theme-wood button:hover {
  background: linear-gradient(
    to bottom,
    var(--wood-highlight) 0%,
    var(--wood-light) 100%
  );
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 220, 150, 0.15),
    0 0 12px rgba(200, 117, 51, 0.15);
}

body.theme-wood button:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  transform: translateY(1px);
}

/* ─── Scrollbar ─── */
body.theme-wood ::-webkit-scrollbar {
  width: 8px;
}

body.theme-wood ::-webkit-scrollbar-track {
  background: var(--bg);
  border-left: 1px solid var(--border);
}

body.theme-wood ::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--wood-light), var(--wood-mid));
  border-radius: 4px;
  border: 1px solid var(--border2);
}

body.theme-wood ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    to bottom,
    var(--wood-highlight),
    var(--wood-light)
  );
}

/* ─── Selection ─── */
body.theme-wood ::selection {
  background: rgba(200, 117, 51, 0.3);
  color: #fff;
}

/* ─── Card / Panel ─── */
body.theme-wood .panel,
body.theme-wood .card {
  background: linear-gradient(to bottom, var(--surface2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 220, 150, 0.05);
}

/* ─── Dividers ─── */
body.theme-wood hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border) 20%,
    var(--border2) 50%,
    var(--border) 80%,
    transparent
  );
  margin: 16px 0;
}

/* ─── Animations ─── */
@keyframes wood-glow {
  0%,
  100% {
    box-shadow: 0 0 4px rgba(200, 117, 51, 0.1);
  }
  50% {
    box-shadow: 0 0 12px rgba(200, 117, 51, 0.2);
  }
}

body.theme-wood .led-generating {
  animation: wood-glow 2s ease-in-out infinite;
}

/* ─── Tooltip ─── */
body.theme-wood [data-tooltip]::before {
  background: var(--wood-mid);
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: 3px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  font-family: var(--font-main);
}

body.theme-kingdom {
  --bg: #0b0e14;
  --bg2: #12161f;
  --bg3: #1a202e;
  --surface: #1c2230;
  --surface2: #252d3e;
  --border: #4a5568;
  --border2: #718096;
  --text: #cbd5e0;
  --text2: #e2e8f0;
  --text3: #a0aec0;
  --accent: #d4af37;
  --accent2: #ffd700;
  --user-bg: rgba(212, 175, 55, 0.1);
  --user-text: #e2e8f0;
  --ai-bg: #1c2230;
  --ai-text: #cbd5e0;
  --led-ready: #48bb78;
  --led-gen: #ecc94b;
  --led-stop: #c53030;
  --input-bg: #12161f;

  --royal-dark: #0b0e14;
  --royal-mid: #1c2230;
  --royal-light: #2d3748;
  --royal-highlight: #4a5568;
  --marble-vein: rgba(212, 175, 55, 0.05);
  --royal-knot: #080a0e;
  --gold-glow: rgba(212, 175, 55, 0.1);
  --shadow-cold: rgba(0, 0, 0, 0.6);
  --ring-color: rgba(212, 175, 55, 0.04);

  background: var(--bg);
  font-family: "Cinzel", "Georgia", "Palatino", serif;
  --font-main: "Cinzel", "Georgia", serif;
  --font-mono: "Courier Prime", "Courier New", monospace;
  --font-size-base: 14px;

  background-image:
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 20px,
      var(--marble-vein) 20px,
      var(--marble-vein) 22px
    ),
    radial-gradient(
      ellipse 500px 500px at 0% 0%,
      rgba(212, 175, 55, 0.03) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 500px 500px at 100% 100%,
      rgba(44, 82, 130, 0.03) 0%,
      transparent 70%
    ),
    linear-gradient(135deg, #0f1219 0%, #0b0e14 100%);
}

body.theme-kingdom::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% 0%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 60%
    ),
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

body.theme-kingdom::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(
    circle at center,
    transparent 40%,
    var(--shadow-cold) 150%
  );
}

body.theme-kingdom * {
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.8),
    0 0 10px var(--gold-glow);
}

body.theme-kingdom input,
body.theme-kingdom textarea,
body.theme-kingdom select {
  text-shadow: none;
  caret-color: var(--accent2);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 0px;
  color: var(--text2);
  font-family: var(--font-main);
  transition: all 0.3s ease;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(212, 175, 55, 0.1);
}

body.theme-kingdom input:focus,
body.theme-kingdom textarea:focus,
body.theme-kingdom select:focus {
  border-color: var(--accent);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 8px rgba(212, 175, 55, 0.3),
    0 0 20px rgba(212, 175, 55, 0.1);
  outline: none;
}

body.theme-kingdom a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  transition: all 0.2s ease;
}

body.theme-kingdom a:hover {
  color: var(--accent2);
  border-bottom-color: var(--accent2);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

body.theme-kingdom button {
  font-family: var(--font-main);
  background: linear-gradient(
    to bottom,
    var(--royal-light) 0%,
    var(--royal-mid) 100%
  );
  border: 1px solid var(--accent);
  border-radius: 0px;
  color: var(--text2);
  padding: 6px 12px;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.theme-kingdom button:hover {
  background: linear-gradient(
    to bottom,
    var(--royal-highlight) 0%,
    var(--royal-light) 100%
  );
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 12px rgba(212, 175, 55, 0.3);
}

body.theme-kingdom button:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  transform: translateY(1px);
}

body.theme-kingdom ::-webkit-scrollbar {
  width: 8px;
}

body.theme-kingdom ::-webkit-scrollbar-track {
  background: var(--bg);
  border-left: 1px solid var(--border);
}

body.theme-kingdom ::-webkit-scrollbar-thumb {
  background: var(--royal-light);
  border: 1px solid var(--accent);
}

body.theme-kingdom ::-webkit-scrollbar-thumb:hover {
  background: var(--royal-highlight);
}

body.theme-kingdom ::selection {
  background: rgba(212, 175, 55, 0.4);
  color: #fff;
}

body.theme-kingdom .panel,
body.theme-kingdom .card {
  background: linear-gradient(to bottom, var(--surface2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 0px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.theme-kingdom hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent) 50%,
    transparent
  );
  margin: 16px 0;
}

@keyframes royal-glow {
  0%,
  100% {
    box-shadow: 0 0 4px rgba(212, 175, 55, 0.2);
  }
  50% {
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
  }
}

body.theme-kingdom .led-generating {
  animation: royal-glow 2s ease-in-out infinite;
}

body.theme-kingdom [data-tooltip]::before {
  background: var(--royal-mid);
  border: 1px solid var(--accent);
  color: var(--text2);
  border-radius: 0px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  font-family: var(--font-main);
}

body.theme-pink-matrix {
  --bg: #ffffff;
  --bg2: #fff5f7;
  --bg3: #ffebf0;
  --surface: #ffffff;
  --surface2: #fce4ec;
  --border: #f8bbd0;
  --border2: #f48fb1;
  --text: #4a148c;
  --text2: #880e4f;
  --text3: #ad1457;
  --accent: #ff4081;
  --accent2: #f50057;
  --user-bg: linear-gradient(135deg, #ff80ab, #f50057);
  --user-text: #ffffff;
  --ai-bg: #fff0f5;
  --ai-text: #4a148c;
  --led-ready: #4caf50;
  --led-gen: #ff4081;
  --led-stop: #f44336;
  --input-bg: #ffffff;
  --scrollbar: #ff4081;

  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-main: "Segoe UI", Roboto, sans-serif;
  --font-mono: "Consolas", "Courier New", monospace;
  --font-size-base: 14px;
  --radius: 12px;
  --radius-sm: 6px;

  background: var(--bg);
  letter-spacing: 0.2px;
  overflow-x: hidden;
}

#matrix-canvas {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.15;
}

body.theme-pink-matrix #matrix-canvas {
  display: block;
}

body.theme-black-matrix {
  --bg: #ffffff;
  --bg2: #f0f0f0;
  --bg3: #e0e0e0;
  --surface: #ffffff;
  --surface2: #f5f5f5;
  --border: #cccccc;
  --border2: #999999;
  --text: #000000;
  --text2: #333333;
  --text3: #666666;
  --accent: #000000;
  --accent2: #333333;
  --user-bg: linear-gradient(135deg, #000000, #333333);
  --user-text: #ffffff;
  --ai-bg: #f5f5f5;
  --ai-text: #000000;
  --led-ready: #000000;
  --led-gen: #333333;
  --led-stop: #000000;
  --input-bg: #ffffff;
  --scrollbar: #000000;

  font-family: "Montserrat", sans-serif;
  --font-main: "Montserrat", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-size-base: 14px;
  --radius: 12px;
  --radius-sm: 6px;

  background: var(--bg);
  letter-spacing: 0.2px;
  overflow-x: hidden;
}

body.theme-black-matrix #matrix-canvas {
  display: block;
}

body.theme-black-matrix #system-prompt-input {
  --text1: #111111;
}
body.theme-black-matrix .theme-btn.active{
  color: #ffffff;
}




body.theme-matrix {
  --bg: #000000;
  --bg2: #0d1117;
  --bg3: #161b22;
  --surface: #0a0a0a;
  --surface2: #1a1a1a;
  --border: #333333;
  --border2: #444444;
  --text: #00ff41;
  --text2: #008f11;
  --text3: #003b00;
  --accent: #00ff41;
  --accent2: #008f11;
  --user-bg: linear-gradient(135deg, #003b00, #008f11);
  --user-text: #ffffff;
  --ai-bg: #1a1a1a;
  --ai-text: #00ff41;
  --led-ready: #00ff41;
  --led-gen: #008f11;
  --led-stop: #ff0000;
  --input-bg: #000000;
  --scrollbar: #00ff41;

  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-main: "Segoe UI", Roboto, sans-serif;
  --font-mono: "Consolas", "Courier New", monospace;
  --font-size-base: 14px;
  --radius: 12px;
  --radius-sm: 6px;

  background: var(--bg);
  color: var(--text);
  letter-spacing: 0.2px;
  overflow-x: hidden;
}

body.theme-matrix #matrix-canvas {
  display: block;
}

body.theme-eyes {
  --bg: #121212;
  --bg2: #1e1e1e;
  --bg3: #252525;
  --surface: #1e1e1e;
  --surface2: #2d2d2d;
  --border: #333333;
  --border2: #444444;
  --text: #e0e0e0;
  --text2: #b0b0b0;
  --text3: #808080;
  --accent: #bb86fc;
  --accent2: #9965f4;
  --user-bg: linear-gradient(135deg, #bb86fc, #3700b3);
  --user-text: #ffffff;
  --ai-bg: #2d2d2d;
  --ai-text: #e0e0e0;
  --led-ready: #03dac6;
  --led-gen: #bb86fc;
  --led-stop: #cf6679;
  --input-bg: #1e1e1e;
  --scrollbar: #bb86fc;

  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-main: "Segoe UI", Roboto, sans-serif;
  --font-mono: "Consolas", "Courier New", monospace;
  --font-size-base: 14px;
  --radius: 12px;
  --radius-sm: 6px;

  background: var(--bg);
  color: var(--text);
  letter-spacing: 0.2px;
  overflow-x: hidden;
}

.eyes-container {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 140px;
  gap: 15px;
  z-index: 9999;
  pointer-events: none;
}

body.theme-eyes .eyes-container {
  display: flex;
}

@media (max-width: 420px) {
  body.theme-eyes .eyes-container {
    display: none;
  }
}
.eye {
  width: 60px;
  height: 60px;
  background: #ffffff;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  animation: blink 4s infinite;
}

.pupil {
  width: 20px;
  height: 20px;
  background: #000000;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes blink {
  0%,
  96%,
  100% {
    transform: scaleY(1);
  }
  98% {
    transform: scaleY(0.1);
  }
}

body.theme-moon2 {
  --bg: #0a0b1e;
  --bg2: #161932;
  --bg3: #1f2445;
  --surface: #1e2448;
  --surface2: #283058;
  --border: #404b77;
  --border2: #5b6796;
  --text: #e0e6ed;
  --text2: #b0b8c5;
  --text3: #7d889e;
  --accent: #9fb3d6;
  --accent2: #6b84b3;
  --user-bg: linear-gradient(135deg, #4b6cb7, #182848);
  --user-text: #ffffff;
  --ai-bg: #1e2448;
  --ai-text: #e0e6ed;
  --led-ready: #66ccff;
  --led-gen: #9fb3d6;
  --led-stop: #ff6666;
  --input-bg: #161932;
  --scrollbar: #6b84b3;

  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-main: "Segoe UI", Roboto, sans-serif;
  --font-mono: "Consolas", "Courier New", monospace;
  --font-size-base: 14px;
  --radius: 12px;
  --radius-sm: 6px;

  background: var(--bg);
  color: var(--text);
  letter-spacing: 0.2px;
  overflow-x: hidden;
}

.moon-container {
  display: none;
  position: fixed;
  top: 20px;
  right: 110px;
  z-index: 9999;
  pointer-events: none;
}

body.theme-moon2 .moon-container {
  display: block;
}

.moon {
  width: 100px;
  height: 100px;
  background: #e0e6ed;
  border-radius: 50%;
  box-shadow: 0 0 60px 10px rgba(102, 153, 255, 0.5);
  position: relative;
}

body.theme-black-white-matrix {
  --bg: #000000;
  --bg2: #111111;
  --bg3: #222222;
  --surface: #111111;
  --surface2: #222222;
  --border: #333333;
  --border2: #444444;
  --text: #ffffff;
  --text2: #cccccc;
  --text3: #999999;
  --accent: #ffffff;
  --accent2: #dddddd;
  --user-bg: linear-gradient(135deg, #444444, #000000);
  --user-text: #ffffff;
  --ai-bg: #222222;
  --ai-text: #ffffff;
  --led-ready: #ffffff;
  --led-gen: #cccccc;
  --led-stop: #ff0000;
  --input-bg: #111111;
  --scrollbar: #ffffff;

  font-family: "Montserrat", sans-serif;
  --font-main: "Montserrat", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-size-base: 14px;
  --radius: 12px;
  --radius-sm: 6px;

  background: var(--bg);
  color: var(--text);
  letter-spacing: 0.2px;
  overflow-x: hidden;
}

body.theme-black-white-matrix #matrix-canvas {
  display: block;
}
body.theme-black-white-matrix .modal-btn {
  color: #111111;
}

body.theme-black-white-matrix #send-btn {
  color: #111111;
}

body.theme-black-white-matrix #scroll-bottom-btn {
  color: #111111;
}

body.theme-black-white-matrix .theme-btn:hover,
.theme-btn.active {
  color: #111111;
}

body.theme-black-white-matrix #new-chat-btn {
  color: #111111;
}

body.theme-black-white-matrix .delete-modal-btn.confirm {
  color: #111111;
}
