/* Weersomstandigheden.nl Modern Theme */

:root {
  --bg-primary: #0b1329;
  --panel-bg: rgba(15, 23, 42, 0.82);
  --panel-border: rgba(255, 255, 255, 0.08);
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
}

body {
  background-color: var(--bg-primary);
  color: #f8fafc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  overflow: hidden;
}

/* Glassmorphism containers */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
}

.glass-panel-subtle {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom modern scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.5);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.8);
}

/* Leaflet Customizations */
.leaflet-container {
  background-color: #090e1a !important;
  font-family: inherit;
}

.leaflet-bar {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.leaflet-bar a {
  background-color: rgba(15, 23, 42, 0.9) !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.leaflet-bar a:hover {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
}

.custom-tooltip {
  background-color: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #f1f5f9 !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

.custom-tooltip::before {
  border-top-color: rgba(15, 23, 42, 0.95) !important;
}

/* Range input timeline slider */
input[type="range"].radar-slider {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(51, 65, 85, 0.7);
  border-radius: 9999px;
  height: 6px;
  cursor: pointer;
  outline: none;
}

input[type="range"].radar-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  transition: transform 0.15s ease;
}

input[type="range"].radar-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Pulse badge animation */
@keyframes soft-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.04); }
}

.pulse-attention {
  animation: soft-pulse 2.5s infinite ease-in-out;
}

/* Score circle meter */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 9999px;
}
