body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #1e1e30;
  color: white;
}

.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  width: 300px; /* Змінено розмір */
  margin: 0 20px;
}

.calendar .day {
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 3px;
  background-color: #2b2b3b;
}

.calendar .day.header {
  font-weight: bold;
  color: #f4f4f4;
}

.calendar .day.gray {
  color: #7a7a8c;
}

.calendar .day.highlight {
  background-color: #f0a500;
  color: white;
}

.calendar .day.green {
  background-color: #00c853;
  color: white;
}

.status-button.free { background-color: rgb(60, 255, 135);}
.status-button.reserved { background-color: yellow; }
.status-button.busy { background-color: red; color: white;}
.status-button.disabled { pointer-events: none; opacity: 0.9; }
.day.selected { border: 2px solid red; }

.day.booked {
  background-color: #f44336;
  color: #fff;
  cursor: not-allowed;
}
.day.available {
  background-color: #02ce57;
  color: #fff;
}
.day.today {
  border: 2px solid #ff9800;
}

.schedule {
  max-width: 400px; /* Додано стиль для розкладу */
  padding: 20px;
  background-color: #2b2b3b;
  border-radius: 10px;
}

#bookingForm {
  display: none;
  max-width: 400px; /* Додано стиль для форми */
  padding: 20px;
  background-color: #2b2b3b;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .container {
    flex-direction: column; /* Вертикальне розташування елементів */
  }

  .calendar {
    width: 100%;
    margin: 0;
  }

  .schedule, #bookingForm {
    width: 100%;
    margin-top: 20px;
  }
}

button.toggle-theme {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 10px 20px;
  background-color: #302b22;
  color: white;
  border: none;
  border-radius: 9px;
  border: 1px solid #ff9800;
  cursor: pointer;
}

button.toggle-theme.light {
  background-color: #006b2d;
  color: white;
}

body.light-theme {
  background: #ffffff;
  color: #000000;
}

body.light-theme .calendar .day {
  background-color: #e0e0e0;
  color: #000000;
}

body.light-theme .schedule, body.light-theme #bookingForm {
  background-color: #e0e0e0;
  color: #000000;
}

body.light-theme .day.booked {
  background-color: #f05c51;
  color: #fff;
  cursor: not-allowed;
}
body.light-theme .day.available {
  background-color: #00c853;
  color: #ffffff;
}
body.light-theme .day.today {
  border: 2px solid #ff9800;
}