/* ==================== BASE STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a1628;
  --bg-card: #111d33;
  --bg-sidebar: #0a1628;
  --bg-header: #0a1628;
  --text-primary: #ffffff;
  --text-secondary: #8b9dc3;
  --text-muted: #4a5a7a;
  --accent-blue: #3b82f6;
  --accent-orange: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --border-color: #1e2d4a;
  --gradient-blue: linear-gradient(135deg, #3b82f6, #1d4ed8);
  --gradient-orange: linear-gradient(135deg, #f59e0b, #d97706);
  --gradient-green: linear-gradient(135deg, #10b981, #059669);
  --gradient-red: linear-gradient(135deg, #ef4444, #dc2626);
  --sidebar-width: 220px;
  --header-height: 60px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==================== HEADER ==================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-circle {
  width: 40px;
  height: 40px;
  background: var(--gradient-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-text p {
  font-size: 10px;
  color: var(--text-secondary);
}

.header-title {
  display: flex;
  flex-direction: column;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--border-color);
}

.header-title h2 {
  font-size: 20px;
  font-weight: 700;
}

.header-title p {
  font-size: 12px;
  color: var(--text-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.header-btn {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  transition: all 0.3s;
}

.header-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--accent-blue);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-red);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.alert-box {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 6px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.alert-box .alert-label {
  font-size: 11px;
  font-weight: 600;
  color: #fca5a5;
}

.alert-box .alert-text {
  font-size: 12px;
  color: #fecaca;
}

.datetime-box {
  text-align: right;
}

.datetime-box .time {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.datetime-box .date {
  font-size: 11px;
  color: var(--text-secondary);
}

.user-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.user-box:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--accent-blue);
}

.user-avatar {
  width: 30px;
  height: 30px;
  background: var(--gradient-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.user-info .user-name {
  font-size: 12px;
  font-weight: 600;
}

.user-info .user-role {
  font-size: 10px;
  color: var(--text-secondary);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 220px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 1001;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 13px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-primary);
}

.dropdown-item.text-danger {
  color: var(--accent-red);
}

.dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.dropdown-divider {
  margin: 5px 0;
  border: none;
  border-top: 1px solid var(--border-color);
}

.dropdown-footer {
  padding: 10px;
  border-top: 1px solid var(--border-color);
}

.view-all {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  display: block;
  text-align: center;
}

.notification-dropdown {
  min-width: 320px;
}

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon.red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.notif-icon.orange {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.notif-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.notif-content {
  flex: 1;
}

.notif-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.notif-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==================== LAYOUT ==================== */
.main-layout {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
}

/* ==================== SIDEBAR ==================== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  left: 0;
  top: var(--header-height);
  bottom: 0;
  z-index: 999;
  transition: transform 0.3s;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.nav-menu {
  list-style: none;
  padding: 0 10px;
  overflow-y: auto;
}

.nav-item {
  margin-bottom: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.nav-link:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-primary);
  transform: translateX(5px);
}

.nav-link.active {
  background: var(--gradient-blue);
  color: white;
  font-weight: 600;
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 70%;
  background: white;
  border-radius: 0 3px 3px 0;
}

.nav-link i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.badge-pill {
  margin-left: auto;
  background: var(--accent-red);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.sidebar-footer {
  margin-top: auto;
  padding: 15px;
}

.ministry-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.ministry-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ministry-logo .ministry-text {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==================== SIAGA SECTION ==================== */
.siaga-section {
  margin-top: 15px;
  padding: 0 10px;
}

.siaga-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
}

.siaga-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.siaga-header i {
  color: var(--accent-blue);
}

.siaga-header h4 {
  font-size: 13px;
  font-weight: 600;
}

.siaga-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.siaga-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.siaga-badge {
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.siaga-badge.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.siaga-badge.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.siaga-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 8px 0;
}

/* ==================== CONTENT ==================== */
.content {
  flex: 1;
  padding: 15px;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s;
}

