/* ==========================================================================
   Transferências e Gerenciador de Uploads (Google Drive style)
   ========================================================================== */

.tx {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 120;
  width: min(25rem, calc(100vw - 3rem));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: txIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes txIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.tx header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
  user-select: none;
}

.tx header .tit {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.tx header .sub {
  font-size: 12px;
  color: var(--ink-mid);
  font-variant-numeric: tabular-nums;
}

.tx header button {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--r-pill);
  color: var(--ink-mid);
  font-size: 14px;
  transition: all 0.1s;
}

.tx header button:hover {
  background: var(--hover);
  color: var(--ink);
}

.tx .lista {
  max-height: 16rem;
  overflow-y: auto;
}

body[data-tx="min"] .tx .lista {
  display: none;
}

.txi {
  padding: 0.65rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid var(--line-soft);
}

.txi:first-child {
  border-top: none;
}

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

.txi .nm {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.txi .st {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.txi .st.err {
  color: var(--danger);
  font-weight: 500;
}

.txi .st.ok {
  color: var(--ok);
  font-weight: 500;
}

.txi .barra {
  height: 4px;
  background: var(--line);
  border-radius: var(--r-pill);
  margin-top: 0.4rem;
  overflow: hidden;
}

.txi .barra i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-pill);
  width: 0;
  transition: width 0.15s linear;
}

.txi button {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: var(--r-pill);
  color: var(--ink-mid);
  font-size: 13px;
  flex: none;
  transition: all 0.1s;
}

.txi button:hover {
  background: var(--hover);
  color: var(--danger);
}

/* Overlay Global de Dropzone ao Arrastar Arquivos */
body[data-hot="1"]::after {
  content: 'Solte arquivos ou pastas aqui para fazer upload';
  position: fixed;
  inset: 1rem;
  border: 2px dashed var(--accent);
  border-radius: var(--r-xl);
  background: var(--accent-soft);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-ink);
  pointer-events: none;
  z-index: 999;
  box-shadow: 0 0 30px rgba(26, 115, 232, 0.2);
  animation: pulseDrop 1.5s ease-in-out infinite alternate;
}

@keyframes pulseDrop {
  from { border-color: var(--accent); }
  to { border-color: var(--accent-hover); }
}
