.file-upload-wrapper {
  position: relative;
  width: 100%;
  min-height: 200px;
  background-color: var(--card-bg);
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.file-upload-wrapper:hover {
  border-color: var(--primary);
  background-color: rgba(var(--shadow-color), 0.05);
}

.file-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.upload-icon {
  font-size: 3rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.file-upload-wrapper:hover .upload-icon {
  transform: scale(1.1);
  color: var(--primary);
}

.upload-text {
  font-size: 0.95rem;
  color: var(--text-main);
  text-align: center;
  font-weight: 500;
  padding: 0 1rem;
}

/* Preview System */
.preview-container {
  margin-top: 15px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 320px;
  width: 100%;
  border: 2px solid rgba(var(--shadow-color), 0.1);
  background: var(--bg-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

#image-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.preview-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}

.btn-remove-preview {
  width: 36px;
  height: 36px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}

.btn-remove-preview:hover {
  background: #dc2626;
  transform: scale(1.05);
}

/* Dark Mode Overrides */
body.dark-mode .file-upload-wrapper {
  border-color: #475569;
}

body.dark-mode .file-upload-wrapper:hover {
  border-color: var(--primary);
}

body.dark-mode .preview-container {
  border-color: #334155;
  background: #0f172a;
}
