/* ================================================================
   css/waarschuwingen.css — Weerswaarschuwingen stijlen
================================================================ */

/* ── Knop rechtsboven ─────────────────────────────────────────── */
.waarschuwingen-knop {
  background-color: #555;
  color: #fff;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  height: 30px;
  min-width: 50px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.15s;
  font-family: Arial, sans-serif;
}

.waarschuwingen-knop:hover {
  filter: brightness(1.15);
}

/* Pulseer animatie voor zware waarschuwingen */
@keyframes wsPuls {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

.ws-pulseert {
  animation: wsPuls 1.5s ease-in-out infinite;
}

/* ── Panel ────────────────────────────────────────────────────── */
.ws-panel {
  position: fixed;
  top: 60px;
  right: 10px;
  width: 340px;
  max-height: calc(100vh - 80px);
  background: rgb(28, 28, 28);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  z-index: 8000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
}

/* Header */
.ws-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.ws-panel-titel {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.ws-totaal {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}

.ws-sluit {
  background: none;
  border: none;
  color: rgb(150,150,150);
  font-size: 13px;
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 4px;
  transition: background 0.15s;
}

.ws-sluit:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Filters */
.ws-filters {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  background: rgb(24, 24, 24);
}

.ws-filter {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  color: rgb(180,180,180);
  font-size: 11px;
  font-family: Arial, sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.ws-filter:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.ws-filter-actief {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.ws-filter-stip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Lijst */
.ws-lijst {
  overflow-y: auto;
  flex: 1;
  padding: 6px 0;
}

.ws-leeg {
  padding: 24px;
  text-align: center;
  color: rgb(120,120,120);
  font-size: 13px;
}

.ws-item {
  padding: 10px 14px 10px 11px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.12s;
}

.ws-item:hover {
  background: rgba(255,255,255,0.03);
}

.ws-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.ws-item-type {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.ws-item-ernst {
  font-size: 11px;
  font-weight: 600;
}

.ws-item-gebied {
  font-size: 11px;
  color: rgb(170,170,170);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.ws-land {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  padding: 0 4px;
  font-size: 10px;
  color: rgb(150,150,150);
}

.ws-item-desc {
  font-size: 11px;
  color: rgb(140,140,140);
  line-height: 1.4;
  margin-bottom: 4px;
}

.ws-item-tijd {
  font-size: 10px;
  color: rgb(110,110,110);
}

/* Footer */
.ws-panel-footer {
  padding: 7px 14px;
  font-size: 10px;
  color: rgb(100,100,100);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgb(22,22,22);
  flex-shrink: 0;
}

/* ── Custom scrollbar ────────────────────────────────────── */
.ws-panel {
  overflow-y: auto;
  scrollbar-width: thin;                    /* Firefox */
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
 
/* Chrome/Safari/Edge */
.ws-panel::-webkit-scrollbar {
  width: 4px;
}
.ws-panel::-webkit-scrollbar-track {
  background: transparent;
}
.ws-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
.ws-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* MapLibre popup override voor waarschuwingsgebieden */
.maplibregl-popup-content {
  background: rgb(30,30,30) !important;
  border-radius: 10px !important;
  padding: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6) !important;
}

.maplibregl-popup-tip {
  border-top-color: rgb(30,30,30) !important;
}