/* ==========================================================================
   TOP 100 LONGEST RIVERS IN THE WORLD — HYDROLOGICAL TELEMETRY
   ========================================================================== */

/* Background Effects */
#map-starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #101626 0%, #050608 85%);
  z-index: -2;
}

#map-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.12) 50%);
  background-size: 100% 4px;
  z-index: 1000;
  pointer-events: none;
}

/* Leaflet Map Custom Marker & Canvas Styles */
.leaflet-container {
  background: #080705 !important;
}

/* Table Hover Row */
.table-row-hover {
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.table-row-hover:hover {
  background-color: rgba(0, 242, 255, 0.12);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: rgba(235, 175, 55, 0.35);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(235, 175, 55, 0.7);
}

/* Light Mode Overrides */
body.light-mode {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

body.light-mode #map-starfield {
  background: radial-gradient(circle at center, #e2e8f0 0%, #cbd5e1 85%) !important;
}

body.light-mode #map-scanlines {
  display: none !important;
}

body.light-mode header,
body.light-mode .bg-jhsPanel {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(203, 213, 225, 0.8) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-mode .text-slate-400,
body.light-mode .text-slate-500 {
  color: #475569 !important;
}

body.light-mode .text-white {
  color: #0f172a !important;
}

body.light-mode .bg-jhsDark\/95 {
  background-color: rgba(255, 255, 255, 0.95) !important;
}

body.light-mode .leaflet-container {
  background: #f1f5f9 !important;
}

body.light-mode table {
  color: #1e293b !important;
}

body.light-mode .table-row-hover:hover {
  background-color: rgba(14, 165, 233, 0.1) !important;
}

body.light-mode input,
body.light-mode select {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

body.light-mode .text-slate-100,
body.light-mode .text-slate-200,
body.light-mode .text-slate-300 {
  color: #0f172a !important;
}

body.light-mode #modal-card,
body.light-mode .bg-slate-900,
body.light-mode .bg-slate-950 {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(203, 213, 225, 0.8) !important;
  color: #0f172a !important;
}

