* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body {
  background: radial-gradient(circle at top, #0b1020, #05070f);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Navbar ---------- */
.navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(14px);
  background: rgba(5, 7, 15, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-weight: 800;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #35d3ff;
  box-shadow: 0 0 15px #35d3ff;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 14px;
  transition: 0.25s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a.active {
  color: #35d3ff;
}

/* ---------- Buttons ---------- */
.btn {
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    transition: 0.25s;
  }
  
.btn-primary {
  background: linear-gradient(90deg, #35d3ff, #9b5cff);
  color: #05070f;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(53, 211, 255, 0.25);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: calc(100vh - 70px);
}

/* ---------- Map ---------- */
.map-area {
  position: relative;
  height: calc(100vh - 70px);
}

#map {
  height: 100%;
  width: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.leaflet-container {
  background: #05070f;
}

/* ---------- Mini Stats ---------- */
.mini-stats {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  z-index: 999;
  font-size: 13px;
  opacity: 0.92;
}

/* ---------- Side Panel ---------- */
.side-panel {
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
  overflow-y: auto;
}

.side-panel h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.desc {
  opacity: 0.75;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.panel-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
}

.panel-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 13px;
  opacity: 0.85;
  margin: 10px 0 6px;
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  outline: none;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.chip {
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}

.chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

/* Results rows */
.result-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.result-row:last-child {
  border-bottom: none;
}

.result-row span {
  opacity: 0.75;
}

/* Timeline */
.timeline {
  margin-top: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 120px;
}

.timeline .hint {
  opacity: 0.75;
  font-size: 13px;
  line-height: 1.5;
}

.step {
  padding: 10px;
  border-radius: 16px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.step small {
  opacity: 0.7;
  display: block;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .side-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}
