:root {
  color-scheme: light;
  --primary: #0f6c6c;
  --primary-dark: #0b4f4f;
  --accent: #f6a623;
  --accent-soft: #ffe7b3;
  --surface: #f4fcfc;
  --border: #d8ecec;
  --text: #153131;
  --muted: #678686;
  --shadow: 0 18px 45px rgba(15, 108, 108, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fdfd 0%, #eef8f8 100%);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -20% auto auto -10%;
  width: 320px;
  height: 320px;
  background: rgba(15, 108, 108, 0.08);
  filter: blur(50px);
  border-radius: 50%;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }

.hero {
  position: relative;
  padding: 5rem 1.5rem 5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #176e6e 45%, #0c4f4f 100%);
  color: white;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  filter: blur(2px);
}

.hero::before { width: 220px; height: 220px; right: -60px; top: -40px; }
.hero::after { width: 300px; height: 300px; left: -80px; bottom: -120px; }

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0.2rem 0 1rem;
  line-height: 1.1;
}

.hero p { font-size: 1.05rem; line-height: 1.8; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.hero__actions, .filters, .table-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}

.stat-pill strong { font-size: 1.05rem; }
.stat-pill span { font-size: 0.9rem; color: rgba(255,255,255,0.86); }

.hero__card {
  background: rgba(255,255,255,0.94);
  color: var(--text);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.hero__card h3 { margin-top: 0; margin-bottom: 0.75rem; }
.hero__list { margin: 0; padding-left: 1rem; display: grid; gap: 0.6rem; color: var(--muted); }

.section { padding: 2.4rem 1.5rem 3.5rem; max-width: 1200px; margin: 0 auto; }
.section__header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.info-card, .filters, .empty-state, .panel, .auth-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.info-card h3 { margin-top: 0; margin-bottom: 0.4rem; }
.info-card p { margin: 0; color: var(--muted); }

.filters {
  padding: 1rem;
}
.filters input, .filters select, .stacked-form input, .stacked-form textarea, .stacked-form select {
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  min-width: 180px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.button {
  display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 999px; padding: 0.8rem 1.15rem; cursor: pointer; font-weight: 600; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--accent); color: #172626; box-shadow: 0 10px 20px rgba(246, 166, 35, 0.22); }
.button--secondary { background: white; color: var(--primary-dark); border: 1px solid var(--border); }

.survey-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.survey-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.survey-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(15, 108, 108, 0.16); }
.survey-card__badge { display: inline-block; background: var(--surface); color: var(--primary); padding: 0.35rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.75rem; }
.survey-card h3 { margin: 0 0 0.5rem; }
.survey-card p { color: var(--muted); line-height: 1.7; }
.survey-card__meta { display: flex; flex-direction: column; gap: 0.35rem; margin: 1rem 0; font-size: 0.95rem; }
.survey-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.survey-links .button { width: auto; }

.dashboard-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, var(--primary-dark) 0%, #084040 100%); color: white; padding: 2rem 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.dashboard-main { padding: 2rem; }
.panel { margin-bottom: 1.5rem; }
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 0.8rem; border-bottom: 1px solid var(--border); }
.link-button { color: var(--primary); font-weight: 600; border: none; background: none; cursor: pointer; padding: 0; }
.link-button--danger { color: #b42318; }
.inline-form { display: inline-block; }
.stacked-form { display: grid; gap: 0.95rem; }
.stacked-form label { display: grid; gap: 0.45rem; font-weight: 600; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.auth-card { width: min(100%, 460px); }
.back-link { display: inline-block; margin-top: 1rem; color: var(--primary); font-weight: 600; }
.alert { padding: 0.9rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.alert--success { background: #ecfdf3; color: #027a48; }
.alert--error { background: #fef3f2; color: #b42318; }

@media (max-width: 900px) {
  .hero__content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .dashboard-shell { grid-template-columns: 1fr; }
  .sidebar { gap: 0.75rem; }
  .dashboard-main { padding: 1rem; }
  .hero__stats { grid-template-columns: 1fr; }
  .filters { flex-direction: column; }
  .filters input, .filters select, .stacked-form input, .stacked-form textarea, .stacked-form select { min-width: 0; width: 100%; }
}

@media (max-width: 600px) {
  .hero { padding: 4rem 1rem 3.5rem; }
  .section { padding: 2rem 1rem 3rem; }
  .section__header { flex-direction: column; }
  .hero__actions { flex-direction: column; }
  .button { width: 100%; }
  .filters { padding: 0.9rem; }
}
