:where([class^="ri-"])::before { content: "\f3c2"; }
.custom-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}
.custom-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Always show the same primary blue for the track */
  background-color: #0284c7;
  transition: .4s;
  border-radius: 24px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
/* Keep the same blue when checked (knob movement handled separately) */
input:checked + .toggle-slider {
  background-color: #0284c7;
}
input:checked + .toggle-slider:before {
  transform: translateX(24px);
}
.hourly-forecast::-webkit-scrollbar {
  height: 6px;
}
.hourly-forecast::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.hourly-forecast::-webkit-scrollbar-thumb {
  background: #0284c7;
  border-radius: 10px;
}
.uv-progress {
  height: 6px;
  background: linear-gradient(to right, #22c55e, #eab308, #ef4444);
  border-radius: 3px;
}
.uv-indicator {
  width: 12px;
  height: 12px;
  background-color: white;
  border: 2px solid #0284c7;
  border-radius: 50%;
  position: absolute;
  top: -3px;
  transform: translateX(-50%);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, #22c55e, #eab308, #ef4444);
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid #0284c7;
  cursor: pointer;
}

/* Weather Radar Controls */
#radar-type-controls input[type="radio"],
#weather-layer-controls input[type="radio"] {
  margin-right: 0.25rem;
  accent-color: #0284c7;
}

#weather-layer-controls label:hover {
  background-color: #f3f4f6;
  border-radius: 0.375rem;
}

#weather-layer-controls label.active {
  background-color: #dbeafe;
  border: 1px solid #60a5fa;
}

.radar-legend {
  transition: opacity 0.3s ease-in-out;
}

.weather-legend-gradient {
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.1);
}