.aquapark-calendar {
  max-width: 100%;
  /* margin: 20px auto; */
  font-family: Arial, sans-serif;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.calendar-container {
  display: flex;
  /* gap: 20px; */
  align-items: flex-start;
  border: 0;
}

.calendar-section {
  /* flex: 0 0 400px; */
  min-width: 400px;
  width: 50%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

.restrictions-section {
  /* flex: 0 0 350px; */
  min-height: 400px;
  display: flex;
  flex-direction: column;
  width: 50%;
  height: 500px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c2b7d;
  color: white;
  padding: 15px 20px;
}

.calendar-title {
  margin: 0;
  color: white !important;
  font-size: 1.9em !important;
  font-weight: 600;
}

.prev-month,
.next-month {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2em;
  transition: background-color 0.3s;
}

.prev-month:hover,
.next-month:hover {
  background: rgba(255, 255, 255, 0.3);
}

.calendar-body {
  height: 85.7%;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.calendar-table th {
  background: #ecf0f1;
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #bdc3c7;
  width: 14.28%;
}

.calendar-table td {
  padding: 8px;
  border: 1px solid #ecf0f1;
  vertical-align: top;
  height: 45px;
  position: relative;
  width: 14.28%;
}

.calendar-day {
  cursor: pointer;
  transition: background-color 0.3s;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 6px;
  box-sizing: border-box;
  min-height: 45px;
}

.calendar-day:hover {
  background: #e8f4f8;
}

.calendar-day.current-month {
  background: #fff;
  color: #2c3e50;
  font-weight: 500;
}

.calendar-day.other-month {
  background: #f8f9fa;
  color: #95a5a6;
  opacity: 0.6;
}
.calendar-day:hover,
.calendar-day.other-month:hover {
  background: #ecf0f1;
}

.day-number {
  font-weight: 600;
  font-size: 1.1em;
  line-height: 1;
  display: block;
}

.calendar-day.has-restrictions {
  /*background: #fce4e4;
  border-left: 4px solid #902424 !important;*/
}

.calendar-day.has-restrictions:hover {
  background: #ee7b7b;
}

.restrictions-display {
  background: #fff;
  /* border-top: 1px solid #dee2e6; */
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 20px;
  margin-top: 0;
  flex: 1;
  box-sizing: border-box;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.restrictions-display h4 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 1.2em;
  border-bottom: 2px solid #ecf0f1;
  padding-bottom: 10px;
  flex-shrink: 0;
}

.restriction-item {
  background: #fce4e4;
  border: 1px solid #fce4e4;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 0.9em;
  line-height: 1.3;
}

.restriction-item:last-child {
  margin-bottom: 0;
}

.restriction-info {
  color: #461010;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.4;
  font-size: 1rem;
}

.restriction-hirer {
  color: #7f8c8d;
  font-style: italic;
  font-size: 0.85em;
  margin-top: 3px;
}

.restrictions-content {
  flex: 1;
  overflow-y: auto;
}

.no-date-selected {
  color: #7f8c8d;
  font-style: italic;
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 2px dashed #dee2e6;
}

.loading {
  text-align: center;
  padding: 40px 20px;
  color: #7f8c8d;
  background: #f8f9fa;
  border-radius: 6px;
  border: 2px dashed #dee2e6;
}

.no-restrictions {
  text-align: center;
  padding: 40px 20px;
  color: #27ae60;
  font-weight: 600;
  background: #f1fcf5;
  border-radius: 6px;
  border: 2px dashed #d4edda;
}

/* Ensure table displays properly */
.calendar-table,
.calendar-table tbody,
.calendar-table tr,
.calendar-table td,
.calendar-table th {
  display: table;
}

.calendar-table {
  display: table !important;
  height: 100%;
}

.calendar-table tbody {
  display: table-row-group !important;
  border-radius: 20px !important;
  border: 0;
}

.calendar-table tr {
  display: table-row !important;
}

.calendar-table td,
.calendar-table th {
  display: table-cell !important;
}

/* Better spacing for calendar grid */
.calendar-table tr:first-child td {
  border-top: 0px solid #bdc3c7;
  padding: 8px;
}

.calendar-table tr:last-child td {
  border-bottom: 0px solid #bdc3c7;
}

.calendar-table td:first-child {
  border-left: 0px solid #bdc3c7;
  padding: 8px;
}

.calendar-table td:last-child {
  border-right: 0px solid #bdc3c7;
}
@media (max-width: 950px) {
  .calendar-container {
    flex-direction: column;
  }
  .calendar-section,
  .restrictions-section {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .aquapark-calendar {
    margin: 10px;
  }

  .calendar-container {
    flex-direction: column;
  }

  .calendar-section {
    flex: none;
    min-width: auto;
  }

  .restrictions-section {
    min-height: auto;
    margin-top: 20px;
  }

  .calendar-header {
    padding: 10px 15px;
  }

  .calendar-title {
    font-size: 1.2em;
  }

  .calendar-body {
    padding: 15px;
  }

  .calendar-table td {
    height: 40px;
  }

  .calendar-day {
    padding: 4px;
  }

  .day-number {
    font-size: 0.9em;
  }

  .restriction-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .restriction-time {
    margin-top: 5px;
  }
}

@media (max-width: 500px) {
  .calendar-title {
    font-size: 20px !important;
  }

  .calendar-table td {
    height: 30px;
  }

  .calendar-day {
    padding: 3px;
  }
  .calendar-section {
    height: 367px;
  }
}
