
:root {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #60a5fa;
  --accent-2: #93c5fd;
  --border: #374151;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  background: linear-gradient(180deg, #0b1220, #0f172a 30%);
  color: var(--text);
}

header, footer { text-align: center; padding: 16px; }
header h1 { margin: 0; font-weight: 700; letter-spacing: 0.3px; }
header p { color: var(--muted); margin-top: 6px; }

.layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

#map {
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-height: 560px;
}

#panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#state-name { margin: 0 0 4px 0; }

#activities-form { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; }
#activities-form .row { display: contents; }
.activity-label { display: flex; justify-content: space-between; gap: 6px; color: var(--text); }
.activity-name { font-weight: 600; }
.unit { color: var(--muted); }

.qty-input {
  width: 100%;
  min-width: 90px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0b1220;
  color: var(--text);
}

.buttons { display: flex; gap: 10px; }
button {
  padding: 10px 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0b1220;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
}
button.secondary {
  background: transparent;
  color: var(--accent-2);
  border-color: var(--accent-2);
}

#results {
  margin-top: 10px;
  line-height: 1.5;
}
#results h3 { margin: 8px 0; }
#results details { margin-top: 8px; }
#results em { color: var(--muted); }

.state { transition: fill 0.12s ease; }


/* Sidebar */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  color: white;
}
.sidebar a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 18px;
  color: #ddd;
  display: block;
  transition: 0.3s;
}
.sidebar a:hover {
  color: #f1f1f1;
}
.sidebar .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}
#topNav {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1100;
  color: white;
}


/* Sidebar right */
.sidebar.right {
  right: 0;
  left: auto;
}


/* Redesigned About Panel */
.about-container {
  padding: 20px;
  color: #f1f1f1;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.about-header {
  text-align: center;
  margin-bottom: 20px;
}
.about-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 3px solid #4da3ff;
}
.about-header h2 {
  font-size: 22px;
  margin: 10px 0 5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.about-header h2 img {
  width: 20px;
  height: 20px;
  filter: invert(45%) sepia(90%) saturate(3000%) hue-rotate(190deg) brightness(95%) contrast(85%);
}
.role {
  font-size: 14px;
  color: #ccc;
}
.about-bio {
  margin-bottom: 20px;
  text-align: justify;
  line-height: 1.6;
}
.about-methodology h3 {
  margin-top: 0;
  font-size: 18px;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
  margin-bottom: 10px;
}
.about-methodology ul {
  padding-left: 20px;
}
.about-methodology ul li {
  margin-bottom: 8px;
}
.sources-btn {
  display: inline-block;
  padding: 10px 15px;
  background-color: #4da3ff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.sources-btn:hover {
  background-color: #1e7fe4;
}


.sidebar .closebtn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: #fff;
  z-index: 1200;
}
