/* ==========================================
   Schedule Timeline Page
   ========================================== */
.timeline-container {
  max-width: 48rem;
  margin: 0 auto;
}

.timeline {
  position: relative;
  border-left: 2px solid #ffedd5;
  margin-left: 1rem;
}

@media (min-width: 768px) {
  .timeline {
    margin-left: 8rem;
  }
}

.timeline.is-empty {
  border-left: none;
  margin-left: 0;
}

.timeline-empty-card {
  background-color: white;
  border: 1px dashed var(--slate-300);
  border-radius: 1rem;
  padding: 4rem 2rem;
  text-align: center;
}

.timeline-empty-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background-color: var(--brand-50);
  color: var(--brand-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-empty-icon svg {
  width: 2rem;
  height: 2rem;
}

.timeline-empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-800);
  margin: 0 0 0.5rem;
}

.timeline-empty-desc {
  font-size: 0.875rem;
  color: var(--slate-500);
  max-width: 26rem;
  margin: 0 auto;
  line-height: 1.6;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-date {
  display: none;
}

@media (min-width: 768px) {
  .timeline-date {
    display: block;
    position: absolute;
    left: -8rem;
    top: 0.125rem;
    text-align: right;
    width: 6rem;
  }
}

.date-text {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-800);
}

.date-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  display: inline-block;
}

.badge-emerald {
  background-color: #ecfdf5;
  color: #059669;
}

.badge-rose {
  background-color: var(--rose-50);
  color: var(--rose-600);
}

.badge-brand {
  background-color: var(--brand-50);
  color: var(--brand-600);
}

.badge-indigo {
  background-color: #eef2ff;
  color: #4f46e5;
}

.timeline-dot {
  position: absolute;
  left: -9px;
  /* adjust based on border */
  top: 0.375rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--brand-500);
  box-shadow: 0 0 0 4px var(--brand-50);
}

.dot-inactive {
  background-color: #fed7aa;
}

/* สีจุดบนเส้นไทม์ไลน์ให้ตรงกับสีป้ายวันที่ของแต่ละรายการ (เขียว/แดง/ส้ม/น้ำเงิน) แทนที่จะเป็นสีส้มเดียวทั้งหมด */
.timeline-dot.badge-emerald {
  background-color: #059669;
  box-shadow: 0 0 0 4px #ecfdf5;
}

.timeline-dot.badge-rose {
  background-color: var(--rose-600);
  box-shadow: 0 0 0 4px var(--rose-50);
}

.timeline-dot.badge-brand {
  background-color: var(--brand-600);
  box-shadow: 0 0 0 4px var(--brand-50);
}

.timeline-dot.badge-indigo {
  background-color: #4f46e5;
  box-shadow: 0 0 0 4px #eef2ff;
}

.timeline-content {
  margin-left: 2rem;
}

.timeline-mobile-date {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-500);
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .timeline-mobile-date {
    display: none;
  }
}

.timeline-title {
  font-weight: 700;
  color: var(--slate-900);
  font-size: 1.125rem;
}

.timeline-desc {
  color: var(--slate-600);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  line-height: 1.625;
}

/* ==========================================
   Schedule: Mobile-specific overrides (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {
  .timeline-title {
    font-size: 0.95rem;
  }

  .timeline-desc {
    font-size: 0.8rem;
  }

  .timeline-mobile-date {
    font-size: 0.7rem;
  }
}
