/* Pro UI theme for Den Bosch Digital Twin */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --dt-font: 'Space Grotesk', sans-serif;
  --dt-font-mono: 'Space Mono', monospace;
  --dt-bg: #0b1220;
  --dt-panel: rgba(12, 18, 32, 0.84);
  --dt-panel-strong: rgba(7, 12, 22, 0.94);
  --dt-border: rgba(255, 255, 255, 0.08);
  --dt-border-strong: rgba(255, 255, 255, 0.14);
  --dt-text: #e6edf6;
  --dt-muted: #9fb2c8;
  --dt-accent: #3dd6c6;
  --dt-accent-strong: #23bca8;
  --dt-warn: #f59e0b;
  --dt-danger: #f97316;
  --dt-shadow: 0 12px 30px rgba(6, 10, 20, 0.45);
  --dt-glow: 0 0 0 1px rgba(61, 214, 198, 0.2), 0 12px 28px rgba(35, 188, 168, 0.15);
  --dt-radius: 14px;
  --dt-radius-sm: 10px;
  --dt-radius-lg: 18px;
  --z-menu: 1000;
  --weather-rain-opacity: 0;
  --weather-snow-opacity: 0;
  --weather-fog-opacity: 0;
  --night-glow-opacity: 0;
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--dt-font);
  background: var(--dt-bg);
  color: var(--dt-text);
  overflow: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background: radial-gradient(1200px 600px at 15% 10%, rgba(61, 214, 198, 0.12), transparent 60%),
              radial-gradient(900px 500px at 80% 15%, rgba(94, 119, 255, 0.12), transparent 60%),
              radial-gradient(1000px 700px at 50% 90%, rgba(245, 158, 11, 0.08), transparent 65%);
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.3;
}

#cesiumContainer {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.world-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.world-effects__rain,
.world-effects__snow,
.world-effects__fog,
.world-effects__night-glow {
  position: absolute;
  inset: 0;
  transition: opacity 0.5s ease;
}

.world-effects__rain {
  opacity: var(--weather-rain-opacity);
  background-image: linear-gradient(transparent 0%, rgba(130, 190, 255, 0.25) 50%, transparent 100%);
  background-size: 3px 28px;
  transform: skewX(-16deg);
  animation: rain-fall 0.65s linear infinite;
}

.world-effects__snow {
  opacity: var(--weather-snow-opacity);
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.8) 0 2px, transparent 2.5px),
    radial-gradient(circle, rgba(255,255,255,0.55) 0 1.5px, transparent 2px);
  background-size: 130px 130px, 90px 90px;
  background-position: 0 0, 40px 30px;
  animation: snow-drift 12s linear infinite;
}

.world-effects__fog {
  opacity: var(--weather-fog-opacity);
  background:
    radial-gradient(800px 320px at 20% 80%, rgba(196, 213, 226, 0.18), transparent 70%),
    radial-gradient(900px 420px at 80% 70%, rgba(196, 213, 226, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(190, 205, 216, 0.12), rgba(190, 205, 216, 0));
}

.world-effects__night-glow {
  opacity: var(--night-glow-opacity);
  background:
    radial-gradient(900px 420px at 50% 100%, rgba(33, 120, 255, 0.2), transparent 75%),
    radial-gradient(700px 260px at 50% 85%, rgba(255, 183, 77, 0.12), transparent 72%);
}

.layer-loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 10, 18, 0.28);
  backdrop-filter: blur(4px);
  z-index: 1500;
}

.layer-loading.is-hidden {
  display: none;
}

.layer-loading__panel {
  width: min(360px, calc(100vw - 40px));
  padding: 16px;
  border-radius: 18px;
  background: rgba(8, 13, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--dt-shadow);
}

.layer-loading__label {
  display: block;
  margin-bottom: 10px;
  color: var(--dt-text);
  font-size: 0.92rem;
  font-weight: 600;
}

.layer-loading__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.layer-loading__bar div {
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--dt-accent), transparent);
  animation: loading 1.4s ease-in-out infinite;
}

.status-ribbon {
  position: fixed;
  left: 350px;
  right: 360px;
  z-index: 1000;
}

.status-ribbon {
  top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(7, 12, 22, 0.94), rgba(13, 20, 34, 0.78));
  border: 1px solid var(--dt-border);
  box-shadow: var(--dt-shadow);
  backdrop-filter: blur(12px);
}

