/* -------- Modern App Theme Enhancements (keeps Tailwind as base) -------- */
:root {
  --glass: rgba(255,255,255,0.08);
  --glass-brd: rgba(255,255,255,0.18);
  --ring: 0 0 0 4px rgba(56,189,248,.25);
  --glow-sky: 0 10px 30px rgba(56,189,248,.35);
  --glow-emerald: 0 10px 30px rgba(16,185,129,.35);
  --glow-fuchsia: 0 10px 30px rgba(217,70,239,.35);
}
/* Subtle noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 0;
}
/* Gradient beams */
.app-gradient-bg {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 55vh;
  background: radial-gradient(650px 250px at 20% 30%, rgba(56,189,248,.20), transparent 60%),
              radial-gradient(500px 250px at 80% 0%, rgba(217,70,239,.18), transparent 60%),
              radial-gradient(400px 400px at 60% 90%, rgba(16,185,129,.18), transparent 60%);
  filter: blur(18px) saturate(115%);
  z-index: 0;
}
html.dark .app-gradient-bg {
  background: radial-gradient(650px 250px at 20% 30%, rgba(56,189,248,.25), transparent 60%),
              radial-gradient(500px 250px at 80% 0%, rgba(217,70,239,.25), transparent 60%),
              radial-gradient(400px 400px at 60% 90%, rgba(16,185,129,.25), transparent 60%);
  filter: blur(22px) saturate(140%);
}
/* Glass card */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.45));
  border: 1px solid rgba(148,163,184,.28);
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
  backdrop-filter: blur(10px);
}
html.dark .glass {
  background: linear-gradient(180deg, rgba(2,6,23,.55), rgba(2,6,23,.35));
  border-color: rgba(51,65,85,.55);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
/* Fancy headings underline */
.fancy-under {
  position: relative;
}
.fancy-under::after {
  content: "";
  position: absolute;
  left: 0; bottom: -8px;
  width: 48px; height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgb(56 189 248), rgb(217 70 239));
  box-shadow: var(--glow-sky);
}
/* Buttons */
.btn {
  @apply inline-flex items-center justify-center rounded-xl font-semibold transition-transform duration-200 active:scale-[.98];
}
.btn-primary {
  @apply text-white bg-sky-500 hover:bg-sky-600 focus:outline-none;
  box-shadow: var(--glow-sky);
}
.btn-quiet {
  @apply bg-white/60 dark:bg-slate-800/60 text-slate-700 dark:text-slate-200 border border-slate-200/70 dark:border-slate-700/60 hover:bg-white/80 dark:hover:bg-slate-700/60;
}
/* Inputs */
.input-field {
  width: 100%;
  background-color: rgb(248 250 252);
  border: 1px solid rgb(226 232 240);
  border-radius: .875rem;
  padding: .7rem .9rem;
  transition: box-shadow .2s, border-color .2s;
}
.input-field:focus { outline: none; box-shadow: var(--ring); border-color: rgb(56 189 248); }
html.dark .input-field {
  background-color: rgb(15 23 42);
  border-color: rgb(51 65 85);
  color: rgb(226 232 240);
}
/* Calendar cells */
.calendar-day { transition: transform .18s ease, background-color .18s ease, color .18s ease; }
.calendar-day:not(.disabled):not(.selected):hover { background-color: rgb(241 245 249); transform: translateY(-1px); }
html.dark .calendar-day:not(.disabled):not(.selected):hover { background-color: rgb(30 41 59); transform: translateY(-1px) scale(1.03); }
.calendar-day.selected { background: linear-gradient(135deg, rgb(56 189 248), rgb(217 70 239)); color: white; font-weight: 700; transform: scale(1.06); box-shadow: 0 12px 22px rgba(56,189,248,.35); }
.calendar-day.today { outline: 2px dashed rgba(56,189,248,.6); outline-offset: 2px; }
.calendar-day.disabled { color: rgb(148 163 184); cursor: not-allowed; opacity: .8; }
.calendar-day.disabled.holiday { background-color: rgb(241 245 249); color: rgb(100 116 139); opacity: .75; position: relative; }
html.dark .calendar-day.disabled.holiday { background-color: rgb(30 41 59); color: rgb(148 163 184); }
.calendar-day.disabled.holiday::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background-color: #ef4444; }
/* Cards hover lift */
.card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(2,6,23,.1); }
html.dark .card:hover { box-shadow: 0 16px 36px rgba(0,0,0,.45); }
/* Pretty scrollbars */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background-color: #3f3f46; border-radius: 20px; border: 3px solid #000000; }
::-webkit-scrollbar-thumb:hover { background-color: #52525b; }
html.light ::-webkit-scrollbar-track { background: #f1f5f9; }
html.light ::-webkit-scrollbar-thumb { background-color: #cbd5e1; border: 3px solid #f1f5f9; }
html.light ::-webkit-scrollbar-thumb:hover { background-color: #94a3b8; }
/* Subtle pulse */
.pulse {
  animation: pulseGlow 3.2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: var(--glow-sky); }
  50% { box-shadow: var(--glow-fuchsia); }
}
/* Badge */
.badge {
  @apply inline-flex items-center gap-1.5 text-xs font-medium px-2 py-1 rounded-full border;
}
.badge-sky { @apply text-sky-700 border-sky-200 bg-sky-50; }
html.dark .badge-sky { @apply text-sky-300 border-sky-800 bg-sky-900/30; }
/* Divider label */
.divider {
  position: relative; text-align:center; margin: 1.25rem 0;
}
.divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,163,184,.4), transparent);
}
.divider span { position: relative; background: transparent; padding: 0 .5rem; color: rgb(100 116 139); }

/* === Equal-sized time slots with spanning bookings === */
#schedule-view {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: var(--slot-h, 48px); /* uniform slot height */
  gap: 0.75rem;
}
.schedule-slot {
  min-height: 0;
  overflow: hidden;
}
.booking-block {
  grid-row: span var(--span, 1) / span var(--span, 1);
}
/* Tighten padding slightly so text doesn't force extra height */
.schedule-slot .text-sm { line-height: 1.2; }
