/* Weather measurement display helpers */
.measurement::after {
  content: attr(data-value);
}

.weatherIcon {
  display: inline-block;
  width: 1.5rem;
  text-align: center;
  margin: 0 0.25rem;
}

.darkHalo,
.iconHalo {
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 1px rgba(232, 244, 252, 0.9));
}

html.dark .darkHalo,
html.dark .iconHalo {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
}

.tempMin {
  color: rgb(0, 105, 219);
  font-size: 0.875rem;
}

.tempMax {
  color: rgb(255, 80, 80);
  font-size: 0.875rem;
}

.forecastDayContainer {
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.forecastDayContainer .forecastIconSlot {
  margin-left: 0;
}

.forecastDayContainer.active {
  border: 1px dotted currentColor;
  border-radius: 0.5rem;
}

/* Map panel — scoped overrides for embedded dashboard */
.map-panel {
  position: relative;
  min-height: 320px;
  height: 100%;
  align-self: stretch;
}

.map-panel #map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.map-panel #radarAnimation {
  display: none;
}

.map-panel #helpTip {
  z-index: 10;
}

/* Startup spinner */
#kickstart {
  z-index: 50;
  background: transparent;
  color: #0369a1;
}

html.dark #kickstart {
  color: #7dd3fc;
}

/* Map radar overlay — light theme */
html:not(.dark) #weatherStation,
html:not(.dark) #radarTime {
  color: #0f172a;
  text-shadow: none;
}

html:not(.dark) #weatherStation.station-locked {
  color: #15803d;
}

html:not(.dark) #helpTip {
  color: #0f172a;
  text-shadow: none;
}

html:not(.dark) .lock {
  --unlocked-color: #475569;
  --locked-color: #15803d;
}

html.dark #weatherStation.station-locked {
  color: #64ff64;
}

/* Glass panels — light base; dark overrides below */
.glass-panel {
  background-color: rgba(255, 255, 255, 0.4);
  border-color: rgba(0, 0, 0, 0.1);
  --chart-label-halo: #e8f4fc;
}

/* Dark theme — overrides Tailwind gradient/glass that leak through in CDN builds */
html.dark body {
  background-color: #000000;
  background-image: none;
  color: #f5f5f5;
}

html.dark .glass-panel {
  background-color: rgba(12, 12, 12, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  --chart-label-halo: #0b0b0b;
}

html.dark #themeToggle {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark #themeToggle:hover {
  background-color: rgba(255, 255, 255, 0.14);
}
