/*
  Eden Hair Boutique — Staff Booking System
  Design law: warm editorial Eden palette, sidebar salon software layout.
*/

:root {
  --olive: #5c6335;
  --olive-deep: #3f4523;
  --ink: #262a15;
  --gold: #c9b478;
  --gold-light: #ebddb2;
  --gold-deep: #a8905a;
  --ivory: #f7f4ea;
  --paper: #f1eddd;
  --display: "Cormorant Garamond", serif;
  --body: "Karla", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
}

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

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.booking-body {
  min-height: 100vh;
  background: var(--ivory);
}

.booking-topbar {
  border-bottom: 1px solid rgba(38, 42, 21, 0.25);
  background: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 40;
}

.booking-topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.booking-topbar .mark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.28em;
}

.booking-topbar-meta {
  color: rgba(38, 42, 21, 0.62);
  font-size: 11px;
}

.booking-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 40px) 48px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.booking-sidebar {
  background: var(--paper);
  border: 1px solid rgba(38, 42, 21, 0.16);
  padding: clamp(16px, 2vw, 22px) 0;
  position: sticky;
  top: 72px;
}

.booking-sidebar-label {
  padding: 0 clamp(16px, 2vw, 20px) 12px;
  margin: 0;
  border-bottom: 1px solid rgba(38, 42, 21, 0.12);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(38, 42, 21, 0.55);
}

.booking-nav-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
}

.booking-nav-link {
  display: block;
  padding: 11px clamp(16px, 2vw, 20px);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(38, 42, 21, 0.82);
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.booking-nav-link:hover {
  background: rgba(247, 244, 234, 0.65);
  color: var(--olive-deep);
}

.booking-nav-link.is-active {
  background: var(--ivory);
  color: var(--ink);
  border-left-color: var(--gold-deep);
  font-weight: 500;
}

.booking-nav-link.logout {
  margin-top: 8px;
  border-top: 1px solid rgba(38, 42, 21, 0.1);
  color: var(--olive-deep);
}

.booking-main {
  min-width: 0;
}

.booking-panel {
  background: var(--paper);
  border: 1px solid rgba(38, 42, 21, 0.16);
  padding: clamp(24px, 3vw, 36px);
}

.booking-panel h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 12px;
}

.booking-panel .lead {
  color: rgba(38, 42, 21, 0.78);
  max-width: 680px;
  margin-bottom: 24px;
}

.booking-muted {
  font-size: 13px;
  color: rgba(38, 42, 21, 0.62);
}

.booking-empty {
  padding: 28px;
  border: 1px dashed rgba(38, 42, 21, 0.22);
  background: rgba(247, 244, 234, 0.5);
  text-align: center;
  color: rgba(38, 42, 21, 0.7);
}

.booking-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.booking-stat-card {
  background: var(--ivory);
  border: 1px solid rgba(38, 42, 21, 0.14);
  padding: 20px 18px;
}

.booking-stat-card .label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

.booking-stat-card .value {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: 0.02em;
}

.eden-section-header {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(100deg, var(--olive) 0%, var(--olive-deep) 100%);
  color: var(--gold-light);
  padding: 10px 20px;
  margin: 28px 0 16px;
  border-left: 3px solid var(--gold);
}

.eden-section-header:first-child {
  margin-top: 0;
}

.eden-section-header h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  flex: 1;
}

.booking-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.booking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.booking-table th,
.booking-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(38, 42, 21, 0.12);
  text-align: left;
}

.booking-table th {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}

.booking-table tr:hover td {
  background: rgba(247, 244, 234, 0.45);
}

.colour-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(38, 42, 21, 0.2);
  vertical-align: middle;
  margin-right: 8px;
}

.booking-btn {
  display: inline-block;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 10px 18px;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.booking-btn:hover {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--gold-light);
}

.booking-btn.primary {
  background: var(--ink);
  color: var(--gold-light);
}

.booking-btn.primary:hover {
  background: var(--olive);
  border-color: var(--olive);
}

.booking-btn.small {
  padding: 6px 12px;
  font-size: 10px;
}

.booking-btn.danger {
  border-color: rgba(92, 48, 48, 0.35);
  color: #5a2020;
  background: rgba(168, 90, 90, 0.1);
}

.booking-btn.danger:hover {
  background: rgba(168, 90, 90, 0.18);
  border-color: rgba(92, 48, 48, 0.5);
}

.booking-form {
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.booking-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.booking-form input,
.booking-form textarea,
.booking-form select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(38, 42, 21, 0.3);
  padding: 10px 2px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
}

.booking-form textarea {
  min-height: 100px;
  resize: vertical;
}

.booking-alert {
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 14px;
}

.booking-alert.error {
  border: 1px solid rgba(168, 144, 90, 0.45);
  background: rgba(201, 180, 120, 0.12);
  color: var(--olive-deep);
}

.booking-alert.success {
  border: 1px solid rgba(92, 99, 53, 0.35);
  background: rgba(92, 99, 53, 0.08);
  color: var(--olive-deep);
}

.booking-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.booking-login-card {
  width: min(460px, 100%);
  background: var(--paper);
  border: 1px solid rgba(38, 42, 21, 0.18);
  padding: clamp(32px, 5vw, 48px);
}

