/* public/components/booking/booking.css */

.bk-wrap { animation: bkFadeUp 0.45s ease; }

@keyframes bkFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bkPop {
  0% { transform: scale(0.92); opacity: 0; }
  70% { transform: scale(1.04); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes bkFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes bkPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}
@keyframes bkLive {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}
@keyframes bkSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bkShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-wrap, .bk-hero-orb, .bk-day.today, .bk-next, .bk-appt-row { animation: none !important; }
}

.bk-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px 22px 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background:
    radial-gradient(800px 240px at 100% -20%, rgba(99, 102, 241, 0.28), transparent 55%),
    radial-gradient(600px 200px at 0% 120%, rgba(16, 185, 129, 0.14), transparent 50%),
    linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(15, 23, 42, 0.2));
}
.bk-hero-orb {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.4;
  pointer-events: none;
  animation: bkFloat 7s ease-in-out infinite;
}
.bk-hero-orb.a { background: #6366f1; top: -50px; inset-inline-end: -20px; }
.bk-hero-orb.b { background: #10b981; bottom: -60px; inset-inline-start: -24px; animation-delay: -2.4s; }
.bk-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.bk-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 6px;
}
.bk-hero h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}
.bk-hero p {
  margin: 0;
  max-width: 560px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text2);
}
.bk-hero-actions { display: flex; gap: 8px; align-items: center; }
.bk-cta {
  border: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--accent, #6366f1), #8b5cf6);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.32);
  transition: transform 0.2s ease;
}
.bk-cta:hover { transform: translateY(-2px); }

.bk-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 900px) { .bk-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .bk-stats { grid-template-columns: 1fr; } }

.bk-stat {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  animation: bkPop 0.45s ease both;
}
.bk-stat:nth-child(2) { animation-delay: 0.05s; }
.bk-stat:nth-child(3) { animation-delay: 0.1s; }
.bk-stat:nth-child(4) { animation-delay: 0.15s; }
.bk-stat-label { font-size: 11px; color: var(--text3); font-weight: 700; }
.bk-stat-val {
  font-size: 22px;
  font-weight: 900;
  font-family: var(--mono);
  color: var(--text);
  margin-top: 4px;
}
.bk-stat.green .bk-stat-val { color: #34d399; }
.bk-stat.blue .bk-stat-val { color: var(--accent, #6366f1); }
.bk-stat.amber .bk-stat-val { color: #fbbf24; }

.bk-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(99, 102, 241, 0.08));
  animation: bkLive 2.4s ease-in-out infinite;
}
.bk-next-title { font-size: 13px; font-weight: 800; color: var(--text); }
.bk-next-sub { font-size: 11px; color: var(--text2); margin-top: 2px; }
.bk-countdown {
  font-family: var(--mono);
  font-weight: 900;
  font-size: 18px;
  color: #34d399;
  background: rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 6px 12px;
}

.bk-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 860px) { .bk-layout { grid-template-columns: 1fr; } }

.bk-cal-card, .bk-list-card, .bk-settings-card, .bk-link-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.bk-list-card { position: relative; }
.bk-list-card.bk-refreshing::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  height: 2px;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent, #6366f1), transparent);
  animation: bkShimmer 1s linear infinite;
  pointer-events: none;
}
.bk-skel-wrap { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 4px; }
.bk-skel {
  height: 58px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(148,163,184,0.12) 25%, rgba(148,163,184,0.22) 50%, rgba(148,163,184,0.12) 75%);
  background-size: 200% 100%;
  animation: bkShimmer 1.1s ease-in-out infinite;
}

.bk-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.bk-cal-title { font-size: 14px; font-weight: 800; color: var(--text); text-align: center; flex: 1; }
.bk-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg3);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.bk-nav-btn:hover { border-color: var(--accent); color: var(--accent); }

.bk-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.bk-dow span {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--text3);
  padding: 4px 0;
}

.bk-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.bk-day {
  aspect-ratio: 1;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.bk-day:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, 0.45); }
.bk-day.muted { opacity: 0.28; cursor: default; }
.bk-day.off { opacity: 0.4; }
.bk-day.today {
  color: var(--accent);
  border-color: var(--accent);
  animation: bkPulse 2s ease-in-out infinite;
}
.bk-day.has-event {
  background: rgba(99, 102, 241, 0.12);
  color: var(--text);
}
.bk-day.selected {
  background: var(--accent, #6366f1) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.bk-day-count {
  position: absolute;
  bottom: 3px;
  inset-inline-end: 4px;
  font-size: 8px;
  font-weight: 900;
  color: inherit;
  opacity: 0.8;
}
.bk-day-dot {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.bk-day.selected .bk-day-dot { background: #fff; }

.bk-cal-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 10px;
  color: var(--text3);
  font-weight: 700;
}
.bk-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-inline-end: 4px;
  vertical-align: middle;
}
.bk-dot.today { background: var(--accent); }
.bk-dot.event { background: #34d399; }
.bk-dot.sel { background: #8b5cf6; }

.bk-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.bk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.bk-chip {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text2);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.bk-chip.active {
  background: var(--accent, #6366f1);
  color: #fff;
  border-color: transparent;
}
.bk-search {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 10px;
  outline: none;
  font-family: inherit;
}
.bk-search:focus { border-color: var(--accent); }

.bk-appt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 4px 12px 0;
  border-bottom: 1px solid var(--line);
  animation: bkSlideIn 0.35s ease both;
}
.bk-appt-row:last-child { border-bottom: none; }
.bk-appt-title { font-size: 13px; font-weight: 800; color: var(--text); }
.bk-appt-meta { font-size: 11px; color: var(--text3); margin-top: 3px; }
.bk-appt-notes {
  font-size: 11px;
  color: var(--text2);
  margin-top: 4px;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bk-appt-actions { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; justify-content: flex-end; }

.bk-badge {
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 8px;
}
.bk-badge.scheduled { background: rgba(59,130,246,0.15); color: #60a5fa; }
.bk-badge.completed { background: rgba(16,185,129,0.15); color: #34d399; }
.bk-badge.cancelled { background: rgba(239,68,68,0.15); color: #f87171; }
.bk-badge.noshow { background: rgba(245,158,11,0.15); color: #fbbf24; }

.bk-bottom {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}
@media (max-width: 860px) { .bk-bottom { grid-template-columns: 1fr; } }

.bk-set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 10px;
}
.bk-set-ctrl { width: 120px; font-size: 11px; padding: 6px 8px; }
.bk-fee-wrap { display: flex; gap: 6px; align-items: center; }
.bk-fee-wrap input { width: 80px; }
.bk-hours { display: flex; gap: 6px; align-items: center; }
.bk-hours input { width: 110px; }
.bk-days { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.bk-daychip {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text3);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.bk-daychip.on {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.4);
  color: #34d399;
}
.bk-hint { font-size: 11px; color: var(--text3); line-height: 1.6; margin: 0; }
.bk-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.bk-link-row code {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bk-dt-status { margin-bottom: 10px; }
.bk-dt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

/* legacy cells still used in a few places */
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.calendar-day:hover { background: var(--bg3); }
.calendar-day.today {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  font-weight: 700;
}
.calendar-day.has-event { border-bottom: 2px solid var(--accent); }
