/**
 * Progress Indicator Styles
 * Visual progress bars and spinners
 */

.progress-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-indicator.progress-hide {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.progress-label {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.progress-bar-container {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #009b3a, #00c04b);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Jamaica theme */
.progress-bar-container.jamaica .progress-bar-fill {
  background: linear-gradient(90deg, #009b3a, #FFD700);
}

/* Neutral theme */
.progress-bar-container.neutral .progress-bar-fill {
  background: linear-gradient(90deg, #4a90e2, #67b5f7);
}

/* Shimmer effect */
.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-percentage {
  font-size: 0.95rem;
  font-weight: 700;
  color: #009b3a;
}

/* Indeterminate Progress (Spinner) */
.progress-indicator.indeterminate {
  flex-direction: row;
  gap: 16px;
}

.progress-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e0e0e0;
  border-top-color: #009b3a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .progress-indicator {
    padding: 20px 16px;
  }

  .progress-bar-container {
    max-width: 100%;
  }

  .progress-label {
    font-size: 0.95rem;
  }

  .progress-spinner {
    width: 28px;
    height: 28px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .progress-bar-fill,
  .progress-indicator,
  .progress-spinner {
    animation: none;
    transition: none;
  }
}
