/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0B0F19;
}
::-webkit-scrollbar-thumb {
  background: #1F2937;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

/* Leaflet Dark Customization */
.leaflet-container {
  background-color: #0B0F19 !important;
  font-family: inherit;
}

/* Invert OSM tiles cleanly for sleek dark theme */
.dark-tiles .leaflet-tile {
  filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(110%);
}

.leaflet-control-layers {
  background: #111827 !important;
  color: #e5e7eb !important;
  border: 1px solid #374151 !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-control-layers-toggle {
  filter: invert(1);
}

.leaflet-popup-content-wrapper {
  background-color: #111827 !important;
  color: #f3f4f6 !important;
  border-radius: 0.75rem !important;
  border: 1px solid #374151 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
  padding: 4px;
}

.leaflet-popup-tip {
  background-color: #111827 !important;
}

.screen-marker-pulse {
  position: relative;
  width: 14px;
  height: 14px;
  background-color: #14b8a6;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.8);
}

.screen-marker-pulse.high-traffic {
  background-color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.9);
}

.screen-marker-pulse::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #14b8a6;
  opacity: 0.7;
  animation: pulse 2s infinite ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

