/* 預約系統樣式 */

/* 響應式設計 */

@media (max-width: 767.98px) {
  .row-cols-1 {
    display: block !important;
  }
}

@media (max-width: 767.98px) {
  .row-cols-1 > .col {
    width: 100% !important;
  }
}

/* 預約系統主要樣式 */

.date-card {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.date-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.date-card.selected {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 110, 0, 0.2);
}

.time-slots .d-flex {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.time-slots .d-flex:hover {
  background-color: #fff3e0;
}

.time-slots .d-flex.selected-time {
  background-color: #fff3e0;
  border: 1px solid #f66e00;
  position: relative;
}

.time-slots .d-flex.selected-time::after {
  content: '✓';
  position: absolute;
  right: 8px;
  color: #f66e00;
  font-weight: bold;
}

.availability-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
}

.availability-dot.available {
  background-color: #28a745;
  box-shadow: 0 0 0 2px rgba(246, 110, 0, 0.2);
}

.availability-dot.available:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(246, 110, 0, 0.4);
}

.availability-dot.unavailable {
  background-color: #dc3545;
  opacity: 0.5;
  cursor: not-allowed;
}

.availability-dot.selected {
  background-color: #f66e00;
  box-shadow: 0 0 0 3px rgba(246, 110, 0, 0.6);
  transform: scale(1.1);
}

.btn-outline-secondary {
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: #f66e00;
  border-color: #f66e00;
  color: white;
}

/* 滿版預約系統樣式 */

.booking-system {
  min-height: 500px;
}

.date-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.date-card .time-slots {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* 新增：時段選擇樣式 */
.time-slot-option {
  transition: all 0.3s ease;
}

.time-slot-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.time-slot-option.selected {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.time-slot-option.selected .card {
  border-color: #28a745;
  background-color: #f8fff9;
}

.time-slot-option .card {
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.time-slot-option .card:hover {
  border-color: #28a745;
}

.select-time-btn {
  transition: all 0.3s ease;
}

.select-time-btn:hover {
  transform: scale(1.05);
}

/* 已選擇時段顯示樣式 */
#selectedTimeDisplay .alert {
  border-left: 4px solid #17a2b8;
  background-color: #f8f9fa;
}

/* 時段載入中樣式 */
#timeSlotContainer .text-muted {
  color: #6c757d !important;
}

#timeSlotContainer .fa-clock {
  color: #6c757d;
}

/* 響應式時段顯示 */
@media (max-width: 768px) {
  .time-slot-option .col-md-6 {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .time-slot-option .col-md-6 {
    width: 100%;
  }
}

.date-card.disabled {
  background-color: #f8f9fa !important;
}

.date-card.disabled .time-slots {
  opacity: 0.5;
}

/* 響應式調整 */

@media (max-width: 768px) {
  .booking-system {
    padding: 0px !important;
  }
}

@media (max-width: 768px) {
  .date-card {
    min-height: 150px;
  }
}

/* 導航按鈕樣式 */

.btn-outline-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline-secondary:disabled:hover {
  background-color: transparent;
  border-color: #6c757d;
  color: #6c757d;
}

/* 日期卡片樣式 */

.date-card {
  border: 1px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 20px !important;
  text-align: center !important;
  background: white !important;
  height: 100% !important;
}

.date-card.selected {
  border: 2px solid #f66e00 !important;
}

.date-card.selected .date-header h6 {
  color: #f66e00 !important;
}

/* 時段樣式 */

.time-slots .d-flex {
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
}

.time-slots .d-flex:last-child {
  margin-bottom: 0 !important;
}

.time-slots span:first-child {
  font-size: 0.9rem !important;
  color: #666 !important;
  font-family: 'Noto Sans TC', sans-serif !important;
}

.availability-dot {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  display: inline-block !important;
}

.availability-dot.available {
  background: #f66e00 !important;
}

.availability-dot.unavailable {
  background: #ccc !important;
}

/* 週曆導航樣式 */

.booking-system h4 {
  color: #202020 !important;
  font-family: 'Noto Sans TC', sans-serif !important;
  font-weight: bold !important;
  margin-bottom: 0 !important;
}

.btn-outline-secondary {
  border-radius: 20px !important;
  padding: 8px 16px !important;
  font-family: 'Noto Sans TC', sans-serif !important;
}

/* 日期標題樣式 */

.date-header h6 {
  font-weight: bold !important;
  margin-bottom: 0.5rem !important;
  color: #202020 !important;
  font-family: 'Noto Sans TC', sans-serif !important;
}

/* 確認對話框樣式 */

.confirmation-modal-overlay {
  animation: fadeIn 0.3s ease;
}

.confirmation-modal {
  animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 確認對話框內容樣式 */

.confirmation-modal h4 {
  color: #202020 !important;
  font-weight: bold !important;
  font-family: 'Noto Sans TC', sans-serif !important;
}

.confirmation-modal h5 {
  color: #202020 !important;
  font-weight: bold !important;
  font-family: 'Noto Sans TC', sans-serif !important;
  margin-bottom: 15px !important;
}

.confirmation-modal button {
  font-family: 'Noto Sans TC', sans-serif !important;
  transition: all 0.2s ease !important;
}

.confirmation-modal button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* 確認對話框內容區域樣式 */

.confirmation-modal .info-section {
  background: white !important;
  border-radius: 8px !important;
  padding: 20px !important;
  border: 1px solid #e9ecef !important;
  margin-bottom: 20px !important;
}

.confirmation-modal .info-section h5 {
  margin-bottom: 15px !important;
  font-size: 1.1rem !important;
  color: #202020 !important;
}

.confirmation-modal .info-field {
  margin-bottom: 15px !important;
  display: flex !important;
  align-items: flex-start !important;
}

.confirmation-modal .info-field:last-child {
  margin-bottom: 0 !important;
}

.confirmation-modal .info-label {
  font-weight: 600 !important;
  color: #495057 !important;
  font-size: 0.95rem !important;
  font-family: 'Noto Sans TC', sans-serif !important;
  min-width: 120px !important;
  flex-shrink: 0 !important;
  white-space: pre-wrap !important;
}

.confirmation-modal .info-value {
  color: #202020 !important;
  font-size: 1rem !important;
  font-family: 'Noto Sans TC', sans-serif !important;
  word-break: break-all !important;
  line-height: 1.4 !important;
  flex: 1 !important;
  white-space: pre-wrap !important;
}

/* 載入中訊息樣式 */

#loading-message {
  animation: fadeIn 0.3s ease;
}

#loading-message i {
  color: white !important;
}

/* 成功訊息樣式 */

#success-message {
  animation: slideIn 0.3s ease;
}

#success-message button {
  font-family: 'Noto Sans TC', sans-serif !important;
  transition: all 0.2s ease !important;
}

#success-message button:hover {
  background: #218838 !important;
  transform: translateY(-1px) !important;
}

/* 響應式調整 */

@media (max-width: 768px) {
  .confirmation-modal {
    width: 95% !important;
    padding: 25px !important;
    max-height: 85vh !important;
  }
}

@media (max-width: 768px) {
  .confirmation-modal h4 {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 768px) {
  .confirmation-modal h5 {
    font-size: 1rem !important;
  }
}

@media (max-width: 768px) {
  .confirmation-modal .info-label {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 768px) {
  .confirmation-modal .info-value {
    font-size: 0.95rem !important;
  }
}

.form-control {
  border-radius: 20px;
}

