/* Enhanced File Upload Styling */

/* Success Message */
.upload-success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  font-size: 5rem;
  color: #10b981;
  margin-bottom: 1.5rem;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-text h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0 0 0.75rem 0;
}

.success-text p {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* File Upload Area Enhancements */
.file-upload-area {
  border: 3px dashed #cbd5e1;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.file-upload-area::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.file-upload-area:hover {
  border-color: #667eea;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.file-upload-area:hover::before {
  opacity: 1;
}

.file-upload-area.dragover {
  border-color: #667eea;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border-style: solid;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.file-upload-icon {
  font-size: 4rem;
  color: #667eea;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.file-upload-area:hover .file-upload-icon {
  transform: scale(1.1);
  color: #764ba2;
}

.file-upload-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.file-upload-hint {
  font-size: 0.938rem;
  color: #64748b;
  position: relative;
  z-index: 1;
}

.file-input {
  display: none;
}

/* Upload Progress Enhancements */
.upload-progress {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--card-background);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: none;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-bar {
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-fill::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 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #64748b;
}

.progress-text i {
  color: #667eea;
  margin-right: 0.5rem;
}

.progress-percentage {
  font-weight: 700;
  color: var(--text-secondary);
}

/* Modal Enhancements for File Upload */
.modal .modal-content {
  min-height: 300px;
}



