/* Container pour isoler la progress bar */
.progress-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  margin-top: 20px;
}

/* Wrapper de la barre de téléchargement */
#downloadProgressWrapper {
  width: 100%;
  max-width: 400px;
  height: 12px;
  background-color: var(--progress-bar-bg-color, #cccccc);
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
  display: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
  box-sizing: border-box;
}

/* Barre de progression */
#downloadProgress {
  height: 100%;
  width: 0%;
  background-color: var(--progress-bar-fill-color, #007bff);
  border-radius: 10px;
  transition: width 0.2s ease;
}

#downloadProgressText, #downloadSpeedText {
  text-align: center;
  font-size: 0.8rem;
  color: #fff;
  content: "";
  display: none;
}

/* Responsive pour mobile */
@media (max-width: 480px) {
  #downloadProgressWrapper {
    max-width: 90%;
    height: 10px;
  }

  #downloadProgressText, #downloadSpeedText {
    font-size: 0.7rem;
  }
}

/* Stop Button */
.stop-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background-color: var(--form-button-bg-color);
  color: var(--form-button-text-color);
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.stop-btn:hover:not(:disabled) {
  background-color: var(--form-button-bg-hover-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transform: scale(1.05);
}

.stop-btn:active:not(:disabled) {
  transform: scale(0.96);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.stop-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
