/* ================================
   MCB AI – Galaxy Theme (deep blue)
   OVERRIDES ONLY – no layout changes
   ================================ */

/* ---- Tiefes Blau + Sternenfeld NUR im Seitenhintergrund ---- */
html, body {
  background: radial-gradient(1200px 900px at 50% -20%,
              #0b2a55 0%,
              #071b39 35%,
              #04132a 65%,
              #020817 100%) !important;
  color: #eaf4ff; /* etwas klarer Textkontrast */
}

html { position: relative; }

/* === Sternen-Layer === */
html::before, html::after, body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* --- Glow Nebel --- */
html::before {
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(32,121,255,.07), transparent 60%),
    radial-gradient(800px 500px at 80% 15%, rgba(0,240,255,.05), transparent 60%),
    radial-gradient(1000px 700px at 70% 80%, rgba(122,0,255,.06), transparent 65%);
  filter: saturate(110%);
}

/* --- Kleine, dichte Sterne --- */
body::after {
  background-image:
    radial-gradient(1px 1px at 3% 9%, #ffffff 45%, transparent 46%),
    radial-gradient(1px 1px at 12% 34%, #cfe8ff 45%, transparent 46%),
    radial-gradient(1px 1px at 25% 82%, #d9edff 45%, transparent 46%),
    radial-gradient(1px 1px at 39% 44%, #ffffff 45%, transparent 46%),
    radial-gradient(1px 1px at 52% 66%, #eaf4ff 45%, transparent 46%),
    radial-gradient(1px 1px at 66% 71%, #ffffff 45%, transparent 46%),
    radial-gradient(1px 1px at 79% 86%, #cfe8ff 45%, transparent 46%),
    radial-gradient(1px 1px at 92% 14%, #ffffff 45%, transparent 46%),
    radial-gradient(1px 1px at 95% 3%,  #d9edff 45%, transparent 46%);
  background-repeat:no-repeat;
  animation: twinkleDense 5.5s ease-in-out infinite alternate;
  opacity:.8;
}

/* --- Mittlere Sterne --- */
html::after {
  background-image:
    radial-gradient(1.5px 1.5px at 19% 77%, #ffffff 40%, transparent 42%),
    radial-gradient(1.5px 1.5px at 27% 42%, #cfe8ff 40%, transparent 42%),
    radial-gradient(1.5px 1.5px at 46% 30%, #eaf4ff 40%, transparent 42%),
    radial-gradient(1.5px 1.5px at 63% 53%, #d9edff 40%, transparent 42%),
    radial-gradient(1.5px 1.5px at 84% 38%, #ffffff 40%, transparent 42%);
  background-repeat:no-repeat;
  animation: twinkleMid 7.2s ease-in-out infinite alternate;
  opacity:.7;
}

/* --- Große, helle Sterne mit Glow --- */
body::before {
  background-image:
    radial-gradient(2px 2px at 22% 24%, #ffffff 40%, transparent 42%),
    radial-gradient(2.4px 2.4px at 68% 34%, #eaf4ff 40%, transparent 42%),
    radial-gradient(2.2px 2.2px at 14% 84%, #d9edff 40%, transparent 42%),
    radial-gradient(3px 3px at 87% 18%,  #ffffff 40%, transparent 42%);
  background-repeat:no-repeat;
  filter: drop-shadow(0 0 6px rgba(160,210,255,.6));
  animation: twinkleSlow 9.6s ease-in-out infinite alternate;
  opacity:.85;
}

/* --- Twinkle Animationen --- */
@keyframes twinkleDense { 0%{opacity:.55} 100%{opacity:.95} }
@keyframes twinkleMid   { 0%{opacity:.45} 100%{opacity:.85} }
@keyframes twinkleSlow  { 0%{opacity:.55} 100%{opacity:.8} }

/* ---- Chat-Container: tiefes Navy, dezente Glows ---- */
#chat {
  background: rgba(6, 17, 37, 0.86) !important;
  border: 1px solid rgba(86, 168, 255, 0.12) !important;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(38, 133, 255, 0.06),
    0 0 28px rgba(34, 139, 230, 0.18) inset !important;
}

/* ---- Buttons ---- */
.btn {
  color: #eaf4ff !important;
  background: linear-gradient(180deg, #2a8cff 0%, #0f5bd7 100%) !important;
  box-shadow: 0 3px 10px rgba(21, 98, 220, .22) !important;
}
.btn:hover {
  background: linear-gradient(180deg, #56a7ff 0%, #1d6cf0 100%) !important;
  box-shadow: 0 7px 18px rgba(21, 98, 220, .28) !important;
}
.btn:active, .btn-pressed { background: #0d47b5 !important; }

.send-btn { background: #0f7cff !important; }
.send-btn:hover { background: #38a3ff !important; }

/* ---- Chat-Bubbles ---- */
.bubble.bot {
  background: rgba(18, 34, 62, 0.9) !important;
  color: #e8f3ff !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.35) !important;
}
.bubble.bot::after { border-right: 8px solid rgba(18, 34, 62, 0.92) !important; }

.bubble.user {
  background: linear-gradient(135deg, #0f7cff, #0061e6) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(15,124,255,.35) !important;
}
.bubble.user::after { border-left: 8px solid #006de6 !important; }

.bubble code {
  background: rgba(10, 24, 56, .6) !important;
  color: #cfe7ff !important;
}
.bubble blockquote {
  border-left: 4px solid #40c4ff !important;
  background: rgba(64,196,255,.12) !important;
  color: #e5f4ff !important;
}

/* ---- Eingabeleiste ---- */
.input-area {
  background: rgba(2, 10, 26, 0.82) !important;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, .45) !important;
  border: 1px solid rgba(86,168,255,.14) !important;
}
#userInput, input {
  background: rgba(3, 12, 30, .9) !important;
  color: #eaf4ff !important;
  border: 1px solid rgba(86,168,255,.25) !important;
}
#userInput::placeholder { color: #8fb3e6 !important; }
#userInput:focus, input:focus {
  border-color: #2a8cff !important;
  box-shadow: 0 0 0 3px rgba(42,140,255,.18) inset !important;
}

.upload-button { color: #8fb3e6 !important; }
.upload-button:hover { color: #eaf4ff !important; }

/* ---- Dropdown & Model ---- */
#currentModel {
  background: rgba(6, 20, 44, .9) !important;
  color: #eaf4ff !important;
}
#currentModel:hover { background: rgba(10, 30, 64, .95) !important; }

#modelDropdown {
  background: rgba(3, 12, 30, .96) !important;
  border: 1px solid rgba(86,168,255,.22) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.6) !important;
}
#modelDropdown div { color: #eaf4ff !important; }
#modelDropdown div:hover { background: rgba(18, 34, 62, .65) !important; }

/* ---- Scrollbars ---- */
*::-webkit-scrollbar-thumb { background-color: #2a3d62 !important; }
*::-webkit-scrollbar-track { background-color: #0a162d !important; }
html, body { scrollbar-color: #2a3d62 #0a162d !important; }

/* ---- Codeblocks ---- */
.codeblock-container { background: #0d1426 !important; }
.codeblock-langbar {
  background: #152241 !important;
  color: #82bfff !important;
  border-bottom: 1px solid #0e1a34 !important;
}
.codeblock { color: #cfe4ff !important; }
.copy-btn { background: #172a51 !important; color: #7cc1ff !important; }
.copy-btn:hover:not(:disabled) { background: #2a8cff !important; color:#fff !important; }
.copy-btn:disabled { background: #0f1d3a !important; color:#88a6d4 !important; }

/* ---- Session/Version Texte ---- */
#sessionInfo, #modelLimitInfo, #versionDisplayMain {
  color: #9dbff0 !important;
  background: rgba(2,10,26,.72) !important;
  border-radius: 8px;
}

/* ---- Overlays ---- */
.overlay { background: rgba(2, 10, 26, .82) !important; }
.overlay .info-box {
  background: linear-gradient(180deg, #0c1630, #0b1226) !important;
  color: #eaf4ff !important;
  border: 1px solid rgba(86,168,255,.18) !important;
}
.overlay__header {
  background: linear-gradient(0deg, #122145, #0f1d3b) !important;
  border-bottom: 1px solid #1b3769 !important;
}
.overlay__title { color: #40c4ff !important; }
.overlay__footer {
  background: #0d1a36 !important;
  border-top: 1px solid #1b3769 !important;
}
.overlay__close {
  background: #122145 !important;
  border: 1px solid #1b3769 !important;
}
.overlay__close::before, .overlay__close::after { background: #eaf4ff !important; }
.overlay__close:hover { background: #193263 !important; border-color:#2a5bb0 !important; }

#infoOverlay { background: rgba(2, 10, 26, .9) !important; }
.info-box.startmenu {
  background: linear-gradient(115deg, #0e1c3b 78%, #0b264a 130%) !important;
  border: 2.5px solid #1b3769 !important;
}
.startmenu-title { color: #40c4ff !important; }
.startmenu-title span { color: #eaf4ff !important; }
.startmenu-hinweis {
  background: #0f1d3b !important; color:#eaf4ff !important;
  border-left: 6px solid #00cfff !important;
}

.warning-overlay { background: rgba(2,10,26,.96) !important; }
.warning-box {
  background: linear-gradient(115deg, #132345 78%, #0d1e3c 140%) !important;
  border: 2.8px solid #ffae42 !important;
  color: #eaf4ff !important;
}
.warning-title { color: #ffb656 !important; }
.warning-text { color: #f8edd7 !important; }

/* ---- Extras ---- */
.tts-button { background:#1b2c52 !important; color:#eaf4ff !important; }
.tts-button:hover { background:#2a8cff !important; }
.tts-button.tts-stop { background:#cc0022 !important; }

.push-notification {
  background: linear-gradient(90deg, #0f7cff, #00c2ff) !important;
  color: #fff !important;
}
.push-notification .close-push:hover,
.push-notification .close-btn:hover { color:#ffd7de !important; }

.image-modal { background: rgba(2,10,26,.88) !important; }
.modal-content { background:#0c1630 !important; color:#eaf4ff !important; }
.modal-btn { background:#122145 !important; color:#eaf4ff !important; }
.modal-btn:hover { background:#193263 !important; }
