#progress-box {
    max-width: 700px;
    margin: 1.5rem auto;
    font-family: var(--font-family-main);
}

.progress-card {
  position: relative;
  background: var(--background-color-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  text-align: center;
  border: 4px solid var(--primary-color);
  padding-top: 3.5rem;
}

.progress-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 0.8rem 1.6rem;
  background: var(--header-bg-gradient);
  color: var(--text-color-light);
  border-radius: var(--border-radius-md);
  box-shadow: 0 5px 20px rgba(0, 91, 234, 0.25);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0;
}

.progress-header.state-processing,
.progress-header.state-complete {
  justify-content: center;
  gap: 0.75rem;
}

.progress-header-icon {}
.progress-header-text {}

.progress-subtitle {
  margin: 0 1.5rem 1rem;
  background: var(--primary-color-light);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  color: var(--text-color-secondary);
}

.progress-bar-wrapper {
  margin: 1.25rem 1.5rem 1.5rem;
  height: 18px;
  background: #e9ecef;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color-light-gradient-end));
  transition: width 0.4s ease-in-out;
}

#progress-box .error-message {
  padding: 1.5rem;
  color: #e74c3c;
  font-weight: 500;
  text-align: center;
  background-color: #fff8f8;
  border-top: 1px solid #ffe0e0;
}

#progress-box .error-message .try-again-btn {
    margin-top: 1rem;
}