/* Modern Calendar Styles */
.calendar-wrapper {
  width: 100% !important;
}

.calendar-container {
  background: #fff;
  padding: 20px 0;
  width: 100% !important;
  max-width: 100% !important;
}

.calendar-container > * {
  width: 100%;
}

.buttons-container {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.buttons-container .label-container {
  display: inline-block;
  flex: 1;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 18px;
  color: #1a1a2e;
  letter-spacing: 2px;
  margin: 0 30px;
}

.year-dropdown {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  padding: 5px 20px;
  background: transparent;
  color: #1a1a2e;
  cursor: pointer;
}

.prev-button,
.next-button {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #495057;
  font-weight: 600;
  font-size: 14px;
}

.prev-button:hover,
.next-button:hover {
  background: linear-gradient(135deg, #009dff 0%, #0077cc 100%);
  border-color: #009dff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,157,255,0.3);
}

.weeks-wrapper {
  width: 100%;
  padding: 15px 0;
}

.weeks-wrapper.header {
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.week {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 6px 0;
}

.week.highlight {
  border-radius: 10px;
}

.week .day {
  flex: 1;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px;
}

.week .day.header {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  color: #6c757d;
  letter-spacing: 1px;
  cursor: default;
  padding-bottom: 10px;
}

.day span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  vertical-align: middle;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s ease;
  color: #333;
}

.week .day:not(.header):not([disabled]) span:hover {
  background: linear-gradient(135deg, #e8f4ff 0%, #d0e8ff 100%);
  color: #009dff;
  transform: scale(1.05);
}

.day.today span {
  position: relative;
  font-weight: 700;
  color: #009dff;
  background: rgba(0, 157, 255, 0.1);
}

.day.today span::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #009dff;
  border-radius: 50%;
}

/* Weekend colors - Saturday */
.week .day:last-child:not(.header) span {
  color: #ff9800;
}

/* Sunday */
.week .day:first-child:not(.header) span,
.week .day.sunday span {
  color: #f44336;
}

/* Highlighted dates */
.week .day.highlight span {
  color: #009dff;
  font-weight: 600;
}

/* Selected date */
.week .day.selected span {
  background: linear-gradient(135deg, #009dff 0%, #0077cc 100%);
  color: white !important;
  box-shadow: 0 6px 20px rgba(0,157,255,0.4);
  transform: scale(1.05);
}

/* Disabled dates */
.week .day[disabled="disabled"] span {
  color: #ccc;
  cursor: not-allowed;
  background: transparent;
}

.week .day[disabled="disabled"]:hover span {
  background: transparent;
  color: #ccc;
  transform: none;
}

/* Month selection */
.months-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 25px 0;
}

.months-wrapper .month {
  text-align: center;
}

.months-wrapper .month span {
  display: inline-block;
  padding: 15px 25px;
  text-transform: capitalize;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 15px;
  width: 100%;
  background: #f8f9fa;
}

.months-wrapper .month span:hover {
  background: linear-gradient(135deg, #e8f4ff 0%, #d0e8ff 100%);
  color: #009dff;
  transform: translateY(-2px);
}

.months-wrapper .month.selected span {
  background: linear-gradient(135deg, #009dff 0%, #0077cc 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,157,255,0.3);
}

/* Special buttons */
.special-buttons {
  text-align: center;
  border-top: 2px solid #f0f0f0;
  padding-top: 20px;
  margin-top: 15px;
}

.today-button {
  margin: 0 auto;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 600;
  color: #009dff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.today-button:hover {
  background: linear-gradient(135deg, #009dff 0%, #0077cc 100%);
  border-color: #009dff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,157,255,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .calendar-container {
    padding: 20px;
    max-width: 100%;
  }

  .day span {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .buttons-container .label-container {
    font-size: 16px;
  }

  .prev-button,
  .next-button {
    padding: 10px 14px;
    font-size: 12px;
  }
}
