/* ========================================
   Calendar Booking System — Styles
   ======================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-bg: #eff6ff;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --success: #16a34a;
  --success-light: #dcfce7;
  --error: #dc2626;
  --error-light: #fef2f2;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: 150ms ease;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---- Container ---- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
}

.container-wide {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ---- Header ---- */
.page-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.card + .card {
  margin-top: 16px;
}

/* ---- Meeting Type Cards Grid ---- */
.meeting-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 480px) {
  .meeting-types-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.meeting-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.meeting-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--card-color, var(--primary));
  border-radius: 0 2px 2px 0;
}

.meeting-card:hover {
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(37, 99, 235, 0.08);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.meeting-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.meeting-card .duration {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
  background: var(--primary-bg);
  padding: 3px 10px;
  border-radius: 9999px;
  width: fit-content;
}

.meeting-card .description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 16px;
}

.meeting-card .btn {
  align-self: flex-start;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), #1e40af);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--border-hover);
}

.btn-danger {
  background: var(--error);
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.btn-block {
  width: 100%;
}

/* ---- Calendar ---- */
.calendar {
  user-select: none;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-nav button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  transition: background var(--transition), border-color var(--transition);
}

.calendar-nav button:hover {
  background: var(--bg);
  border-color: var(--border-hover);
}

.calendar-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

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

.calendar-weekdays span {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 0;
}

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

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: default;
  background: transparent;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  position: relative;
}

.calendar-day.other-month {
  visibility: hidden;
}

.calendar-day.available {
  background: var(--primary-light);
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
}

.calendar-day.available:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.calendar-day.selected {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.calendar-day.today {
  position: relative;
}

.calendar-day.today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.calendar-day.today.selected::after,
.calendar-day.today.available:hover::after {
  background: #fff;
}

.calendar-day.past {
  color: var(--border);
}

/* ---- Time Slots ---- */
.slots-section {
  margin-top: 24px;
}

.slots-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.slot-btn {
  padding: 10px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.slot-btn:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary);
}

.slot-btn.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- Forms ---- */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: var(--border-hover);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group .hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Booking Form Section ---- */
.booking-form {
  margin-top: 24px;
}

.booking-form h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ---- Meeting Type Info Bar ---- */
.meeting-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--primary-bg);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  animation: fadeInUp 400ms var(--ease-out-expo) both;
}

.meeting-info .icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.meeting-info .details h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.meeting-info .details p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ---- Steps Indicator ---- */
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 200ms ease;
}

.step.active {
  color: var(--primary);
}

.step.completed {
  color: var(--success);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border);
  transition: all 250ms var(--ease-out-expo);
  position: relative;
}

.step.active .step-number {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.step.completed .step-number {
  background: var(--success);
  color: transparent;
  border-color: var(--success);
}

.step.completed .step-number::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
  top: 9px;
}

.step-divider {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  transition: background 300ms ease;
  margin-bottom: 18px;
}

.step.completed + .step-divider {
  background: var(--success);
}

/* ---- Confirmation ---- */
.confirmation {
  text-align: center;
  padding: 40px 20px;
}

.confirmation .checkmark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: checkmarkScale 500ms var(--ease-out-expo) both;
  position: relative;
}

.confirmation .checkmark::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--success);
  opacity: 0;
  animation: checkmarkPulse 600ms ease 400ms both;
}

.confirmation .checkmark svg {
  width: 36px;
  height: 36px;
  stroke: var(--success);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirmation .checkmark svg polyline {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: checkmarkDraw 400ms ease 300ms forwards;
}

.confirmation h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  animation: fadeInUp 400ms var(--ease-out-expo) 200ms both;
}

.confirmation p {
  color: var(--text-secondary);
  margin-bottom: 8px;
  animation: fadeInUp 400ms var(--ease-out-expo) 300ms both;
}

.confirmation .booking-details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 24px auto;
  max-width: 400px;
  text-align: left;
  animation: fadeInUp 400ms var(--ease-out-expo) 400ms both;
}

.confirmation .booking-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9375rem;
}

.confirmation .booking-details .detail-row + .detail-row {
  border-top: 1px solid var(--border);
}

.confirmation .booking-details .detail-label {
  color: var(--text-secondary);
}

.confirmation .booking-details .detail-value {
  font-weight: 600;
  color: var(--text);
}

.confirmation .links {
  animation: fadeInUp 400ms var(--ease-out-expo) 500ms both;
}

.confirmation .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.confirmation .back-link:hover {
  text-decoration: underline;
}

