/* ==================== DOWNLOAD PROGRESS MODAL ==================== */

/* Overlay */
.global-progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal */
.progress-modal {
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  padding: 32px;
  min-width: 400px;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
  text-align: center;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-modal h3 {
  margin: 0 0 16px 0;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
}

.download-name {
  margin: 0 0 24px 0;
  font-size: 16px;
  color: #aaaaaa;
  word-break: break-word;
}

/* Progress Bar Container */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 0 16px 0;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Animated gradient effect */
.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Progress Text */
.progress-text {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
}

.progress-details {
  margin: 0;
  font-size: 14px;
  color: #888888;
  font-family: 'Courier New', monospace;
}

/* Responsive */
@media (max-width: 768px) {
  .progress-modal {
    min-width: 300px;
    max-width: 90vw;
    padding: 24px;
  }
  
  .progress-modal h3 {
    font-size: 20px;
  }
  
  .download-name {
    font-size: 14px;
  }
  
  .progress-text {
    font-size: 28px;
  }
  
  .progress-details {
    font-size: 12px;
  }
}

/* Dark theme optimization */
@media (prefers-color-scheme: dark) {
  .progress-modal {
    background: linear-gradient(145deg, #0d0d1a 0%, #0a0f1e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}