/* Progress bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: var(--z-toast);
  overflow: hidden;
  background-color: var(--color-primary-subtle);
}

.progress__bar {
  height: 100%;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
  width: 0%;
}

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

@keyframes progress-indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* Inline progress (for tiles) */
.progress-inline {
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: var(--color-primary-subtle);
}

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

.progress-inline__bar--indeterminate {
  width: 30%;
  animation: progress-indeterminate 1.5s ease-in-out infinite;
}

/* Batch progress */
.batch-progress {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.batch-progress__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.batch-progress__status {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.batch-progress__stats {
  display: flex;
  gap: var(--space-3);
}

.batch-progress__stat {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.batch-progress__stat--success {
  color: var(--color-success);
}

.batch-progress__stat--fail {
  color: var(--color-error);
}

.batch-progress__time {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}
