/*
 * Progress
 * Bar + circle variants
 */

.progress {
  width: 100%;
  height: 0.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.progress-bar-success { background: var(--color-success); }
.progress-bar-warning { background: var(--color-warning); }
.progress-bar-error { background: var(--color-error); }

/* Indeterminate */
.progress-indeterminate .progress-bar {
  width: 40%;
  animation: progress-slide 1.5s ease-in-out infinite;
}

@keyframes progress-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* Sizes */
.progress-sm { height: 0.25rem; }
.progress-lg { height: 0.75rem; }

/* Circle */
.progress-circle {
  position: relative;
  width: 3rem;
  height: 3rem;
}

.progress-circle svg {
  transform: rotate(-90deg);
}

.progress-circle-track {
  fill: none;
  stroke: var(--color-surface);
  stroke-width: 4;
}

.progress-circle-bar {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset var(--transition-slow);
}

.progress-circle-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 600;
}
