/* Calendar Styles */
.calendar-container {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(46, 204, 113, 0.1);
  backdrop-filter: blur(10px);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.calendar-header h3 {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.calendar-nav {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  color: white;
  border: none;
  padding: 1rem 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.calendar-nav:hover {
  background: linear-gradient(135deg, var(--accent-color) 0%, #219a52 100%);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.calendar-nav:active {
  transform: scale(0.95);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 1rem;
}

.calendar-day-header {
  background: var(--gray-light);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--gray-medium);
}

.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.calendar-date {
  background: white;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  position: relative;
  border-radius: 8px;
  margin: 2px;
}

.calendar-date:hover:not(.disabled) {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
  z-index: 2;
}

.calendar-date.selected {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
  z-index: 2;
}

.calendar-date.today {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.calendar-date.today.selected {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.calendar-date.disabled {
  background: #f8f8f8;
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}

.calendar-date.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Time Slots Styles */
.time-slots-container {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(46, 204, 113, 0.1);
  backdrop-filter: blur(10px);
}

.time-slots-container h3 {
  margin-bottom: 1.5rem;
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
}

.time-slot {
  background: white;
  border: 2px solid transparent;
  background-clip: padding-box;
  background-image: linear-gradient(white, white),
    linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  background-origin: border-box;
  color: var(--primary-color);
  padding: 1.2rem 1rem;
  text-align: center;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.time-slot.available:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  color: white;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}

.time-slot.selected {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  color: white;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.time-slot.disabled {
  background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
  border-color: #dee2e6;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.time-slot.disabled:hover {
  transform: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.time-slot.past {
  background: linear-gradient(145deg, #e9ecef 0%, #dee2e6 100%);
  border-color: #ced4da;
  color: #868e96;
  cursor: not-allowed;
  opacity: 0.5;
  position: relative;
}

.time-slot.past:hover {
  transform: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.time-slot.past::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: #868e96;
  transform: translateY(-50%);
  opacity: 0.7;
}

.time-text {
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
}

.booked-indicator {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.25rem;
  display: block;
  font-weight: 400;
}

.past-indicator {
  font-size: 0.75rem;
  color: #868e96;
  opacity: 0.8;
  margin-top: 0.25rem;
  display: block;
  font-weight: 400;
}

/* Time Slot Placeholder and Loading States */
.time-slot-placeholder,
.time-slot-loading {
  text-align: center;
  padding: 3rem 2rem;
  color: #6c757d;
  grid-column: 1 / -1;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.time-slot-placeholder p,
.time-slot-loading p {
  font-size: 1.1rem;
  margin: 0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e9ecef;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Fade-in animation for time slots */
.fade-in {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .calendar-container,
  .time-slots-container {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  .calendar-header h3 {
    font-size: 1.5rem;
  }

  .calendar-nav {
    width: 45px;
    height: 45px;
    padding: 0.8rem;
  }

  .calendar-date {
    padding: 0.7rem;
    min-height: 50px;
    font-size: 0.9rem;
    margin: 1px;
  }

  .time-slots-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
  }

  .time-slot {
    padding: 1rem 0.8rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .time-text {
    font-size: 1rem;
  }

  .time-slots-container h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .calendar-container,
  .time-slots-container {
    padding: 1rem;
    border-radius: 15px;
  }

  .calendar-header {
    margin-bottom: 1.5rem;
  }

  .calendar-header h3 {
    font-size: 1.3rem;
  }

  .calendar-nav {
    width: 40px;
    height: 40px;
    padding: 0.6rem;
  }

  .calendar-date {
    padding: 0.5rem;
    min-height: 45px;
    font-size: 0.85rem;
  }

  .time-slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .time-slot {
    padding: 0.8rem 0.6rem;
    border-radius: 8px;
  }

  .time-text {
    font-size: 0.9rem;
  }

  .booked-indicator {
    font-size: 0.7rem;
  }

  .time-slots-container h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .time-slot-placeholder,
  .time-slot-loading {
    padding: 2rem 1rem;
  }

  .placeholder-icon {
    font-size: 2.5rem;
  }
}

/* Booking form container responsive adjustments */
@media (max-width: 768px) {
  .booking-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
