/* ========== SCHEDULER STYLES ========== */

.scheduler {
  width: 100%;
  max-width: 500px;
}

.scheduler h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Date picker */
.scheduler-calendar {
  margin-bottom: 1.5rem;
}

.scheduler-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.scheduler-month-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

.scheduler-nav {
  background: none;
  border: 2px solid #000;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-family: inherit;
  font-weight: 700;
  transition: background 0.15s ease;
}

.scheduler-nav:hover {
  background: rgba(0, 0, 0, 0.05);
}

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

.scheduler-weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  padding: 0.5rem 0;
  text-transform: uppercase;
}

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

.scheduler-day {
  text-align: center;
  padding: 0.65rem 0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: background 0.15s ease;
}

.scheduler-day:hover:not(.disabled):not(.empty) {
  background: rgba(0, 0, 0, 0.08);
}

.scheduler-day.selected {
  background: #000;
  color: #fff;
}

.scheduler-day.disabled {
  color: #ccc;
  cursor: default;
}

.scheduler-day.empty {
  cursor: default;
}

.scheduler-day.today {
  border: 2px solid #000;
}

/* Slot availability dots */
.scheduler-day {
  position: relative;
}

.slot-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 2px auto 0;
}

.slot-dot.available {
  background: #22c55e;
}

.slot-dot.full {
  background: #d1d5db;
}

/* Time slots */
.scheduler-times {
  margin-bottom: 1.5rem;
}

.scheduler-times h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #333;
}

.scheduler-time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.scheduler-time {
  padding: 0.7rem;
  text-align: center;
  border: 2px solid #000;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: #fff;
  transition: background 0.15s ease, color 0.15s ease;
}

.scheduler-time:hover {
  background: rgba(0, 0, 0, 0.05);
}

.scheduler-time.selected {
  background: #000;
  color: #fff;
}

.scheduler-confirm {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.scheduler-confirm:hover {
  background: #222;
  transform: scale(1.02);
}

.scheduler-confirm:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

/* Responsive */
@media (max-width: 500px) {
  .scheduler-time-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
