/* Tampa Neighborhood Safety Tracker CSS */

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --accent-blue: #38bdf8;
  --accent-red: #f43f5e;
  --accent-amber: #fbbf24;
  --accent-purple: #c084fc;
  --accent-emerald: #34d399;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Map Markers */
.marker-pin {
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  position: absolute;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin: -20px 0 0 -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.marker-pin:hover {
  transform: rotate(-45deg) scale(1.15);
}
.marker-pin svg {
  transform: rotate(45deg);
  width: 16px;
  height: 16px;
  color: white;
}

.pin-dispatch {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border: 2px solid #e0f2fe;
}
.pin-arrest {
  background: linear-gradient(135deg, #e11d48, #fb7185);
  border: 2px solid #ffe4e6;
}
.pin-crime {
  background: linear-gradient(135deg, #d97706, #fbbf24);
  border: 2px solid #fef3c7;
}
.pin-predator {
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  border: 2px solid #ede9fe;
}
.pin-offender {
  background: linear-gradient(135deg, #9333ea, #a855f7);
  border: 2px solid #f3e8ff;
}

/* Pulsing beacon for recent dispatches */
.pulse-beacon {
  width: 14px;
  height: 14px;
  background-color: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(56, 189, 248, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(56, 189, 248, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

/* Leaflet Popup Custom Styling */
.leaflet-popup-content-wrapper {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6) !important;
  border: 1px solid #334155 !important;
  padding: 4px !important;
}
.leaflet-popup-tip {
  background: #1e293b !important;
}

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

/* Glass panel */
.glass-panel {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
