* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
}

.app {
  width: 100vw;
  height: 100vh;
  position: relative;
  background: #1a1a1a;
}

.app.light {
  background: #f5f5f5;
}

/* Glass morphism panels */
.glass-panel {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 51, 102, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.app.light .glass-panel {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  padding: 16px 24px;
  border-radius: 12px;
  max-width: 400px;
}

.header h1 {
  background: linear-gradient(135deg, #ff3366, #ff6633);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Search Bar */
.search-bar {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  padding: 12px;
  border-radius: 12px;
  width: 300px;
}

/* Map */
.map-container {
  width: 100%;
  height: 100%;
}

.leaflet-container {
  width: 100%;
  height: 100%;
}

/* Custom markers */
.camera-marker {
  background: transparent !important;
  border: none !important;
}

.custom-cluster {
  background: transparent !important;
  border: none !important;
}

.cluster-marker {
  background: rgba(255, 51, 102, 0.8);
  border: 2px solid #ff3366;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* Map Controls */
.map-controls {
  position: absolute;
  bottom: 140px;
  right: 20px;
  z-index: 1000;
  padding: 8px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-btn {
  width: 48px;
  height: 48px;
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: 8px;
  color: #ff3366;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.control-btn:hover:not(:disabled) {
  background: #ff3366;
  color: white;
  transform: scale(1.05);
}

.control-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Filter Panel */
.filter-panel {
  position: absolute;
  top: 180px;
  left: 20px;
  z-index: 1000;
  padding: 16px;
  border-radius: 12px;
  width: 250px;
  color: white;
}

.app.light .filter-panel {
  color: #1a1a1a;
}

/* Stats Panel */
.stats-panel {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  gap: 24px;
}

.stat-item {
  text-align: center;
}

/* Camera Panel */
.camera-panel {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1000;
  padding: 24px;
  border-radius: 12px;
  width: 350px;
  max-height: 80vh;
  overflow-y: auto;
  color: white;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50%) translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
  }
}

.app.light .camera-panel {
  color: #1a1a1a;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 8px;
}

/* Colors */
.text-neon-red {
  color: #ff3366;
}

.bg-neon-red {
  background-color: #ff3366;
}

.text-cyan {
  color: #00d9ff;
}

.bg-cyan {
  background-color: #00d9ff;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    max-width: calc(100vw - 40px);
  }
  
  .search-bar {
    width: calc(100vw - 40px);
    top: auto;
    bottom: 140px;
    right: 20px;
  }
  
  .filter-panel {
    width: calc(100vw - 40px);
  }
  
  .camera-panel {
    width: calc(100vw - 40px);
    right: 20px;
    left: 20px;
    top: auto;
    bottom: 20px;
    transform: none;
    max-height: 60vh;
  }
  
  .stats-panel {
    flex-direction: column;
    gap: 8px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #ff3366;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff6633;
}