:root {
  --primary: #1b4332;
  --accent: #06d6a0;
  --bg-dark: #1e293b;
  --bg-light: #f1f5f9;
  --text-dark: #0f172a;
  --text-muted: #64748b;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  height: 100vh;
  overflow: hidden;
}

h1, h2, h3 { font-family: 'Fraunces', serif; }

.app-container { display: flex; height: 100vh; }

/* SIDEBAR */
.sidebar {
  width: 260px;
  background-color: var(--bg-dark);
  color: white;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.logo-area { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.logo-icon { background: var(--accent); width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #064e3b; }
.logo-text { font-family: 'Fraunces', serif; font-size: 24px; }

.nav-tabs { list-style: none; padding: 0; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  cursor: pointer; color: #94a3b8; margin-bottom: 8px;
  transition: all 0.2s;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: white; }
.nav-item.active { background: var(--accent); color: #064e3b; font-weight: 700; }

.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.status-indicator { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; font-weight: 600; }
.dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); }

/* MAIN CONTENT */
.main-content { flex-grow: 1; padding: 32px; overflow-y: auto; position: relative; }

/* HEADER */
.glass-header {
  background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 32px; margin: -32px -32px 30px -32px;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 100;
}
.status-badge { background: #ecfdf5; color: #047857; padding: 6px 12px; border-radius: 20px; font-weight: 700; font-size: 12px; border: 1px solid #a7f3d0; }

/* HERO */
.hero-section {
  background: linear-gradient(rgba(15,23,42,0.8), rgba(15,23,42,0.9)), url('https://images.unsplash.com/photo-1532996122724-e3c354a0b15b?auto=format&fit=crop&w=1000');
  background-size: cover; background-position: center;
  padding: 60px 40px; border-radius: 16px; color: white; margin-bottom: 24px;
}
.hero-content h1 { font-size: 42px; margin-bottom: 10px; }

/* CARDS & GRIDS */
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.content-card { background: white; padding: 24px; border-radius: 16px; border: 1px solid #e2e8f0; margin-bottom: 24px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; color: var(--text-muted); }

/* COUNTER & IMPACT */
.counter-card {
  background: linear-gradient(135deg, #1b4332, #081c15);
  color: white; padding: 40px; text-align: center; border-radius: 16px; margin-bottom: 24px;
}
#live-counter { font-size: 72px; font-weight: 800; font-family: 'Fraunces', serif; margin: 10px 0; transition: transform 0.1s; }

.impact-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.impact-row strong { color: var(--primary); font-size: 18px; }

/* MAP */
.bin-marker { display: flex; align-items: center; justify-content: center; }
.map-legend {
  position: absolute; bottom: 20px; right: 20px;
  background: white; padding: 15px; border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 500; width: 150px;
}
.legend-gradient { height: 8px; background: linear-gradient(to right, #74c69d, #1b4332); border-radius: 4px; margin: 8px 0; }

/* CALENDAR CONTROLS */
.chart-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.calendar-controls { display: flex; align-items: center; gap: 8px; background: #f1f5f9; padding: 4px; border-radius: 8px; }
.calendar-controls button {
  border: none; background: white; width: 30px; height: 30px; border-radius: 6px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
#dateRangeLabel { font-size: 13px; font-weight: 600; padding: 0 8px; }