body {
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  text-align: center;
}

#calendar-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 20px;
}

#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  width: 100%;
  max-width: 800px;
}

/* Desktop view */
@media screen and (min-width: 768px) {
  .calendar-cell {
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f4;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    padding: 10px;
    transition: background-color 0.3s ease;
  }

  .calendar-cell .date {
    font-size: 30px;
    font-weight: bold;
  }

  .calendar-cell .month-year {
    font-size: 16px;
    color: #666;
  }
}

/* Mobile view */
@media screen and (max-width: 767px) {
  #calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    overflow-y: auto;
  }

  .calendar-cell {
    width: 90%;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f4;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    padding: 5px;
  }

  .calendar-cell .date {
    font-size: 26px;
    font-weight: bold;
  }

  .calendar-cell .month-year {
    font-size: 14px;
    color: #666;
  }
}

/* Calendar Day States */
.bookable {
  background-color: #90ee90 !important; /* Light green for bookable days */
}

.full-booked {
  background-color: #ff6666 !important; /* Red for fully booked days */
  cursor: not-allowed;
}

.non-bookable {
  background-color: #d3d3d3 !important; /* Light gray for unavailable days */
  cursor: not-allowed;
}

/* Time Slots */
#time-slots {
  margin-top: 20px;
  display: none;
  text-align: center;
}

#slot-list {
  margin-top: 20px;
}

.time-slot {
  padding: 10px;
  margin: 5px;
  background-color: #eee;
  border-radius: 5px;
  cursor: pointer;
}

.time-slot.booked {
  background-color: #ddd;
  cursor: not-allowed;
}

/* Booking Form */
#booking-form, #cancellation-form {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

input {
  padding: 8px;
  margin: 5px;
  width: 90%;
}

button {
  padding: 10px 15px;
  margin-top: 10px;
  border: none;
  cursor: pointer;
}

button:hover {
  opacity: 0.8;
}

#confirm-booking {
  background: #28a745;
  color: white;
}

#cancel-booking, #cancel-confirm {
  background: #dc3545;
  color: white;
}

#show-cancellation-form {
  background: #007bff;
  color: white;
}