body {
  margin: 0;
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  padding: 12px;
  background: #111827;
  color: white;
}

#main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  flex: 1;
  min-height: 0;
}

#map {
  height: 100%;
  width: 100%;
}

#panel {
  padding: 10px;
  background: #f3f4f6;
  overflow-y: auto;
}

.card {
  background: white;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 1px 3px #0002;
}

h2 {
  margin-top: 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scroll {
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.8rem;
  border-top: 1px solid #ddd;
}

footer {
  padding: 8px;
  background: #f3f4f6;
  font-size: 0.75rem;
  text-align: center;
}

/* Earthquake Monitor Styles */
.earthquake-monitor {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(to bottom, #ffffff 0%, #fffbeb 100%);
}

.monitor-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.monitor-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.monitor-active {
  background: #d1fae5;
  color: #065f46;
}

.monitor-active .status-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}

.monitor-disabled {
  background: #f3f4f6;
  color: #6b7280;
}

.monitor-disabled .status-dot {
  background: #9ca3af;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.monitor-toggle-btn {
  transition: all 0.3s ease;
}

.monitor-toggle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Notification Items */
.notification-item {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notification-moderate {
  background: #fef3c7;
  border-left-color: #f59e0b !important;
}

.notification-high {
  background: #fed7aa;
  border-left-color: #ea580c !important;
}

.notification-severe {
  background: #fecaca;
  border-left-color: #dc2626 !important;
}

.notification-extreme {
  background: #fda4af;
  border-left-color: #9f1239 !important;
  font-weight: 600;
}