.status-ribbon__intro {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-ribbon__eyebrow,
.hero-panel__eyebrow,
.scenario-panel__eyebrow {
  color: var(--dt-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-family: var(--dt-font-mono);
}

.status-ribbon__intro strong {
  font-size: 1rem;
  font-weight: 600;
}

.status-ribbon__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
}

.status-chip {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-chip__label,
.kpi-card__label,
.hero-panel__card span {
  display: block;
  color: var(--dt-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.status-chip__value {
  font-size: 0.94rem;
  font-weight: 600;
}

body.weather-rain #cesiumContainer,
body.weather-snow #cesiumContainer,
body.weather-night #cesiumContainer {
  filter: saturate(1.06) contrast(1.04);
}

body.weather-night::before {
  background: radial-gradient(1000px 580px at 18% 12%, rgba(33, 120, 255, 0.24), transparent 62%),
              radial-gradient(900px 500px at 80% 15%, rgba(31, 41, 92, 0.34), transparent 60%),
              radial-gradient(1000px 700px at 50% 90%, rgba(255, 183, 77, 0.12), transparent 65%);
}

body.weather-water::before {
  background: radial-gradient(1100px 520px at 22% 14%, rgba(56, 189, 248, 0.2), transparent 60%),
              radial-gradient(1000px 540px at 76% 18%, rgba(14, 116, 144, 0.22), transparent 60%),
              radial-gradient(900px 460px at 50% 92%, rgba(37, 99, 235, 0.14), transparent 68%);
}

/* Sidebar */
#menu,
.sidebar {
  position: fixed;
  top: 14px;
  left: 14px;
  bottom: 14px;
  width: 320px;
  padding: 12px 12px 16px;
  background: var(--dt-panel);
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius-lg);
  box-shadow: var(--dt-shadow);
  backdrop-filter: blur(12px);
  overflow-y: auto;
  z-index: var(--z-menu);
  animation: panel-rise 0.5s ease;
}

.sidebar-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 6px 6px 10px;
  border-bottom: 1px solid var(--dt-border);
  margin-bottom: 8px;
}

.sidebar-tools {
  margin: 8px 0 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(10, 16, 28, 0.84);
  border: 1px solid var(--dt-border);
}

.sidebar-tools__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-action-btn,
.locale-switch__btn {
  min-height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(19, 28, 44, 0.92);
  color: var(--dt-text);
  font-family: var(--dt-font);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sidebar-action-btn {
  flex: 1;
  padding: 0 12px;
  text-align: left;
}

.sidebar-action-btn:hover,
.locale-switch__btn:hover {
  border-color: rgba(61, 214, 198, 0.32);
  background: rgba(27, 38, 58, 0.96);
  transform: translateY(-1px);
}

.locale-switch {
  display: inline-flex;
  gap: 6px;
}

.locale-switch__btn {
  width: 44px;
  padding: 0;
}

.locale-switch__btn.is-active {
  border-color: rgba(61, 214, 198, 0.38);
  background: rgba(61, 214, 198, 0.15);
  color: #dffffa;
}

.sidebar-briefing {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(13, 20, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-briefing h3 {
  margin: 0 0 8px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dt-accent);
}

.sidebar-briefing p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--dt-text);
}

.sidebar .brand {
  font-weight: 700;
  letter-spacing: 0.6px;
  font-size: 1.05rem;
}

.sidebar .version {
  color: var(--dt-muted);
  font-size: 0.82rem;
  font-family: var(--dt-font-mono);
}

.menu-group {
  margin-top: 10px;
}

.menu-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(160deg, rgba(13, 22, 38, 0.95), rgba(11, 18, 30, 0.85));
  color: var(--dt-text);
  padding: 10px 12px;
  border-radius: var(--dt-radius-sm);
  border: 1px solid var(--dt-border);
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover {
  border-color: rgba(61, 214, 198, 0.35);
  box-shadow: var(--dt-glow);
  transform: translateY(-1px);
}

.menu-toggle .icon {
  display: inline-block;
  transition: transform 0.18s ease;
  color: var(--dt-accent);
}

.menu-toggle[aria-expanded="true"] .icon {
  transform: rotate(90deg);
}

.submenu {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 0 0 8px;
  border-left: 2px solid rgba(255, 255, 255, 0.06);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.22s ease;
}

.submenu.open {
  max-height: 520px;
}

.menu-item,
.menu-link {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin: 6px 0 0;
  border-radius: 12px;
  background: rgba(14, 20, 34, 0.7);
  color: var(--dt-text);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.menu-item:hover,
.menu-link:hover {
  background: rgba(29, 38, 58, 0.85);
  border-color: rgba(61, 214, 198, 0.3);
  transform: translateY(-1px);
  text-decoration: none;
}

.menu-item:active,
.menu-link:active {
  transform: translateY(0);
}

#legend {
  margin-top: 12px;
  padding: 12px;
  background: rgba(11, 17, 30, 0.8);
  border-radius: var(--dt-radius);
  border: 1px solid var(--dt-border);
  box-shadow: var(--dt-shadow);
  font-size: 0.84rem;
  color: var(--dt-text);
}

#legend h4 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dt-muted);
}

