/* booking.css — Booking modal & dashboard supplemental styles */

/* ── Admin JS status selector ─────────────────────────────────────────── */
.hhs-status-sel {
  padding: .25rem .375rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: .8rem;
  cursor: pointer;
}

/* ── Rating stars widget ──────────────────────────────────────────────── */
.stars { display: flex; gap: .25rem; font-size: 1.875rem; cursor: pointer; margin-bottom: 1rem; }
.star  { color: var(--gray-200, #e5e7eb); transition: color .1s; user-select: none; }
.star.on, .star.hover { color: var(--gold, #f5a623); }

/* ── Booking card status colors ───────────────────────────────────────── */
.bk-card[data-status="new"]         { border-left: 4px solid #f59e0b; }
.bk-card[data-status="confirmed"]   { border-left: 4px solid #3b82f6; }
.bk-card[data-status="in_progress"] { border-left: 4px solid #8b5cf6; }
.bk-card[data-status="completed"]   { border-left: 4px solid #10b981; }
.bk-card[data-status="cancelled"]   { border-left: 4px solid #ef4444; }
.bk-card[data-status="rescheduled"] { border-left: 4px solid #6366f1; }

/* ── OTP display box ─────────────────────────────────────────────────── */
.otp-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: .4em;
  color: var(--green, #1a6b3c);
  background: var(--green-lt, #e8f5ee);
  border: 2px dashed rgba(26,107,60,.3);
  padding: .75rem 1.75rem;
  border-radius: 12px;
  font-family: 'Courier New', monospace;
}

/* ── Booking confirmation step ─────────────────────────────────────────*/
.bk-confirm-wrap {
  text-align: center;
  padding: 2rem 1rem;
}
.bk-confirm-icon { font-size: 4rem; margin-bottom: .875rem; display: block; }
.bk-confirm-h {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green, #1a6b3c);
  margin-bottom: .5rem;
  font-family: 'Poppins', sans-serif;
}
.bk-id-display {
  font-size: .875rem;
  color: var(--gray-500, #6b7280);
  margin-bottom: 1.25rem;
}
.bk-id-display strong {
  font-family: monospace;
  color: var(--gray-800, #1f2937);
  font-size: 1rem;
}
.bk-otp-label {
  font-size: .8125rem;
  color: var(--gray-500, #6b7280);
  margin-bottom: .5rem;
}
.bk-otp-note {
  font-size: .8125rem;
  color: var(--gray-400, #9ca3af);
  max-width: 340px;
  margin: .75rem auto 1.5rem;
  line-height: 1.6;
}
.bk-confirm-actions {
  display: flex;
  gap: .875rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ── Dashboard page ──────────────────────────────────────────────────── */
.dash-page { padding: 2.5rem 0; }

.dash-tabs {
  display: flex;
  gap: .5rem;
  border-bottom: 2px solid var(--gray-200, #e5e7eb);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab {
  padding: .75rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-500, #6b7280);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -2px;
  transition: all .2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.dash-tab:hover { color: var(--green, #1a6b3c); }
.dash-tab.active {
  color: var(--green, #1a6b3c);
  border-bottom-color: var(--green, #1a6b3c);
}

.dash-tab-panel { display: none; }
.dash-tab-panel.active { display: block; }

.dash-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-400, #9ca3af);
}
.dash-empty .icon { font-size: 3rem; margin-bottom: .875rem; }

/* UPI QR */
.upi-qr-wrap {
  text-align: center;
  padding: 1.5rem;
  background: var(--gray-50, #f9fafb);
  border-radius: 12px;
  border: 1.5px dashed var(--gray-200, #e5e7eb);
}
.upi-qr-wrap img { margin: .75rem auto; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.1); }

/* Loader spinner */
.hhs-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(26,107,60,.2);
  border-top-color: var(--green, #1a6b3c);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive tweaks ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bk-confirm-h { font-size: 1.375rem; }
  .otp-box { font-size: 2rem; padding: .625rem 1.25rem; }
  .dash-page { padding: 1.5rem 0; }
}
