/* Upload Page Styles */
.upload-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 1.5rem 2rem;
}

/* Grid Background */
.upload-main::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -2;
}

/* Colored Glows */
.upload-main::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 600px 400px at 30% 20%, rgba(139, 92, 246, 0.15), transparent 70%),
    radial-gradient(ellipse 500px 350px at 70% 80%, rgba(59, 130, 246, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.upload-container {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 400px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: rgba(139, 92, 246, 0.2);
  border-color: #a78bfa;
  color: #a78bfa;
}

.step.active .step-label {
  color: var(--text-primary);
}

.step.completed .step-number {
  background: #a78bfa;
  border-color: #a78bfa;
  color: white;
}

.step.completed .step-label {
  color: #a78bfa;
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 -0.5rem;
  margin-bottom: 1.5rem;
}

/* Upload Card */
.upload-card {
  width: 100%;
  background: rgba(15, 18, 25, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}

.upload-header {
  text-align: center;
}

.upload-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.upload-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}

/* Dropzone */
.upload-dropzone {
  border: 2px dashed rgba(139, 92, 246, 0.4);
  border-radius: 16px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(139, 92, 246, 0.05);
}

.upload-dropzone:hover {
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(139, 92, 246, 0.1);
}

.upload-dropzone.drag-over {
  border-color: #a78bfa;
  background: rgba(139, 92, 246, 0.15);
  transform: scale(1.02);
}

.dropzone-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
}

.dropzone-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.dropzone-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Preview Area */
.upload-preview-area {
  width: 100%;
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 16px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(139, 92, 246, 0.05);
  min-height: 280px;
  box-sizing: border-box;
}

.preview-image-container {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  margin: 0 auto;
}

.preview-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  transform: scale(1.1);
}

.preview-filename {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* Continue Button */
.btn-continue {
  width: 100%;
  padding: 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border: none;
  transition: all 0.3s ease;
}

.btn-continue:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.1);
}

/* Trust Badges */
.upload-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.trust-badge svg {
  color: #a78bfa;
}

/* Responsive */
@media (max-width: 768px) {
  .upload-main {
    padding: 100px 1rem 2rem;
  }

  .upload-card {
    padding: 1.5rem;
  }

  .upload-title {
    font-size: 1.5rem;
  }

  .upload-dropzone {
    padding: 2rem 1.5rem;
  }

  .dropzone-icon {
    width: 64px;
    height: 64px;
  }

  .dropzone-icon svg {
    width: 32px;
    height: 32px;
  }

  .progress-steps {
    max-width: 320px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  .step-label {
    font-size: 0.75rem;
  }

  .upload-trust {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}
