﻿:root {
  --bg: #f4f8ef;
  --surface: #ffffff;
  --surface-strong: #17332a;
  --text: #153126;
  --muted: #5f7268;
  --line-green: #06c755;
  --line-green-deep: #0e9c49;
  --accent: #ffcb2f;
  --danger: #db5555;
  --border: #d8e2d8;
  --shadow: 0 18px 50px rgba(14, 40, 28, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Yu Gothic UI", "Hiragino Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 203, 47, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(6, 199, 85, 0.14), transparent 30%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  padding: 32px 20px 56px;
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 28px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(6, 199, 85, 0.12);
  color: var(--line-green-deep);
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
}

.lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  background: var(--line-green);
  color: white;
}

.button-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.hero-card {
  padding: 22px;
  background: linear-gradient(140deg, #17332a, #24513f 66%, #2d6d4e);
  color: white;
}

.hero-stack {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.stack-item {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stack-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.stack-value {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.section-card {
  padding: 24px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.section-copy {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-full {
  background: rgba(219, 85, 85, 0.12);
  color: #b43333;
}

.badge-open {
  background: rgba(6, 199, 85, 0.12);
  color: #09823c;
}

.form-shell {
  width: min(560px, 100%);
  margin: 0 auto;
  padding-top: 48px;
}

.form-card {
  padding: 28px;
}

.form-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.form-copy {
  color: var(--muted);
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: white;
}

.form-error,
.form-success {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  white-space: pre-line;
}

.form-error {
  background: rgba(219, 85, 85, 0.12);
  color: #8d2b2b;
}

.form-success {
  background: rgba(6, 199, 85, 0.12);
  color: #0f7e3d;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--line-green), var(--line-green-deep));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.sidebar,
.content {
  padding: 20px;
}

.nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--muted);
}

.nav a.active {
  background: rgba(6, 199, 85, 0.12);
  color: var(--line-green-deep);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fcfdfb;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  margin-top: 8px;
}

.event-table {
  width: 100%;
  border-collapse: collapse;
}

.event-table th,
.event-table td {
  text-align: left;
  padding: 14px 10px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.event-table th {
  font-size: 12px;
  color: var(--muted);
}

.simple-list {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.calendar-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.calendar-caption {
  font-size: 28px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.calendar-weekday,
.calendar-day {
  border-radius: 8px;
}

.calendar-weekday {
  padding: 10px 8px;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}

.calendar-day {
  background: white;
  border: 1px solid var(--border);
  min-height: 158px;
  padding: 10px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
}

.calendar-day.is-empty {
  background: rgba(255, 255, 255, 0.48);
}

.calendar-date {
  font-weight: 800;
}

.calendar-event {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fbf7;
  border: 1px solid #e1ece1;
}

.calendar-event h3 {
  font-size: 14px;
}

.calendar-meta {
  font-size: 12px;
  color: var(--muted);
}

.calendar-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.calendar-actions .button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.reservation-stack {
  display: grid;
  gap: 14px;
}

.reservation-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: #fcfdfb;
}

.reservation-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.reservation-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

@media (max-width: 920px) {
  .hero,
  .grid-2,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 20px 14px 40px;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .calendar-weekday {
    display: none;
  }

  .calendar-day {
    min-height: auto;
  }

  .reservation-grid {
    grid-template-columns: 1fr;
  }
}

.stack-item-light {
  background: #fcfdfb;
  border: 1px solid var(--border);
}

.stack-value-dark {
  color: var(--text);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}

.inline-check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
}

.inline-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.toolbar-tight {
  gap: 8px;
}

.toolbar-tight .button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
