/* =============================================================
   UPLOAD PROGRESS - Overlay de progression
   ============================================================= */

.upload-progress-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 200001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.upload-progress-overlay.active { display: flex; }

.upload-progress-card {
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  padding: 32px 36px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  color: white;
}

.upload-progress-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: inline-block;
  animation: uploadIconPulse 1.4s ease-in-out infinite;
}
@keyframes uploadIconPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.upload-progress-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.upload-progress-message {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
}

.upload-progress-bar-wrap {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
}

.upload-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4CAF50, #81c784);
  border-radius: 6px;
  transition: width 0.25s ease;
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.5);
}

/* Mode indéterminé : barre qui glisse */
.upload-progress-overlay.indeterminate .upload-progress-bar {
  width: 30% !important;
  animation: uploadIndeterminate 1.2s ease-in-out infinite;
}
@keyframes uploadIndeterminate {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

.upload-progress-pct {
  font-size: 13px;
  font-weight: 700;
  color: #4CAF50;
  font-family: 'Courier New', monospace;
}

.upload-progress-overlay.indeterminate .upload-progress-pct {
  display: none;
}
