.schedule-section {
  margin-bottom: 24px;
}

.schedule-section__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
}

.schedule-section__title-icon {
  font-size: 22px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 20px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.schedule-item--pending {
  background: white;
  box-shadow: var(--shadow-card);
}

.schedule-item--current {
  background: var(--color-current);
  border-color: var(--color-schedule);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.15);
  animation: currentPulse 2.5s ease-in-out infinite;
  padding-left: 22px;
}

@keyframes currentPulse {
  0%,
  100% {
    border-color: var(--color-schedule);
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.15);
  }
  50% {
    border-color: var(--color-warning);
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.25);
  }
}

.schedule-item--current::before {
  content: '▶';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-schedule);
  font-size: 12px;
  animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(3px);
  }
}

.schedule-item--completed {
  background: var(--color-completed);
  box-shadow: none;
  opacity: 0.75;
}

.schedule-item:active {
  transform: scale(0.98);
}

.schedule-item__check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #d8d4e0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  transition: all var(--transition-normal);
  background: white;
}

.schedule-item--completed .schedule-item__check {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
  animation: checkPop 400ms var(--transition-bounce);
}

@keyframes checkPop {
  0% {
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.schedule-item--current .schedule-item__check {
  border-color: var(--color-schedule);
  border-width: 3px;
  border-style: dashed;
  animation: checkRotate 4s linear infinite;
}

@keyframes checkRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.schedule-item__image {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 2px solid white;
}

.schedule-item--completed .schedule-item__image {
  filter: saturate(0.5);
}

.schedule-item__label {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
  color: var(--color-text);
}

.schedule-item--completed .schedule-item__label {
  text-decoration: line-through;
  color: var(--color-text-light);
}

.schedule-item--current .schedule-item__label {
  color: var(--color-text);
  font-weight: 800;
}

.progress-container {
  margin: 28px 0;
  text-align: center;
}

.progress-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.progress-bar {
  background: #ede8f5;
  border-radius: 16px;
  height: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  margin: 20px 0 8px;
}

.progress-bar__fill {
  height: 100%;
  border-radius: 16px;
  transition: width 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 28px;
  position: relative;
  background: linear-gradient(
    90deg,
    #43c06d 0%,
    #56d880 30%,
    #8dd98f 60%,
    #b5e8b7 100%
  );
}

.progress-bar__fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), transparent);
  border-radius: 16px 16px 0 0;
}

.progress-bar__fill--complete {
  background: linear-gradient(90deg, #f5a623 0%, #ffb94d 30%, #ffd700 60%, #ffed4a 100%);
  animation: progressCelebrate 500ms ease;
}

@keyframes progressCelebrate {
  0% {
    transform: scaleX(0.95);
  }
  50% {
    transform: scaleX(1.02);
  }
  100% {
    transform: scaleX(1);
  }
}

.progress-bar__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 800;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.progress-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.progress-star {
  font-size: 24px;
  transition: all var(--transition-bounce);
  filter: grayscale(1) opacity(0.3);
}

.progress-star--earned {
  filter: none;
  animation: starEarn 400ms var(--transition-bounce);
}

@keyframes starEarn {
  0% {
    transform: scale(0) rotate(-30deg);
  }
  60% {
    transform: scale(1.4) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}
