/*---------------------------------------------------
    RESERVATION PAGE STYLES
---------------------------------------------------*/

/* Calendar Styles */
.reservation-calendar-container {
  background: var(--white);
  border-radius: 15px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  position: relative;
}

#reservation-calendar {
  min-height: 500px;
}

.fc-day-grid-event {
  padding: 5px;
  border-radius: 3px;
}

.fc-day-top {
  padding: 10px !important;
}

.fc-day-number {
  font-weight: 600;
}

.fc-today {
  background-color: rgba(212, 167, 98, 0.1) !important;
}

.fc-day-header {
  padding: 10px 0 !important;
  font-weight: 600;
  text-transform: uppercase;
}

.fc-button {
  background: var(--primary) !important;
  color: var(--white) !important;
  border: none !important;
  box-shadow: none !important;
  text-transform: capitalize !important;
  font-weight: 500 !important;
  padding: 8px 15px !important;
  height: auto !important;
  transition: var(--transition) !important;
}

.fc-button:hover {
  background: var(--dark) !important;
  color: var(--white) !important;
}

.fc-button-active {
  background: var(--dark) !important;
}

.fc-day-grid-event .fc-content {
  white-space: normal;
}

/* Available/Unavailable Date Styles */
.fc-day.available {
  background-color: rgba(40, 167, 69, 0.1);
  cursor: pointer;
}

.fc-day.unavailable {
  background-color: rgba(220, 53, 69, 0.1);
  color: #999;
  cursor: not-allowed;
  position: relative;
}

.fc-day.unavailable:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(220, 53, 69, 0.1),
    rgba(220, 53, 69, 0.1) 10px,
    rgba(220, 53, 69, 0.2) 10px,
    rgba(220, 53, 69, 0.2) 20px
  );
}

.fc-day.pending {
  background-color: rgba(255, 193, 7, 0.1);
  cursor: pointer;
  position: relative;
}

.fc-day.pending:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 193, 7, 0.1),
    rgba(255, 193, 7, 0.1) 10px,
    rgba(255, 193, 7, 0.2) 10px,
    rgba(255, 193, 7, 0.2) 20px
  );
}

.fc-day.selected {
  background-color: rgba(212, 167, 98, 0.3);
}

/* Calendar Loading Indicator */
.calendar-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Refresh Calendar Button */
.refresh-calendar-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  padding: 5px 10px;
  font-size: 0.8rem;
}

.refresh-calendar-btn i {
  margin-right: 5px;
}

/* Reservation Info Styles */
.reservation-info {
  background: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  height: 100%;
}

.reservation-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.legend-color.available {
  background-color: rgba(40, 167, 69, 0.3);
}

.legend-color.unavailable {
  background-color: rgba(220, 53, 69, 0.3);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(220, 53, 69, 0.3),
    rgba(220, 53, 69, 0.3) 5px,
    rgba(220, 53, 69, 0.5) 5px,
    rgba(220, 53, 69, 0.5) 10px
  );
}

.legend-color.pending {
  background-color: rgba(255, 193, 7, 0.3);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 193, 7, 0.3),
    rgba(255, 193, 7, 0.3) 5px,
    rgba(255, 193, 7, 0.5) 5px,
    rgba(255, 193, 7, 0.5) 10px
  );
}

.legend-color.selected {
  background-color: rgba(212, 167, 98, 0.5);
}

.legend-text {
  font-weight: 500;
}

/* Policy Cards Styles */
.policy-card {
  background: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  height: 100%;
  transition: var(--transition);
}

.policy-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.policy-icon {
  width: 70px;
  height: 70px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.policy-icon i {
  font-size: 30px;
}

.policy-card h4 {
  margin-bottom: 15px;
  color: var(--dark);
}

.policy-card p {
  color: var(--body);
  margin-bottom: 0;
}

/* Modal Styles */
.modal-content {
  border-radius: 15px;
  overflow: hidden;
  border: none;
}

.modal-header {
  background: var(--primary);
  color: var(--white);
  border-bottom: none;
  padding: 15px 20px;
}

.modal-body {
  padding: 30px;
}

.modal-footer {
  border-top: none;
  padding: 15px 20px;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 500;
  padding: 10px 25px;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
  font-weight: 500;
  padding: 10px 25px;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--body);
  border-color: var(--body);
  color: var(--white);
}

/* Success Modal Styles */
.success-icon {
  font-size: 80px;
  color: #28a745;
  margin-bottom: 20px;
}

/* Form Styles */
.form-floating > .form-control,
.form-floating > .form-select {
  height: 58px !important; /* Increased by 7% from 55px */
  padding-top: 1.625rem !important;
  padding-bottom: 0.625rem !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.form-floating > label {
  padding: 1rem 1.25rem !important;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: var(--primary);
  box-shadow: none;
}

.form-floating > textarea.form-control {
  height: 107px !important; /* Increased by 7% from 100px */
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Make sure the file input is visible */
.form-control[type="file"] {
  height: auto !important;
  padding: 0.375rem 0.75rem !important;
}

.form-control[type="file"]::file-selector-button {
  padding: 0.375rem 0.75rem !important;
  margin: -0.375rem -0.75rem !important;
  margin-inline-end: 0.75rem !important;
  color: #212529 !important;
  background-color: #e9ecef !important;
  pointer-events: none !important;
  border-color: inherit !important;
  border-style: solid !important;
  border-width: 0 !important;
  border-inline-end-width: 1px !important;
  border-radius: 0 !important;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow
    0.15s ease-in-out !important;
}

/* Custom Notification System */
#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  width: 350px;
  max-width: 90%;
}

.notification {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  padding: 15px;
  position: relative;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--primary);
}

.notification.show {
  transform: translateX(0);
}

.notification.info {
  border-left-color: var(--primary);
}

.notification.success {
  border-left-color: var(--success);
}

.notification.error {
  border-left-color: var(--danger);
}

.notification.warning {
  border-left-color: var(--warning);
}

.notification-message {
  flex: 1;
  padding-right: 10px;
}

.notification-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  line-height: 1;
}

.notification-close:hover {
  color: #333;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  #reservation-calendar {
    min-height: 400px;
  }

  .reservation-info {
    margin-top: 30px;
  }

  #notification-container {
    width: 300px;
  }
}

@media (max-width: 767.98px) {
  .fc-toolbar.fc-header-toolbar {
    flex-direction: column;
    gap: 10px;
  }

  .fc-left,
  .fc-center,
  .fc-right {
    float: none !important;
    text-align: center;
    margin-bottom: 10px;
  }

  .policy-card {
    margin-bottom: 20px;
  }

  #notification-container {
    width: 280px;
    right: 10px;
    top: 10px;
  }
}

@media (max-width: 575.98px) {
  .fc-day-header {
    font-size: 12px;
  }

  .fc-button {
    padding: 5px 10px !important;
    font-size: 12px !important;
  }

  #notification-container {
    width: calc(100% - 20px);
    right: 10px;
  }
}