#legend ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.legend-color {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* Right Panel */
#rightPanel {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: 330px;
  background: var(--dt-panel-strong);
  padding: 18px;
  overflow-y: auto;
  border-radius: var(--dt-radius-lg);
  border: 1px solid var(--dt-border);
  box-shadow: var(--dt-shadow);
  color: var(--dt-text);
  z-index: 1000;
  animation: panel-rise 0.5s ease;
}

#rightPanel h2 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#closePanelBtn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--dt-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--dt-text);
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

#closePanelBtn:hover {
  border-color: rgba(61, 214, 198, 0.4);
  background: rgba(61, 214, 198, 0.12);
  transform: rotate(6deg);
}

.chart-container {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(11, 17, 30, 0.75);
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Notifications */
#notificationArea {
  position: fixed;
  top: 108px;
  left: 350px;
  width: clamp(300px, calc(100vw - 760px), 420px);
  z-index: 1100;
  display: block;
  animation: fade-in 0.6s ease;
}

.status-toast {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--dt-text);
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.96), rgba(14, 20, 34, 0.96));
  border: 1px solid rgba(61, 214, 198, 0.18);
  box-shadow: 0 14px 28px rgba(4, 8, 16, 0.34);
  font-size: 0.86rem;
  line-height: 1.45;
  backdrop-filter: blur(10px);
}

.status-toast.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobility-legend {
  position: fixed;
  right: 370px;
  bottom: 26px;
  width: 270px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.96), rgba(14, 20, 34, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 34px rgba(4, 8, 16, 0.5);
  color: var(--dt-text);
  z-index: 1090;
  backdrop-filter: blur(12px);
}

.mobility-legend.is-hidden {
  display: none;
}

.mobility-legend h4 {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.mobility-legend ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 7px;
}

