/* Events-style file upload zone for Unfold / E-Vote admin */
:root {
  --utm-primary: #ea580c;
  --utm-primary-700: #c2410c;
}

.file-upload-wrapper {
  position: relative;
  margin: 10px 0;
  width: 100%;
  max-width: 560px;
}

.file-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-zone:hover,
.file-upload-zone.drag-over {
  border-color: var(--utm-primary);
  background: rgba(234, 88, 12, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.15);
}

.file-upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--utm-primary);
  transition: transform 0.3s ease;
  line-height: 1;
}

.file-upload-zone:hover .file-upload-icon {
  transform: scale(1.1);
}

.file-upload-text {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.file-upload-hint {
  font-size: 13px;
  color: #64748b;
}

.file-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--utm-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  margin-top: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.file-upload-button:hover {
  background: var(--utm-primary-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

.file-upload-button:active {
  transform: translateY(0);
}

.file-preview {
  margin-top: 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-preview-icon {
  font-size: 32px;
}

.file-preview-info {
  flex: 1;
  min-width: 0;
}

.file-preview-name {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  word-break: break-word;
}

.file-preview-size {
  font-size: 12px;
  color: #64748b;
}

.file-preview-remove {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.file-preview-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

/* Hide native / Unfold peach "Choose file" chrome once enhanced */
.file-upload-wrapper input[type="file"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
}

.unatu-unfold-chrome-hidden {
  display: none !important;
}

.unatu-file-host.unatu-file-enhanced > .border,
.unatu-file-host.unatu-file-enhanced > div.flex {
  display: none !important;
}

/* Keep "Currently:" link and clear checkbox visible */
.unatu-file-host.unatu-file-enhanced a,
.unatu-file-host.unatu-file-enhanced label:has(input[type="checkbox"]) {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
