/* ══ FILE CARD ══ */
/* Card per mostrare un file PDF caricato: icona, nome, dimensione, pagine */
/* Usato da: Merge (lista file), potenzialmente Compare, Split */
/* Varianti: con/senza grip handle per riordino */

.file-card {
  background: white;
  border: 1px solid var(--grey-200);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.15s;
}

.file-card:hover {
  border-color: var(--grey-300);
  box-shadow: var(--shadow-1);
}

/* ── Grip handle (opzionale, per riordino drag & drop) ── */

.file-card-grip {
  color: var(--grey-300);
  flex-shrink: 0;
  cursor: grab;
  display: flex;
  align-items: center;
}

.file-card-grip:hover {
  color: var(--grey-500);
}

/* ── Numero d'ordine ── */

.file-card-number {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-500);
  flex-shrink: 0;
}

/* ── Icona tipo file ── */

.file-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.file-card-icon svg {
  width: 28px;
  height: 28px;
}

/* ── Info file (nome + metadata) ── */

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

.file-card-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--grey-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card-meta {
  font-size: 12px;
  color: var(--grey-500);
  margin-top: 2px;
  display: flex;
  gap: 8px;
}

/* ── Bottone rimuovi ── */

.file-card-remove {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-500);
  flex-shrink: 0;
  transition: all 0.15s;
}

.file-card-remove:hover {
  background: var(--grey-200);
  color: var(--grey-700);
}

/* ── Stato durante il drag & drop ── */

.file-card.dragging {
  opacity: 0.4;
  border-color: #1a73e8;
}

.file-card.drag-over {
  border-color: #1a73e8;
  box-shadow: var(--shadow-2);
}
