:root {
  --bg: #ffffff;
  --card: #ffffff;
  --muted: #64748b;
  --text: #0f172a;
  --accent: #EDF6F9;
  --accent-2: #22c55e;
  --error: #ef4444;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(80% 100% at 50% 0%, #ffffff 0%, #EDF6F9 60%);
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header { text-align: center; margin-bottom: 24px; }
h1 { margin: 0; font-size: 28px; }
.subtitle { color: var(--muted); margin-top: 8px; }

/* Therapist select */
.selector-header { text-align: center; margin: 12px 0 20px; }
.therapist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.therapist-card { background: #ffffff; border: 1px solid #e5e7eb; color: var(--text); padding: 14px; border-radius: 12px; cursor: pointer; text-align: left; }
.therapist-card:hover { background: #f9fafb; }
.therapist-name { font-weight: 600; }
.therapist-spec { color: var(--muted); font-size: 13px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 16px; }
.topbar .muted { color: var(--muted); }

.message { padding: 12px 16px; border-radius: 10px; margin: 12px 0 20px; }
.message.info { background: rgba(37, 99, 235, 0.10); color: #1e3a8a; }
.message.success { background: rgba(34, 197, 94, 0.10); color: #065f46; }
.message.error { background: rgba(239, 68, 68, 0.10); color: #7f1d1d; }
.hidden { display: none; }

.availability .loading, .empty { color: var(--muted); text-align: center; padding: 24px; }

.date-section { margin-top: 24px; }
.date-section h2 { font-size: 18px; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.date-title { font-size: 16px; color: var(--muted); font-weight: 600; }

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.card-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.therapist { font-weight: 600; }
.spec { color: var(--muted); font-size: 13px; }

.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-btn {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease, border 0.2s ease;
}
.slot-btn:hover { transform: translateY(-1px); background: #f9fafb; border-color: #d1d5db; }
.slot-btn:active { transform: translateY(0); }
.slot-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Confirmation */
.confirm-form { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; max-width: 560px; margin: 0 auto; }
.confirm-form .summary { margin-bottom: 12px; }
.confirm-form .summary .title { font-weight: 600; margin-bottom: 8px; }
.confirm-form .summary .row { color: var(--muted); margin: 2px 0; }
.label { display: block; margin-top: 10px; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #cbd5e1; background: #f8fafc; color: var(--text); transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.input:hover { background: #f1f5f9; }
.input:focus { outline: none; border-color: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25); background: #ffffff; }
.input::placeholder { color: #94a3b8; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.nav-btn { background: #f3f4f6; color: var(--text); border: 1px solid #e5e7eb; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.primary-btn { background: var(--accent); color: #0b1020; border: 1px solid #cbd5e1; padding: 10px 14px; border-radius: 10px; cursor: pointer; }
.primary-btn:hover { filter: brightness(1.05); }

@media (max-width: 640px) {
  .slots { gap: 6px; }
  .slot-btn { padding: 8px 10px; font-size: 14px; }
}


