/* --- 1. VARIABLES & RESET --- */
:root {
  --bg-page: #f2f7f5;       /* Minty Off-White Background */
  --bg-white: #ffffff;
  --sidebar-bg: #ffffff;    
  --text-main: #0f172a;
  --text-muted: #64748b;
--primary-dark: #034435;  /* Deep Evergreen */
  --primary-green: #41a772; /* Bright Mint Button */
  --radius-card: 24px;
  --radius-btn: 8px;
  --font-serif: 'Fraunces', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  height: 100vh;
  overflow: hidden;
}

/* --- 2. LAYOUT --- */
.app-container { display: flex; height: 100%; }

/* --- 3. SIDEBAR --- */
.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(0,0,0,0.05);
}

.logo-area { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.logo-icon { 
  background: var(--primary-dark); 
  width: 40px; height: 40px; 
  border-radius: 10px; 
  display: flex; align-items: center; justify-content: center;
  color: white; 
}
.logo-text { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--primary-dark); }

.nav-tabs { list-style: none; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.nav-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px;
  border-radius: 12px;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-item:hover { background-color: #f1f5f9; color: var(--text-main); }
.nav-item.active { 
  background-color: var(--primary-dark); 
  color: white; 
}

.sidebar-footer { margin-top: auto; }
.footer-link { margin-top: 4px; color: var(--text-muted); padding: 10px 20px; display: flex; gap: 16px; cursor: pointer; }

/* --- 4. MAIN CONTENT --- */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 40px 60px;
}

/* --- 5. HEADER --- */
.glass-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 40px;
}
.header-left h2 { font-family: var(--font-serif); font-size: 36px; margin-bottom: 8px; color: var(--text-main); }
.header-left p { color: var(--text-muted); font-size: 16px; margin-top: 0; }

.header-right { display: flex; gap: 12px; }
.icon-btn {
  width: 48px; height: 48px;
  border: none; background: white;
  border-radius: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  color: var(--text-main);
}
.dark-btn { background: var(--primary-dark); color: white; }

/* Make Home Banner Smaller */
.home-hero {
  position: relative;
  background: #064e3b; 
  background-image: url('https://images.unsplash.com/photo-1595278069441-2cf29f8005a4?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  padding: 40px 50px; /* Reduced padding */
  color: white;
  margin-bottom: 32px;
  overflow: hidden;
  min-height: 300px; /* Reduced Height */
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.6) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.pill-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  color: #2e9b73;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  text-transform: uppercase;
}
.home-hero h1 { font-family: var(--font-serif); font-size: 56px; line-height: 1.1; margin-bottom: 24px; }
.home-hero p { font-size: 18px; opacity: 0.9; line-height: 1.6; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; }
.btn-primary {
  background: var(--primary-green);
  color: #0f172a; border: none; padding: 14px 28px; border-radius: var(--radius-btn);
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.btn-outline {
  background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 28px; border-radius: var(--radius-btn); font-weight: 600; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.feature-card { background: white; padding: 32px; border-radius: var(--radius-card); box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.icon-square {
  width: 48px; height: 48px; background: #dcfce7; color: #15803d; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* --- 7. HEATMAPS STYLES (UPDATED) --- */
.content-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  margin-bottom: 24px;
}
.wide-card { width: 100%; position: relative; }

/* New Flex Header for Map Card */
.card-header-row { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-end; /* Align bottom of text */
  margin-bottom: 24px;
}

.card-header-row h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text-main);
  margin: 0;
}

.status-text-right {
  font-size: 14px;
  color: #334155; /* Darker slate for readability */
  font-weight: 500;
}

/* Make Heatmap Container Smaller */
.map-container { 
  width: 100%; 
  height: 400px; /* Reduced from 600px */
  border-radius: 16px; 
  border: 1px solid #e2e8f0; 
  z-index: 10;
  background: #f1f5f9;
}

/* --- 8. REAL-TIME & MISSION --- */
.providence-banner {
  background-color: var(--primary-dark); color: white; padding: 60px;
  border-radius: var(--radius-card); margin-bottom: 24px; text-align: center;
}
.banner-overline { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; opacity: 0.7; color: #59dba7; text-transform: uppercase; }
#live-counter { font-family: var(--font-serif); font-size: 96px; line-height: 1; margin: 16px 0; font-weight: 400; }
.banner-sub { opacity: 0.9; font-size: 16px; margin-bottom: 24px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15);
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
}

/* Live Statistics */
.live-stats-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 32px 0;
}

.home-stats {
  margin-top: 48px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 32px 48px;
  text-align: center;
  min-width: 220px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  color: white;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.85;
  color: white;
  letter-spacing: 0.5px;
}

.home-stats .stat-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 24px 40px;
}

.large-counter {
  font-family: var(--font-serif);
  font-size: 96px;
  line-height: 1;
  margin: 16px 0;
  font-weight: 400;
}

.live-stat-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 200px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.live-stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 48px;
  line-height: 1;
}

.stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  color: white;
}

.stat-label {
  font-size: 14px;
  opacity: 0.8;
  font-weight: 500;
  margin-top: 4px;
}
.dot-pulse { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; }
.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: 20px; }
.impact-list { display: flex; flex-direction: column; gap: 16px; }
.impact-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.text-green { color: #15803d; font-size: 18px; font-weight: 700; }
.text-yellow { color: #eab308; font-size: 18px; font-weight: 700; }
.text-blue { color: #0ea5e9; font-size: 18px; font-weight: 700; }
.chart-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.calendar-controls { display: flex; gap: 8px; align-items: center; background: #f8fafc; padding: 4px; border-radius: 8px; }
.calendar-controls button { border: none; background: white; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

/* Mission Text Styles */
.card-text { font-size: 16px; line-height: 1.6; color: #334155; margin-top: 8px; }
.card-text-sm { font-size: 14px; line-height: 1.5; color: #475569; margin-top: 8px; }
.icon-red { color: #ef4444; }
.icon-yellow { color: #eab308; }
.solution-list { background: #f8fafc; padding: 20px; border-radius: 12px; margin-top: 24px; }
.solution-list ul { padding-left: 20px; color: #475569; line-height: 1.8; }
.icon-green-circle { color: #047857; background: #d1fae5; padding: 6px; border-radius: 50%; width: 32px; height: 32px; }

/* Utilities */
.tab-pane { display: none; animation: fadeIn 0.4s ease; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

