:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #101828;
  --muted: #475467;
  --brand: #175cd3;
  --brand-strong: #1849a9;
  --border: #d0d5dd;
  --success: #067647;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #eaf2ff 0%, var(--bg) 45%);
  min-height: 100vh;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #eaecf0;
  background: rgba(255, 255, 255, 0.85);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand { font-weight: 700; }

.menu-toggle {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  color: var(--text);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(280px, 82vw);
  background: #fff;
  border-right: 1px solid #eaecf0;
  box-shadow: 10px 0 35px rgba(16,24,40,0.12);
  padding: 5rem 1rem 1rem;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  z-index: 40;
}

.sidebar.open { transform: translateX(0); }

.sidebar-nav { display: flex; flex-direction: column; gap: 0.7rem; }
.sidebar-nav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 0.4rem; border-radius: 8px; }
.sidebar-nav a:hover { background: #eff4ff; color: var(--brand); }

.hero-layout {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.hero-card {
  width: min(720px, 100%);
  background: var(--card);
  border: 1px solid #eaecf0;
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(16, 24, 40, 0.08);
  padding: 1.2rem;
  text-align: center;
}

.kicker { color: var(--brand); font-weight: 600; margin: 0; }
h1 { font-size: clamp(1.8rem, 5.5vw, 2.8rem); margin: 0.4rem 0 0.8rem; }
.subtitle { color: var(--muted); margin-bottom: 1rem; }

.forecast-form { display: block; }
.input-controls { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }

label { display: flex; flex-direction: column; gap: 0.3rem; text-align: left; font-weight: 500; }

input[type="date"] {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font: inherit;
}

button {
  height: 42px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.status {
  margin-top: 1rem;
  min-height: 3rem;
  color: var(--muted);
  display: grid;
  align-items: center;
}

.status.result { color: var(--success); font-weight: 700; font-size: 1.4rem; }
.controls-hidden { display: none; }

.content-page {
  width: min(920px, 100%);
  margin: 1rem auto;
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  padding: 1.3rem;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.05);
}

.content-page p, .content-page li { color: #344054; line-height: 1.65; }
.site-footer { text-align: center; color: #667085; padding: 1rem; }

@media (min-width: 740px) {
  .hero-card { padding: 2.5rem; }
  .input-controls { grid-template-columns: repeat(2, minmax(220px, 1fr)); align-items: end; }
  #run-forecast { grid-column: span 2; }
}

.run-again {
  margin-top: 0.8rem;
  width: min(280px, 100%);
}

.hidden {
  display: none;
}

.progress-wrap {
  margin-top: 0.5rem;
  text-align: left;
}

.progress-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: #e4e7ec;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #175cd3, #2e90fa);
  transition: width 120ms linear;
}

.input-controls .subtitle {
  grid-column: 1 / -1;
}
