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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
  font-size: 12px;
  background: #d6e4f0;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Title Bar */
.titlebar {
  background: #4a7db5;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.titlebar-left { display: flex; align-items: center; gap: 8px; }
.win-icon {
  width: 16px; height: 16px;
  background: #7fc4e8;
  border-radius: 50%;
  border: 1px solid #5aa8d0;
  flex-shrink: 0;
}
.titlebar-text { display: flex; flex-direction: column; }
.titlebar-title { color: #fff; font-size: 12px; font-weight: 500; }
.titlebar-subtitle { color: #b8d8f0; font-size: 10px; }
.titlebar-right { display: flex; align-items: center; gap: 6px; }
.tb-badge {
  background: #3a6da5;
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid #2a5a90;
}
.tb-badge.delhi { background: #2a5a90; }
.tb-badge.chennai { background: #c06020; border-color: #a05010; }

/* Menu Bar */
.menubar {
  background: #e8f0f8;
  border-bottom: 1px solid #b0c8e0;
  padding: 2px 8px;
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.menu-item {
  font-size: 11px;
  color: #2a4a6a;
  padding: 2px 8px;
  border-radius: 2px;
  cursor: pointer;
}
.menu-item:hover { background: #c8dcf0; }

/* Layout */
.layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 190px;
  background: #e4eef8;
  border-right: 1px solid #b0c8e0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
}
.panel-header {
  background: #4a7db5;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.filter-section {
  border-bottom: 1px solid #c0d4e8;
  padding: 6px 8px;
}
.filter-label {
  font-size: 10px;
  color: #4a6a8a;
  font-weight: 500;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.city-toggle { display: flex; gap: 3px; }
.city-btn {
  flex: 1;
  padding: 3px 4px;
  font-size: 10px;
  border: 1px solid #b0c8e0;
  background: #f0f6fc;
  border-radius: 2px;
  cursor: pointer;
  color: #2a4a6a;
  font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
}
.city-btn:hover { background: #ddeaf8; }
.city-btn.active { background: #4a7db5; color: #fff; border-color: #3a6da5; }
.city-btn.active.chennai-active { background: #c06020; border-color: #a05010; }
.year-select {
  width: 100%;
  padding: 3px 5px;
  font-size: 11px;
  border: 1px solid #b0c8e0;
  background: #f0f6fc;
  border-radius: 2px;
  color: #1a3a5a;
  font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  cursor: pointer;
}
.check-row input[type="checkbox"] {
  width: 12px;
  height: 12px;
  accent-color: #4a7db5;
  cursor: pointer;
  flex-shrink: 0;
}
.check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.check-row span:last-child { font-size: 11px; color: #1a3a5a; }
.reset-btn {
  margin: 6px 8px;
  padding: 5px;
  font-size: 11px;
  border: 1px solid #b0c8e0;
  background: #f0f6fc;
  border-radius: 2px;
  cursor: pointer;
  color: #2a4a6a;
  width: calc(100% - 16px);
  font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
}
.reset-btn:hover { background: #ddeaf8; }
.stats-card { padding: 6px 8px; background: #ddeaf8; }
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid #c8dcf0;
}
.stat-row:last-child { border-bottom: none; }
.stat-lbl { font-size: 10px; color: #4a6a8a; }
.stat-val { font-size: 11px; font-weight: 500; color: #1a3a6a; }
.stat-val.highlight { color: #c06020; }

/* Map */
#map {
  flex: 1;
  background: #e8f0f8;
  will-change: transform;
  transform: translateZ(0);
  touch-action: pan-x pan-y;
}

/* Leaflet popup Windows 7 style */
.leaflet-popup-content-wrapper {
  background: #ffffff;
  border: 1px solid #b0c8e0;
  border-radius: 2px;
  box-shadow: none;
  font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
  font-size: 11px;
  color: #1a1a1a;
}
.leaflet-popup-tip { background: #ffffff; }
.popup-title { font-weight: 500; font-size: 12px; color: #1a3a6a; margin-bottom: 4px; border-bottom: 1px solid #c0d4e8; padding-bottom: 3px; }
.popup-row { display: flex; justify-content: space-between; gap: 12px; padding: 1px 0; }
.popup-lbl { color: #4a6a8a; }
.popup-val { font-weight: 500; }

/* Leaflet zoom control */
.leaflet-control-zoom a {
  background: #e4eef8;
  border: 1px solid #b0c8e0;
  color: #2a4a6a;
  border-radius: 2px;
  font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
}
.leaflet-control-zoom a:hover { background: #ddeaf8; }

/* Legend */
.map-legend {
  background: #e4eef8;
  border: 1px solid #b0c8e0;
  border-radius: 2px;
  padding: 6px 8px;
  font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
  font-size: 10px;
  line-height: 1.8;
}
.legend-title {
  font-size: 9px;
  font-weight: 500;
  color: #2a4a6a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
  border-bottom: 1px solid #c0d4e8;
  padding-bottom: 2px;
}
.legend-row { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-ring { width: 10px; height: 10px; border-radius: 50%; border: 2px solid; background: transparent; flex-shrink: 0; }
.legend-sep { border-top: 1px solid #c0d4e8; margin: 4px 0; }

/* Bottom Panel */
.bottom-panel {
  height: 160px;
  background: #e8f0f8;
  border-top: 1px solid #b0c8e0;
  display: flex;
  flex-shrink: 0;
}
.chart-box {
  flex: 1;
  padding: 8px 10px;
  border-right: 1px solid #c0d4e8;
  display: flex;
  flex-direction: column;
}
.chart-box:last-child { border-right: none; }
.chart-title {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 5px;
  flex-shrink: 0;
}
.delhi-title { color: #1a4a8a; }
.chennai-title { color: #b05010; }
.chart-box canvas { flex: 1; min-height: 0; }

/* Status Bar */
.statusbar {
  background: #c8dcf0;
  border-top: 1px solid #a8c0d8;
  padding: 2px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.status-txt { font-size: 10px; color: #2a4a6a; }
.status-info { font-size: 10px; color: #4a6a8a; }

/* Hamburger — mobile only */
.hamburger {
  display: none;
  background: transparent;
  border: 1px solid #b8d8f0;
  color: #fff;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 11px;
  cursor: pointer;
  font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 601px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border-right: none;
    border-bottom: 1px solid #b0c8e0;
    overflow-y: visible;
    overflow-x: auto;
  }
  .panel-header { display: none; }
  .filter-section { border: 1px solid #c0d4e8; border-radius: 2px; padding: 6px 8px; flex: 1 1 140px; }
  .stats-card { flex: 1 1 100%; }
  .reset-btn { margin: 0; width: auto; flex: 0 0 auto; align-self: flex-end; }
  #map { height: 50vh; }
  .bottom-panel { height: auto; flex-direction: column; }
  .chart-box { height: 160px; border-right: none; border-bottom: 1px solid #c0d4e8; }
}

/* Mobile */
@media (max-width: 600px) {
  .titlebar-subtitle { display: none; }
  .tb-badge { display: none; }
  .hamburger { display: inline-block; }
  .menubar { display: none; }
  .sidebar {
    display: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #b0c8e0;
    max-height: 65vh;
    overflow-y: auto;
  }
  .sidebar.open { display: flex; }
  #map { height: 48vh; }
  .bottom-panel { height: auto; flex-direction: column; }
  .chart-box { height: 150px; border-right: none; border-bottom: 1px solid #c0d4e8; }
  .chart-box:last-child { border-bottom: none; }
  .statusbar .status-info { display: none; }
}

@media (min-width: 601px) {
  .hamburger { display: none !important; }
  .sidebar { display: flex !important; }
}
. l e a f l e t - i n t e r a c t i v e   {   c u r s o r :   p o i n t e r   ! i m p o r t a n t ;   }  
 