/* timeline.css */
.custom-timeline-container {
  position: absolute; /* Reveal handles relative positioning of its container */
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 70%, rgba(255, 255, 255, 0) 100%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  transition: all 0.3s ease;
  padding-top: 10px;
}

.custom-timeline-track {
  position: relative;
  width: 90%;
  max-width: 1600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -10px;
}

/* Background line */
.custom-timeline-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background-color: #e2e8f0;
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 3px;
}

/* Progress line */
.custom-timeline-progress {
  position: absolute;
  top: 50%;
  left: 0;
  height: 6px;
  background-color: #0ea5e9; /* Syncfusion-like blue */
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
}

.custom-timeline-milestone {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  /* Add an invisible wider hit area for easier clicking */
  padding: 10px;
  margin: -10px;
}

.custom-timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #f8fafc;
  border: 4px solid #cbd5e1;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.custom-timeline-milestone:hover .custom-timeline-dot {
  transform: scale(1.15);
  border-color: #7dd3fc;
  background-color: #fff;
}

.custom-timeline-milestone.completed .custom-timeline-dot {
  background-color: #0ea5e9;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.8);
}

.custom-timeline-milestone.active .custom-timeline-dot {
  background-color: #fff;
  border-color: #0ea5e9;
  border-width: 6px;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.4), 0 0 0 3px rgba(255,255,255,0.8);
  transform: scale(1.3);
}

/* Hide textual labels to avoid clutter; color progression is shown via dot states */
.custom-timeline-label {
  display: none !important;
}

.custom-timeline-milestone:hover .custom-timeline-label {
  color: #38bdf8;
  opacity: 1;
}

.custom-timeline-milestone.active .custom-timeline-label {
  color: #0ea5e9;
  font-weight: 700;
  opacity: 1;
  font-size: 14px;
  transform: translateY(2px);
}

.custom-timeline-milestone.completed .custom-timeline-label {
  color: #334155;
  opacity: 1;
}

/* Make space for the timeline at the bottom of the slides */
.reveal .slides {
  margin-bottom: 30px !important;
}
