* Completed state */ .completed .progress-fill {
  width: 100%;
  background: #34a853;
}

.completed .status-message h2 {
  color: #34a853;
}

.redirect-message {
  display: none;
  text-align: center;
  padding: 24px;
  background: #e8f5e8;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  margin: 24px 0;
}

.redirect-message.show {
  display: block;
}

.redirect-message i {
  color: #34a853;
  font-size: 48px;
  margin-bottom: 16px;
}

.redirect-message h3 {
  color: #1b5e20;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.redirect-message p {
  color: #2e7d32;
  font-size: 14px;
}

.dl_button:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.dl_button.loading {
  cursor: not-allowed;
  pointer-events: none;
}

.dl_button.completed {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  cursor: default;
}

.dl_button.disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

.check-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.action-container {
  text-align: center;
  padding: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.status-message {
  margin-top: 12px;
  font-size: 14px;
  color: #6b7280;
}

.status-message.completed {
  color: #10b981;
  font-weight: 500;
}
.restart-section {
  margin-top: 20px;
  padding: 15px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
}

.restart-text {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #64748b;
}

.restart-button {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.restart-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
