.upload-status-text {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.72;
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 280px;
  padding: 32px 16px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.upload-dropzone-icon {
  width: 48px;
  height: 48px;
  opacity: 0.4;
  margin-bottom: 16px;
}

.upload-dropzone-text {
  font: 400 14px/1.65 "Noto Sans", sans-serif;
  opacity: 0.5;
  text-align: center;
}

.upload-dropzone-text strong {
  opacity: 1;
  color: inherit;
}

.upload-dropzone-sub {
  font: 400 11px/1.4 "Noto Sans", sans-serif;
  opacity: 0.35;
  margin-top: 6px;
}

.upload-file-input {
  display: none;
}

.upload-preview {
  display: none;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.upload-preview.has-file {
  display: block;
}

.upload-preview-img {
  display: block;
  max-width: 100%;
  max-height: 300px;
  margin: 0 auto;
  object-fit: contain;
}

.upload-preview-info {
  padding: 10px 14px;
  font: 400 12px/1.4 "Noto Sans", sans-serif;
  opacity: 0.6;
  display: flex;
  justify-content: space-between;
}

.upload-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.upload-actions .glassy {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: inherit;
  cursor: pointer;
  font: 600 13px/1 "Noto Sans", sans-serif;
}

.upload-actions .glassy:disabled {
  opacity: 0.5;
  cursor: default;
}

.upload-result {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.upload-result.has-result {
  display: block;
}

.upload-result-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.upload-result-row:last-child {
  margin-bottom: 0;
}

.upload-result-label {
  font: 600 11px/1 "Noto Sans", sans-serif;
  opacity: 0.5;
  min-width: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.upload-result-url {
  flex: 1;
  font: 400 12px/1.4 "SF Mono", "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-result-copy {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font: 600 11px/1 "Noto Sans", sans-serif;
  cursor: pointer;
  color: inherit;
  flex-shrink: 0;
}


.upload-progress {
  display: none;
  margin-top: 8px;
}

.upload-progress.active {
  display: block;
}

.upload-progress-track {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s;
  width: 0;
}

/* Light mode */
body.light-mode .upload-dropzone {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
}

body.light-mode .upload-dropzone:hover,
body.light-mode .upload-dropzone.drag-over {
  border-color: rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.04);
}

body.light-mode .upload-preview {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

body.light-mode .upload-result {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .upload-status-text {
  opacity: 0.62;
}

@media (max-width: 620px) {
  .upload-dropzone {
    min-height: 200px;
    padding: 24px 14px;
  }

  .upload-actions {
    flex-wrap: wrap;
  }
}
