@charset "UTF-8";
.calendar-wrapper {
  padding: 0;
}

.modal-dialog {
  max-width: 1200px;
  margin: 30px auto;
}
.modal-dialog .modal-content {
  background-color: #ffffff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.modal-dialog .modal-content .modal-header {
  background: #ffffff;
  color: white;
  border-bottom: none;
  padding: 24px 30px;
  position: relative;
}
.modal-dialog .modal-content .modal-header h2 {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0;
  color: #333;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.modal-dialog .modal-content .modal-header .btn-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: all 0.2s ease;
}
.modal-dialog .modal-content .modal-header .btn-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}
.modal-dialog .modal-content .modal-header .btn-close:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}
.modal-dialog .modal-content .modal-body {
  padding: 0;
  background: #f8f9fa;
}
.modal-dialog.fade .modal-content {
  transform: translate(0, -50px);
  transition: transform 0.3s ease-out;
}
.modal-dialog.show .modal-content {
  transform: translate(0, 0);
}

.calendar-container {
  max-width: 100%;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.calendar-container .calendar-header {
  padding: 20px;
  background: #ffffff;
}
.calendar-container .calendar-header h2 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.calendar-container .calendar-header .month-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calendar-container .calendar-header .month-navigation .nav-button {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  font-size: 14px;
}
.calendar-container .calendar-header .month-navigation .nav-button:hover {
  background: #f5f5f5;
  border-color: #ccc;
}
.calendar-container .calendar-header .month-navigation .month-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.calendar-container .calendar-header .month-navigation .month-tabs .month-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  width: 15%;
  max-width: 160px;
}
.calendar-container .calendar-header .month-navigation .month-tabs .month-tab.active {
  background: #333;
  color: white;
}
.calendar-container .calendar-header .month-navigation .month-tabs .month-tab:not(.active) {
  background: white;
  border: 1px solid #ddd;
  color: #000000;
}
.calendar-container .calendar-header .month-navigation .month-tabs .month-tab:not(.active):hover {
  background: #f5f5f5;
}
.calendar-container .calendar-grid {
  padding: 0 24px 24px 24px;
}
.calendar-container .calendar-grid .weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
}
.calendar-container .calendar-grid .weekdays .weekday {
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
}
.calendar-container .calendar-grid .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar-container .calendar-grid .days .day {
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  min-height: 80px;
  position: relative;
  cursor: pointer;
}
.calendar-container .calendar-grid .days .day:nth-child(7n) {
  border-right: none;
}
.calendar-container .calendar-grid .days .day:hover:not(.empty) {
  background: #f8f9fa;
}
.calendar-container .calendar-grid .days .day.empty {
  background: #fafafa;
  cursor: default;
}
.calendar-container .calendar-grid .days .day.empty:hover {
  background: #fafafa;
}
.calendar-container .calendar-grid .days .day.has-price {
  background: #fbece6;
}
.calendar-container .calendar-grid .days .day.has-price:hover {
  background: #e40808;
}
.calendar-container .calendar-grid .days .day.has-price:hover .day-number {
  color: white;
}
.calendar-container .calendar-grid .days .day.has-price:hover .discount {
  color: white;
  border-color: white;
}
.calendar-container .calendar-grid .days .day.has-price:hover .price {
  color: white;
}
.calendar-container .calendar-grid .days .day.has-price .day-number {
  font-weight: 600;
}
.calendar-container .calendar-grid .days .day.has-price .price {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
}
.calendar-container .calendar-grid .days .day.has-price .discount {
  position: absolute;
  top: 4px;
  right: 4px;
  border: 1px solid #ff3742;
  color: #e40808;
  background-color: rgba(255, 255, 255, 0);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
}
.calendar-container .calendar-grid .days .day.has-price.selected {
  background: #e40808;
  color: white;
}
.calendar-container .calendar-grid .days .day.has-price.selected .day-number {
  color: white;
}
.calendar-container .calendar-grid .days .day.has-price.selected .price {
  color: white;
}
.calendar-container .calendar-grid .days .day .day-number {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 16px;
  color: #333;
}

@media (max-width: 768px) {
  .calendar-container {
    margin: 10px;
  }
  .calendar-container .calendar-header {
    padding: 15px;
  }
  .calendar-container .calendar-header h2 {
    font-size: 20px;
  }
  .calendar-container .calendar-header .month-navigation .month-tabs {
    flex-wrap: wrap;
  }
  .calendar-container .calendar-header .month-navigation .month-tabs .month-tab {
    font-size: 12px;
    padding: 6px 12px;
  }
  .calendar-container .calendar-grid .days .day {
    min-height: 60px;
  }
  .calendar-container .calendar-grid .days .day .day-number {
    font-size: 12px;
  }
  .calendar-container .calendar-grid .days .day .price {
    font-size: 10px;
  }
  .calendar-container .calendar-grid {
    padding: 0;
  }
  .calendar-container .calendar-grid .days .day.has-price {
    font-size: 8px;
  }
}
.price-event {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.price-event .price-amount {
  display: block;
  line-height: 1.2;
}
.price-event.selected-date {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
  border: 2px solid #fff;
}

.calendar-loading {
  position: relative;
}
.calendar-loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.calendar-loading::after {
  content: "Đang tải...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  font-weight: 500;
  color: #666;
}

.calendar-error {
  padding: 40px 20px;
  text-align: center;
  color: #dc3545;
  background: #f8d7da;
  border-radius: 8px;
}
.calendar-error .error-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.7;
}
.calendar-error .error-message {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}
.calendar-error .error-detail {
  font-size: 14px;
  opacity: 0.8;
}

@media (max-width: 576px) {
  .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  .modal-dialog .modal-content .modal-header {
    padding: 20px;
  }
  .modal-dialog .modal-content .modal-header h2 {
    font-size: 20px;
  }
  .modal-dialog .modal-content .modal-header .btn-close {
    top: 15px;
    right: 20px;
    width: 32px;
    height: 32px;
  }
  .calendar-wrapper {
    padding: 10px;
  }
  #calendar .fc-header-toolbar .fc-button-group .fc-button {
    padding: 6px 12px;
    font-size: 12px;
  }
  #calendar .fc-header-toolbar h2.fc-toolbar-title {
    font-size: 18px;
  }
  #calendar .fc-theme-standard td.fc-daygrid-day {
    min-height: 60px;
  }
  #calendar .fc-theme-standard td.fc-daygrid-day .fc-daygrid-day-number {
    font-size: 12px;
  }
  .price-event {
    font-size: 10px;
    padding: 1px 4px;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.fc-event {
  animation: fadeInUp 0.3s ease-out;
}

.selected-date {
  animation: pulse 0.5s ease-in-out;
}
