/* =========================
   GLOBAL TRANSITIONS
========================= */
.tpp-animate {
  transition: all 0.3s ease;
}

/* =========================
   FADE IN
========================= */
.tpp-fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: tppFadeIn 0.6s ease forwards;
}

@keyframes tppFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   STAGGERED FADE
========================= */
.tpp-fade-in-delay-1 { animation-delay: 0.1s; }
.tpp-fade-in-delay-2 { animation-delay: 0.2s; }
.tpp-fade-in-delay-3 { animation-delay: 0.3s; }
.tpp-fade-in-delay-4 { animation-delay: 0.4s; }

/* =========================
   LOADING DOTS (🚚 Loading...)
========================= */
.tpp-loading-dots::after {
  content: '...';
  display: inline-block;
  animation: tppDots 1.2s infinite;
}

@keyframes tppDots {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

/* =========================
   PROGRESS LINE ANIMATION
========================= */
.tpp-progress-line {
  position: absolute;
  left: 8px;
  top: 0;
  width: 4px;
  height: 0;
  background: var(--tpp-primary-color);
  animation: tppGrowLine 1s ease forwards;
}

@keyframes tppGrowLine {
  to {
    height: 100%;
  }
}

/* =========================
   STEP ACTIVATION
========================= */
.tpp-step.active::before {
  animation: tppPulseStep 1s ease;
}

@keyframes tppPulseStep {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0,115,170,0.4);
  }
  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 10px rgba(0,115,170,0);
  }
  100% {
    transform: scale(1);
  }
}

/* =========================
   CARD HOVER LIFT
========================= */
.tpp-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tpp-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* =========================
   BUTTON CLICK FEEDBACK
========================= */
.tpp-btn:active,
.tpp-tracking-box button:active {
  transform: scale(0.96);
}

/* =========================
   SHAKE (ERROR FEEDBACK)
========================= */
.tpp-shake {
  animation: tppShake 0.4s;
}

@keyframes tppShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* =========================
   SUCCESS POP
========================= */
.tpp-success-pop {
  animation: tppPop 0.4s ease;
}

@keyframes tppPop {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   TIMELINE SLIDE-IN
========================= */
.tpp-slide-in {
  opacity: 0;
  transform: translateX(-10px);
  animation: tppSlideIn 0.5s ease forwards;
}

@keyframes tppSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================
   SPINNER (OPTIONAL)
========================= */
.tpp-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #eee;
  border-top: 3px solid var(--tpp-primary-color);
  border-radius: 50%;
  animation: tppSpin 1s linear infinite;
  margin: 0 auto;
}

@keyframes tppSpin {
  to {
    transform: rotate(360deg);
  }
}