/* SafetyNet - High-Contrast Dark Emergency Theme & Custom Animations */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --color-emergency-red: #ef4444;
  --color-emergency-glow: rgba(239, 68, 68, 0.4);
}

body {
  font-family: var(--font-sans);
  background-color: #030712;
  color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.8);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.9);
}

/* Pulsing SOS Button Glow */
@keyframes sosGlow {
  0% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5), 0 0 30px rgba(239, 68, 68, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.85), 0 0 50px rgba(239, 68, 68, 0.45);
  }
  100% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5), 0 0 30px rgba(239, 68, 68, 0.2);
  }
}

.animate-sos-glow {
  animation: sosGlow 2s infinite ease-in-out;
}

/* Leaflet Overrides for Dark Mode */
.leaflet-container {
  background: #020617 !important;
  font-family: var(--font-sans) !important;
}

.leaflet-popup-content-wrapper {
  background: rgba(15, 23, 42, 0.96) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(51, 65, 85, 0.8) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(12px) !important;
}

.leaflet-popup-content {
  margin: 10px 14px !important;
  line-height: 1.4 !important;
}

.leaflet-popup-tip {
  background: rgba(15, 23, 42, 0.96) !important;
  border: 1px solid rgba(51, 65, 85, 0.8) !important;
}

.leaflet-control-zoom a {
  background: #0f172a !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}

.leaflet-control-zoom a:hover {
  background: #1e293b !important;
  color: #ffffff !important;
}

/* User marker ripple */
.user-gps-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.haven-map-marker {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.haven-map-marker:hover {
  transform: scale(1.25);
  z-index: 1000 !important;
}