/* ---- Confirmation Animations ---- */
@keyframes checkmarkScale {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes checkmarkDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes checkmarkPulse {
  0% { transform: scale(0.8); opacity: 0; }
  50% { opacity: 0.4; }
  100% { transform: scale(1.2); opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Admin ---- */
.admin-section {
  margin-bottom: 32px;
}

.admin-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Tables ---- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--bg);
}

th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--bg);
}

tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--bg) 50%, var(--surface));
}

tbody tr:nth-child(even):hover {
  background: var(--bg);
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: capitalize;
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background: #fef3c7;
  color: var(--warning);
}

.badge-error {
  background: var(--error-light);
  color: var(--error);
}

/* ---- Toggle ---- */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ---- Inline Edit Form ---- */
.inline-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.inline-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .inline-form .form-row {
    grid-template-columns: 1fr;
  }
}

.inline-form .form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ---- Admin Meeting Type Item ---- */
.meeting-type-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px;
  padding-left: 20px;
  margin-bottom: 12px;
  transition: border-color var(--transition);
}

.meeting-type-item:hover {
  border-color: var(--border-hover);
  border-left-color: var(--primary);
}

.meeting-type-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meeting-type-header .info {
  flex: 1;
}

.meeting-type-header .info h4 {
  font-size: 1rem;
  font-weight: 600;
}

.meeting-type-header .info p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.meeting-type-header .actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- Alert ---- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.alert-error {
  background: var(--error-light);
  color: var(--error);
  border: 1px solid #fecaca;
}

.alert-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid #bbf7d0;
}

/* ---- Login ---- */
.login-card {
  max-width: 420px;
  margin: 80px auto 0;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover), var(--primary));
  border-radius: var(--radius) var(--radius) 0 0;
}

.login-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

/* ---- Loading ---- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}

.empty-state p {
  font-size: 0.9375rem;
}

/* ---- Utility ---- */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

/* ---- Selected Date/Slot Summary ---- */
.selection-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 16px;
}

.selection-summary .change-btn {
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--primary);
  color: var(--primary);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 9999px;
  transition: background var(--transition), color var(--transition);
}

.selection-summary .change-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ---- Step transition animation ---- */
.step-animate-in {
  animation: fadeInUp 350ms var(--ease-out-expo) both;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .container {
    padding: 16px 12px;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .card {
    padding: 16px;
  }

  .slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  th, td {
    padding: 10px 12px;
  }
}

/* ========================================
   Dark Mode
   ======================================== */

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #1e3a5f;
  --primary-bg: #172554;
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --border-hover: #475569;
  --success: #22c55e;
  --success-light: #064e3b;
  --error: #ef4444;
  --error-light: #450a0a;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body {
  background: #0f172a;
}

[data-theme="dark"] .meeting-card:hover {
  border-color: var(--primary);
}

[data-theme="dark"] .calendar-day.available {
  background: var(--primary-light);
  color: var(--primary);
}

[data-theme="dark"] .calendar-day.available:hover {
  background: var(--primary);
  color: #fff;
}

[data-theme="dark"] .slot-btn:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary);
}

[data-theme="dark"] .slot-btn.selected {
  background: var(--primary);
  color: #fff;
}

[data-theme="dark"] thead {
  background: #0f172a;
}

[data-theme="dark"] tbody tr:hover {
  background: #0f172a;
}

[data-theme="dark"] tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.5);
}

[data-theme="dark"] tbody tr:nth-child(even):hover {
  background: #0f172a;
}

[data-theme="dark"] .toggle-slider {
  background: #475569;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: #0f172a;
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .form-group input::placeholder {
  color: #475569;
}

[data-theme="dark"] .inline-form {
  background: #0f172a;
}

[data-theme="dark"] .meeting-type-item:hover {
  border-color: var(--border-hover);
  border-left-color: var(--primary);
}

[data-theme="dark"] .step.active .step-number {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .selection-summary .change-btn {
  background: var(--surface);
}

[data-theme="dark"] .selection-summary .change-btn:hover {
  background: var(--primary);
  color: #fff;
}

[data-theme="dark"] .login-card::before {
  background: linear-gradient(90deg, var(--primary), #60a5fa, var(--primary));
}

[data-theme="dark"] .checkmark::after {
  border-color: var(--success);
}

/* ---- Theme Toggle (shared) ---- */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 150ms ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg);
}

/* ---- Shared page header with controls ---- */
.page-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.page-header-bar .page-header-center {
  text-align: center;
  flex: 1;
}

.page-header-bar .page-header-center h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}

.page-header-bar .page-header-center p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .page-header-bar {
    flex-direction: column;
    gap: 12px;
  }
  .page-header-bar .page-header-center h1 {
    font-size: 1.25rem;
  }
}