.mobility-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.mobility-legend p {
  margin: 0;
  color: var(--dt-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.mobility-legend__swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mobility-legend__swatch--free { background: #34d399; }
.mobility-legend__swatch--pressure { background: #facc15; }
.mobility-legend__swatch--delay { background: #fb923c; }
.mobility-legend__swatch--bottleneck { background: #f43f5e; }

.location-info-card {
  position: relative;
  padding: 16px 16px 14px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  border-radius: 18px;
  color: var(--dt-text);
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.98), rgba(14, 20, 34, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 34px rgba(4, 8, 16, 0.5);
}

.location-info-card.is-hidden {
  display: none;
}

.location-info-card h4 {
  margin: 0 40px 12px 0;
  font-size: 0.98rem;
  color: var(--dt-text);
  line-height: 1.35;
}

.location-info-card__section {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.location-info-card__section h5 {
  margin: 0 0 6px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dt-muted);
}

.location-info-card__section div {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--dt-text);
}

.location-info-card__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.location-info-card__action-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(61, 214, 198, 0.22);
  background: rgba(61, 214, 198, 0.12);
  color: #defef9;
  font-family: var(--dt-font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.location-info-card__action-btn:hover {
  background: rgba(61, 214, 198, 0.18);
  border-color: rgba(61, 214, 198, 0.35);
}

.location-info-card__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--dt-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
}

.location-info-card__close:hover {
  color: var(--dt-text);
  background: rgba(61, 214, 198, 0.12);
  border-color: rgba(61, 214, 198, 0.25);
}

/* Minimap */
#minimap-container {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 230px;
  height: 170px;
  background: rgba(11, 17, 30, 0.85);
  border: 1px solid var(--dt-border);
  border-radius: 14px;
  box-shadow: var(--dt-shadow);
  overflow: hidden;
  z-index: 1000;
}

#minimap {
  width: 100%;
  height: 100%;
  filter: saturate(1.1) contrast(1.05);
}

/* Splash Screen */
#splashScreen {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  background: radial-gradient(1200px 600px at 50% 20%, rgba(61, 214, 198, 0.18), transparent 60%),
              linear-gradient(140deg, #060b15, #0b1220 55%, #101a2d);
  flex-direction: column;
  text-align: center;
  transition: opacity 0.26s ease;
}

#splashScreen h1 {
  color: var(--dt-text);
  font-size: 2.1rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  margin-bottom: 14px;
  font-weight: 600;
}

.welcome-kicker {
  margin: 0 0 8px;
  color: var(--dt-accent);
  font-family: var(--dt-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.welcome-lead {
  max-width: 760px;
  margin: 0 auto 12px;
  color: var(--dt-text);
  font-size: 1rem;
  line-height: 1.6;
}

#loadingText {
  color: var(--dt-muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.welcome-actions {
  margin-top: 18px;
}

.enter-twin-btn {
  min-width: 220px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(61, 214, 198, 0.36);
  background: linear-gradient(135deg, rgba(61, 214, 198, 0.18), rgba(35, 188, 168, 0.12));
  color: var(--dt-text);
  font-family: var(--dt-font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease, border 0.2s ease;
}

.enter-twin-btn:disabled {
  cursor: wait;
}

#splashScreen.is-ready .enter-twin-btn {
  opacity: 1;
}

#splashScreen.is-ready .enter-twin-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(61, 214, 198, 0.5);
}

.welcome-footer {
  max-width: 760px;
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--dt-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.welcome-footer strong,
.welcome-footer span {
  display: block;
}

.logo-container {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin: 18px 0 12px;
}

.logo {
  width: 90px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(61, 214, 198, 0.35));
  border-radius: 12px;
}

.loading-bar {
  width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  position: relative;
  margin-top: 18px;
  overflow: hidden;
}

.loading-bar div {
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--dt-accent), transparent);
  animation: loading 2.2s ease-in-out infinite;
}

@keyframes loading {
  0% { transform: translateX(-60%); }
  100% { transform: translateX(160%); }
}

/* Chat */
.chat-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 360px;
  z-index: 1000;
  color: var(--dt-text);
  font-family: var(--dt-font);
}

.chat-container .card {
  background: rgba(12, 18, 32, 0.9);
  border: 1px solid var(--dt-border);
  border-radius: 16px;
  box-shadow: var(--dt-shadow);
  overflow: hidden;
}

.chat-container .card-header {
  background: linear-gradient(135deg, rgba(61, 214, 198, 0.22), rgba(16, 24, 38, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 600;
}

.chat-container .card-header .btn {
  border-radius: 999px;
  font-size: 0.75rem;
}

.chat-window {
  height: 300px;
  overflow-y: auto;
  background: rgba(9, 14, 26, 0.85);
  padding: 12px;
  border-radius: 12px;
  margin: 12px;
}

.card-footer {
  background: rgba(9, 14, 26, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#user-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--dt-text);
}

#user-input::placeholder {
  color: var(--dt-muted);
}

#send-btn {
  background: var(--dt-accent);
  border: none;
  color: #07141b;
  font-weight: 600;
}

#send-btn:hover {
  background: var(--dt-accent-strong);
}

.message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.user-message {
  background: rgba(61, 214, 198, 0.15);
  color: var(--dt-text);
  text-align: right;
  border: 1px solid rgba(61, 214, 198, 0.25);
}

.bot-message {
  background: rgba(255, 255, 255, 0.05);
  color: var(--dt-text);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Utility */
.noscript-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #0b1220;
  color: var(--dt-text);
}

@keyframes panel-rise {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rain-fall {
  from { transform: translateY(-30px) skewX(-16deg); }
  to { transform: translateY(30px) skewX(-16deg); }
}

@keyframes snow-drift {
  from { transform: translateY(-20px); }
  to { transform: translateY(40px); }
}

/* Responsive tweaks */
@media (max-width: 1100px) {
  .status-ribbon {
    left: 310px;
    max-width: min(500px, calc(100vw - 330px));
  }

  .status-ribbon {
    right: 330px;
  }

  #menu,
  .sidebar {
    width: 280px;
  }

  #notificationArea {
    left: 310px;
  }
}

@media (max-width: 900px) {
  .status-ribbon {
    left: 280px;
    max-width: min(420px, calc(100vw - 300px));
  }

  .status-ribbon {
    right: 300px;
  }

  .status-ribbon {
    grid-template-columns: 1fr;
    display: grid;
  }

  .status-ribbon__metrics {
    grid-template-columns: 1fr;
  }

  #menu,
  .sidebar {
    width: 250px;
  }

  #notificationArea {
    left: 270px;
  }

  #rightPanel {
    width: 290px;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow: auto;
  }

  .status-ribbon {
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
    border-radius: var(--dt-radius);
  }

  .status-ribbon {
    position: absolute;
  }

  #menu,
  .sidebar {
    top: 180px;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: none;
  }

  #rightPanel {
    top: 860px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: none;
  }

  #notificationArea {
    position: absolute;
    top: 1400px;
    bottom: auto;
    left: 14px;
    right: 14px;
    max-width: none;
  }

  #minimap-container {
    position: absolute;
    top: 1640px;
    bottom: auto;
    width: 180px;
    height: 130px;
  }

  .chat-container {
    position: absolute;
    top: 1800px;
    width: 100%;
    right: 0;
    left: 0;
    padding: 0 10px;
  }
}