/* ==================== STAT CARDS ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.3s;
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-blue);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.stat-icon.orange {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.stat-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}
.stat-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.stat-info {
  flex: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
}

.stat-change {
  font-size: 11px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-change.up {
  color: #f59e0b;
}
.stat-change.up-green {
  color: #10b981;
}
.stat-change .online-text {
  color: #10b981;
}

/* ==================== MIDDLE SECTION ==================== */
.middle-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header .view-all {
  font-size: 12px;
  color: var(--accent-blue);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.card-header .view-all:hover {
  color: var(--accent-orange);
}

.card-body {
  padding: 18px;
}

/* Map Container */
.map-container {
  position: relative;
  height: 340px;
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-legend-custom {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(10, 22, 40, 0.95);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 11px;
  z-index: 400;
  border: 1px solid var(--border-color);
}

.map-legend-custom h4 {
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.legend-items {
  display: flex;
  gap: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.blue {
  background: var(--accent-blue);
}
.legend-dot.orange {
  background: var(--accent-orange);
}
.legend-dot.green {
  background: var(--accent-green);
}
.legend-dot.red {
  background: var(--accent-red);
}

.map-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--border-color);
}

.region-select {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

/* Buttons */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 11px;
}

.btn-primary {
  background: var(--gradient-blue);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Event List */
.event-list {
  display: flex;
  flex-direction: column;
  max-height: 340px;
  overflow-y: auto;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s;
  cursor: pointer;
}

.event-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(5px);
}

.event-item:last-child {
  border-bottom: none;
}

.event-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.event-icon.flood {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}
.event-icon.landslide {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.event-icon.wind {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.event-info {
  flex: 1;
}

.event-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.event-location {
  font-size: 11px;
  color: var(--text-secondary);
}

.event-meta {
  text-align: right;
}

.event-date {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.event-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}

.event-status.active-red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.event-status.active-orange {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.event-status.monitoring {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.view-all-events {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: var(--accent-blue);
  cursor: pointer;
  border-top: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.2s;
}

.view-all-events:hover {
  background: rgba(59, 130, 246, 0.05);
  color: var(--accent-orange);
}

/* ==================== BOTTOM SECTION ==================== */
.bottom-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

/* Chart */
.chart-container {
  padding: 18px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 15px;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

.chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chart-area {
  height: 180px;
  position: relative;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-muted);
}

/* Distribution */
.distribution-container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
}

.pie-chart {
  width: 140px;
  height: 140px;
  position: relative;
  flex-shrink: 0;
}

.distribution-list {
  flex: 1;
}

.dist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.dist-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dist-name {
  flex: 1;
  color: var(--text-secondary);
}

.dist-value {
  font-weight: 600;
}

.dist-percent {
  color: var(--text-muted);
  font-size: 11px;
  width: 45px;
  text-align: right;
}

.view-detail-link {
  display: block;
  text-align: center;
  padding: 10px 18px;
  font-size: 12px;
  color: var(--accent-blue);
  cursor: pointer;
  border-top: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.2s;
}

.view-detail-link:hover {
  background: rgba(59, 130, 246, 0.05);
  color: var(--accent-orange);
}

/* Posko */
.posko-list {
  padding: 18px;
}

.posko-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}

.posko-item:hover {
  transform: translateX(5px);
}

.posko-item:last-child {
  border-bottom: none;
}

.posko-icon {
  width: 36px;
  height: 36px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 16px;
}

.posko-info {
  flex: 1;
}

.posko-name {
  font-size: 12px;
  font-weight: 600;
}

.posko-volunteers {
  font-size: 11px;
  color: var(--text-secondary);
}

.posko-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.posko-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.view-all-posko {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: var(--accent-blue);
  cursor: pointer;
  border-top: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.2s;
}

.view-all-posko:hover {
  background: rgba(59, 130, 246, 0.05);
  color: var(--accent-orange);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s;
}

.footer-icon {
  color: var(--accent-orange);
  font-size: 16px;
}

.footer-label {
  font-size: 12px;
  font-weight: 600;
  margin-right: 10px;
}

.ticker-wrapper {
  overflow: hidden;
  flex: 1;
  position: relative;
}

.ticker-wrapper {
  padding-left: 10px;
}

.ticker {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  /* overflow: hidden;
  flex: 1; */
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-item strong {
  color: var(--text-primary);
}

/* ==================== MODAL ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal.show {
  display: flex;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  animation: slideUp 0.3s;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(80vh - 70px);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bottom-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .sidebar-overlay.show {
    display: block;
  }

  .content,
  .footer {
    margin-left: 0;
  }

  .header-title {
    display: none;
  }

  .datetime-box {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .middle-section {
    grid-template-columns: 1fr;
  }

  .distribution-container {
    flex-direction: column;
  }
}

/* Leaflet Customization */
.leaflet-container {
  background: var(--bg-dark);
  font-family: inherit;
}

.leaflet-bar {
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.leaflet-bar a {
  background: var(--bg-card);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.leaflet-bar a:hover {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}

.leaflet-popup-content-wrapper {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.leaflet-popup-tip {
  background: var(--bg-card);
}

.leaflet-popup-content {
  margin: 12px;
  font-size: 13px;
}

.leaflet-popup-content h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
}

.leaflet-popup-content p {
  margin: 4px 0;
  color: var(--text-secondary);
}

.leaflet-control-attribution {
  background: rgba(10, 22, 40, 0.8);
  color: var(--text-muted);
}

.leaflet-control-attribution a {
  color: var(--accent-blue);
}
