/* Base styles remain the same */
.status-badge.paid {
  background-color: #ecfdf5;
  color: #059669;
}

.status-badge.pending {
  background-color: #fffbeb;
  color: #d97706;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.calendar-day.disabled {
  opacity: 0.3;
  cursor: default;
}

.calendar-day.today {
  font-weight: bold;
  border: 1px solid #4f46e5;
}

.calendar-day.available:not(.selected):hover {
  background-color: #eef2ff;
  transform: scale(1.05);
}

.calendar-day.selected {
  background-color: #4f46e5;
  color: white;
  font-weight: bold;
  transform: scale(1.05);
}

.calendar-day .dot {
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #4f46e5;
}

/* Transitions */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.5s;
}

.fade-enter-from, .fade-leave-to {
  opacity: 0;
}

.slide-enter-active, .slide-leave-active {
  transition: all 0.3s ease;
}

.slide-enter-from {
  opacity: 0;
  transform: translateX(30px);
}

.slide-leave-to {
  opacity: 0;
  transform: translateX(-30px);
}

/* Program and Course Cards Styling */
.program-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.program-card.selected {
  border-color: #4f46e5;
  background-color: #eef2ff;
  transform: translateY(-2px);
}

.program-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.detail-section {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.detail-section:last-child {
  border-bottom: none;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

/* Status badge colors */
.status-badge.confirmed {
  background-color: #ecfdf5;
  color: #059669;
}

.status-badge.pending {
  background-color: #fffbeb;
  color: #d97706;
}

.status-badge.followup {
  background-color: #eef2ff;
  color: #4338ca;
}

.status-badge.finished {
  background-color: #f3f4f6;
  color: #4b5563;
}

.status-badge.cancelled {
  background-color: #fef2f2;
  color: #dc2626;
}

.status-badge.selection {
  background-color: #e0e7ff;
  color: #4338ca;
}

.status-badge.completed {
  background-color: #d1fae5;
  color: #059669;
}

.calendar-popup {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 10;
  padding: 1rem;
  width: 220px;
}

.calendar-icon-wrapper:hover .calendar-popup {
  display: block;
}

.program-feature-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  background-color: #eef2ff;
  color: #4338ca;
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.payment-method-card {
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.payment-method-card.selected {
  border-color: #4f46e5;
  background-color: #eef2ff;
}

.step-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Course category and course cards styling */
.course-category-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.course-category-card:hover {
  border-color: #e0e7ff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.course-category-card.expanded {
  border-color: #4f46e5;
  background-color: #eef2ff;
}

.course-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.course-card.selected {
  border-color: #4f46e5;
  background-color: #eef2ff;
}

.course-difficulty {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  display: inline-block;
}

.course-star {
  color: #f59e0b;
}

.expand-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.expand-content.active {
  max-height: 2000px;
  transition: max-height 1s ease-in;
}

/* Program selection and summary */
.program-selection-summary {
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
}

.course-summary-card {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: white;
}

/* Remove button */
.remove-button {
  transition: all 0.2s;
}

.remove-button:hover {
  background-color: #fee2e2;
  color: #dc2626;
}

/* Material selection styling */
.material-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.material-card.selected {
  border-color: #4f46e5;
  background-color: #eef2ff;
}

.material-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-content {
  background-color: white;
  border-radius: 0.5rem;
  max-width: 90%;
  width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Date picker styling for course start date */
.date-picker {
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  padding: 0.5rem;
  transition: all 0.2s;
}

.date-picker:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.date-picker:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
}

/* Checkbox styles for material selection */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  background-color: white;
  display: inline-block;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
  margin-right: 0.5rem;
  transition: all 0.2s;
}

.custom-checkbox:checked {
  background-color: #4f46e5;
  border-color: #4f46e5;
}

.custom-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Material card styling */
.material-display-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: white;
}

.material-display-card .material-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.material-display-card .material-content {
  padding: 0.75rem;
}

.material-display-card .material-title {
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.material-display-card .material-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.material-display-card .material-stars {
  color: #f59e0b;
}

.material-display-card .material-category {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  background-color: #e0e7ff;
  color: #4338ca;
}

/* Flatpickr custom styling */
.flatpickr-calendar {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
}

.flatpickr-calendar .flatpickr-month {
  background: #f9fafb !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.flatpickr-calendar .flatpickr-day.disabled {
  color: #d1d5db !important;
  cursor: not-allowed !important;
}

.flatpickr-calendar .flatpickr-day.available {
  background: #dcfce7 !important;
  border-color: #16a34a !important;
  color: #15803d !important;
  font-weight: 600 !important;
}

.flatpickr-calendar .flatpickr-day.available:hover {
  background: #bbf7d0 !important;
  border-color: #15803d !important;
  transform: scale(1.05);
}

.flatpickr-calendar .flatpickr-day.selected.available {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: white !important;
}
/* 在 style.css 中添加或確認 */
.modal-overlay {
  z-index: 9999;
}

/* 確保 flatpickr 日曆不會覆蓋 modal */
.flatpickr-calendar {
  z-index: 9998 !important;
}

/* Input styling */
#directStartDate {
  cursor: pointer;
}

#directStartDate:focus {
  outline: none;
  ring: 2px;
  ring-color: #3b82f6;
  border-color: #3b82f6;
}


/* Add to your style.css or in a <style> block */
.calendar-day {
  @apply w-10 h-10 flex items-center justify-center text-sm cursor-pointer rounded-lg transition-colors duration-200;
}

.calendar-day.disabled {
  @apply text-gray-300 cursor-not-allowed bg-gray-50;
}

.calendar-day.available {
  @apply bg-green-100 text-green-800 border border-green-300 hover:bg-green-200;
}

.calendar-day.selected {
  @apply bg-blue-600 text-white border border-blue-600;
}

.calendar-day:not(.available):not(.selected) {
  @apply text-gray-400 cursor-not-allowed;
}