.booking-login-card h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 42px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.booking-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.booking-subnav a {
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(38, 42, 21, 0.18);
  background: var(--ivory);
}

.booking-subnav a.is-active,
.booking-subnav a:hover {
  border-color: var(--olive);
  background: var(--paper);
}

.booking-diary-grid {
  display: grid;
  grid-template-columns: 80px repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: rgba(38, 42, 21, 0.12);
  border: 1px solid rgba(38, 42, 21, 0.12);
  min-height: 320px;
}

.booking-diary-cell {
  background: var(--ivory);
  padding: 10px;
  font-size: 12px;
  min-height: 48px;
}

.booking-diary-cell.header {
  background: var(--paper);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.booking-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.booking-settings-card {
  background: var(--ivory);
  border: 1px solid rgba(38, 42, 21, 0.14);
  padding: 18px;
}

.booking-settings-card h4 {
  font-family: var(--display);
  font-size: 20px;
  margin-bottom: 8px;
}

.booking-kpi-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.booking-kpi-list li {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(38, 42, 21, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.booking-kpi-list li:last-child {
  border-bottom: none;
}

.booking-public-placeholder {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
}

@media (max-width: 900px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .booking-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Phase 2 — forms, diary, appointments */
.booking-form-wide {
  max-width: 760px;
}

.booking-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.booking-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  align-items: center;
}

.booking-search-bar input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border: 1px solid rgba(38, 42, 21, 0.2);
  background: var(--ivory);
  font-family: var(--body);
}

.booking-inline-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.booking-diary-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.booking-diary-scroll {
  overflow-x: auto;
  margin-top: 16px;
}

.booking-diary-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 13px;
}

.booking-diary-table th,
.booking-diary-table td {
  border: 1px solid rgba(38, 42, 21, 0.12);
  vertical-align: top;
  padding: 6px;
}

.booking-diary-table th {
  background: var(--paper);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 10px 8px;
}

.booking-diary-table .time-col {
  width: 70px;
  background: var(--ivory);
  color: rgba(38, 42, 21, 0.7);
  font-size: 11px;
}

.diary-slot {
  min-width: 140px;
  min-height: 52px;
  background: var(--ivory);
}

.appt-card {
  display: block;
  background: var(--paper);
  border-left: 3px solid var(--olive);
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.appt-card:hover {
  background: #fff;
}

.appt-card.status-confirmed { border-left-color: var(--olive); }
.appt-card.status-pending,
.appt-card.status-awaiting-approval { border-left-color: var(--gold-deep); }
.appt-card.status-cancelled,
.appt-card.status-no-show { border-left-color: #888; opacity: 0.85; }
.appt-card.status-arrived,
.appt-card.status-in-progress { border-left-color: #6b8f71; }
.appt-card.status-completed { border-left-color: var(--olive-deep); }

.appt-flag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 6px;
  margin-top: 4px;
  margin-right: 4px;
  background: rgba(38, 42, 21, 0.08);
}

.appt-flag.deposit { background: rgba(201, 180, 120, 0.25); }
.appt-flag.patch { background: rgba(92, 99, 53, 0.15); }

.booking-matrix-wrap {
  overflow-x: auto;
}

.booking-matrix .matrix-cell {
  text-align: center;
}

.booking-table tr.row-disabled td {
  opacity: 0.55;
}

.booking-alert.error {
  border: 1px solid rgba(168, 144, 90, 0.45);
  background: rgba(201, 180, 120, 0.12);
  color: var(--olive-deep);
}

.booking-alert.success {
  border: 1px solid rgba(92, 99, 53, 0.35);
  background: rgba(92, 99, 53, 0.08);
  color: var(--olive-deep);
}

.public-booking-body { background: var(--cream); }
.public-booking-main { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
.public-topbar .mark { font-family: var(--font-serif); }
.public-booking-steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; }
.public-step { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(38, 42, 21, 0.2); display: flex; align-items: center; justify-content: center; font-size: 12px; color: rgba(38, 42, 21, 0.5); }
.public-step.is-active, .public-step.is-done { background: var(--olive); color: #fff; border-color: var(--olive); }
.public-panel { background: var(--paper); padding: 28px 24px; }
.public-service-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid rgba(38, 42, 21, 0.12); margin-bottom: 8px; cursor: pointer; background: var(--ivory); }
.public-service-option:hover { background: #fff; }
.public-checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.booking-form-stack label { display: block; margin-bottom: 12px; font-size: 13px; }
.booking-form-stack input[type="text"], .booking-form-stack input[type="email"], .booking-form-stack input[type="tel"], .booking-form-stack input[type="date"], .booking-form-stack input[type="time"], .booking-form-stack input[type="password"], .booking-form-stack select, .booking-form-stack textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid rgba(38, 42, 21, 0.15); background: #fff; font-family: var(--font-sans); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.photo-card { display: block; background: var(--ivory); border: 1px solid rgba(38, 42, 21, 0.12); padding: 8px; text-decoration: none; color: inherit; font-size: 11px; }
.photo-card img { width: 100%; height: 120px; object-fit: cover; display: block; margin-bottom: 6px; }
.appt-flag.awaiting { background: rgba(201, 180, 120, 0.35); }
.booking-inline-actions form { display: inline; }
