/* PDFlyHQ — tools/compress-pdf/processing.css
   Copy-as-is for future tools — spinner, progress bar label. The bar
   itself (.progress-bar / .progress-bar__fill) lives in components/progress.css. */

.processing-wrap {
  text-align: center;
  padding: var(--space-10) 0;
  max-width: 380px;
  margin: 0 auto;
}

.processing-wrap__icon { display: inline-flex; margin-bottom: var(--space-4); }
.processing-wrap__icon svg { width: 36px; height: 36px; }
.processing-spinner {
  transform-origin: 18px 18px;
  animation: processing-spin 900ms linear infinite;
}
@keyframes processing-spin { to { transform: rotate(360deg); } }

.processing-wrap h3 { margin-bottom: var(--space-6); font-size: var(--text-md); }

/* Subtle shimmer sweep over the fill while active, on top of the
   determinate width set by index.js (#progress-fill). */
.progress-bar { position: relative; }
.progress-bar__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, #fff 45%, transparent), transparent);
  transform: translateX(-100%);
  animation: progress-shimmer 1400ms var(--ease-default) infinite;
}
@keyframes progress-shimmer { 100% { transform: translateX(100%); } }

.processing-private {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .processing-spinner { animation: none; }
  .progress-bar__fill::after { animation: none; display: none; }
}
