.container {
  width: 100%;
}

.uploadArea {
  width: 100%;
  min-height: 160px;
  background-color: var(--color-surface);
  border-radius: var(--border-radius);
  border: 2px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  padding: var(--spacing-medium);
  box-sizing: border-box;
}

.uploadArea:hover {
  border-color: var(--color-primary);
  background-color: rgba(var(--color-surface-rgb), 0.8);
}

.dragging {
  border-color: var(--color-primary);
  background-color: rgba(var(--color-primary), 0.05);
  transform: scale(1.02);
}

.icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-small);
  transition: transform 0.2s ease;
}

.uploadArea:hover .icon {
  transform: scale(1.1);
}

.text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-small);
  text-align: center;
}

.title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
}

.subtitle {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.fileInput {
  display: none;
}

.preview {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.previewImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.hasPreview {
  border-style: solid;
  min-height: 200px;
}

.changeOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1; /* Всегда видимый */
  transition: opacity 0.2s ease;
  border-radius: var(--border-radius);
}

.changeText {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: var(--spacing-small) var(--spacing-medium);
  background: rgba(0, 0, 0, 0.6);
  border-radius: calc(var(--border-radius) / 2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
