* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #FCFCFC;
  color: #333;
  min-height: 100vh;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 16px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #003DA5;
}

/* Day Selector */
.day-selector {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.day-btn {
  flex-shrink: 0;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.3;
  transition: all 0.15s ease;
}

.day-btn:hover {
  border-color: #003DA5;
}

.day-btn.active {
  background: #003DA5;
  color: #fff;
  border-color: #003DA5;
}

.day-btn .day-name {
  font-weight: 700;
  display: block;
}

.day-btn .day-date {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Slot Grid */
.slot-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slot {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.slot-time {
  width: 55px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #54595F;
  flex-shrink: 0;
}

.slot-content {
  flex: 1;
}

.slot.available {
  background: #EEF5FF;
  border: 1px solid #D0E3FF;
  cursor: pointer;
}

.slot.available:hover {
  background: #D0E3FF;
  border-color: #003DA5;
}

.slot.booked {
  background: #FFF3EC;
  border: 1px solid #FFD9C2;
  cursor: pointer;
}

.slot.booked:hover {
  background: #FFD9C2;
}

.slot.booked .slot-content {
  color: #FF5C00;
  font-weight: 600;
}

.slot.booked .slot-time {
  color: #FF5C00;
}

.slot.past {
  background: #EFEFF0;
  border: 1px solid #ddd;
  color: #aaa;
  cursor: default;
}

.slot.past .slot-time {
  color: #bbb;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.modal h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: #003DA5;
}

.modal p {
  margin-bottom: 16px;
  color: #54595F;
}

.modal label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  margin-top: 12px;
  color: #54595F;
}

.modal input,
.modal select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}

.modal input:focus,
.modal select:focus {
  border-color: #003DA5;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.85;
}

.btn-cancel {
  background: #EFEFF0;
  color: #54595F;
}

.btn-confirm {
  background: #FF5C00;
  color: #fff;
}

.btn-danger {
  background: #e53935;
  color: #fff;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #003DA5;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 200;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.slot.blocked {
  background: #EFEFF0;
  border: 1px solid #ddd;
  cursor: default;
}

.slot.blocked .slot-content,
.slot.blocked .slot-time {
  color: #8a8f94;
  font-weight: 600;
}
