/* ============================================================
   BTT Drag-and-Drop File Uploader
   ============================================================ */

.file-uploader {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: border-color .2s, background .2s;
  cursor: pointer;
  position: relative;
}
.file-uploader:hover,
.file-uploader.drag-over {
  border-color: var(--gold);
  background: rgba(242, 64, 15, .04);
}
.file-uploader__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.file-uploader__zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  pointer-events: none;
  text-align: center;
}
.file-uploader__icon {
  width: 36px;
  height: 36px;
  color: var(--muted);
}
.file-uploader__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.file-uploader__label span {
  color: var(--gold);
  text-decoration: underline;
}
.file-uploader__hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* File list */
.file-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
}
.file-item__icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex: none;
}
.file-item__name {
  flex: 1;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-item__size {
  color: var(--muted);
  font-size: 12px;
  flex: none;
}
.file-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 2px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: color .15s, background .15s;
  flex: none;
}
.file-item__remove:hover {
  color: #dc2626;
  background: #fee2e2;
}
.file-item__remove [data-lucide] {
  width: 14px;
  height: 14px;
}
.file-item--error {
  border-color: #fca5a5;
  background: #fff5f5;
}
.file-item--error .file-item__name {
  color: #dc2626;
}

/* Error / warning states */
.uploader-error {
  font-size: 12.5px;
  color: #dc2626;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.uploader-error [data-lucide] {
  width: 14px;
  height: 14px;
  flex: none;
}
