/* =========================================================
   WIRTZ DRIVE · PAPELERA
   ========================================================= */

.trash-page {
  display: flex;
  flex-direction: column;
  gap: 18px;

  width: 100%;
  min-width: 0;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.trash-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 18px;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);

  background: var(--surface);
}

.trash-page__heading {
  display: flex;
  align-items: center;
  gap: 14px;

  min-width: 0;
}

.trash-page__heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 50px;
  min-width: 50px;
  height: 50px;

  border: 1px solid var(--danger-border);
  border-radius: 14px;

  color: var(--danger);

  background: var(--danger-soft);
}

.trash-page__heading-icon svg {
  width: 23px;
  height: 23px;
}

.trash-page__eyebrow {
  display: block;

  margin-bottom: 3px;

  color: var(--text-soft);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trash-page__heading h2 {
  margin: 0;

  font-size: 21px;
  letter-spacing: -0.035em;
}

.trash-page__heading p {
  margin: 4px 0 0;

  color: var(--text-muted);

  font-size: 13px;
}

.trash-page__toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trash-page__select {
  min-width: 170px;
  height: 42px;
  padding: 0 36px 0 13px;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;

  color: var(--text);

  background: var(--surface);
}

.trash-page__select:hover {
  border-color: var(--line-focus);
}

.trash-page__select:focus {
  border-color: var(--accent);

  outline: 3px solid rgba(225, 38, 48, 0.08);
}

/* =========================================================
   RESUMEN
   ========================================================= */

.trash-page__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trash-summary-card {
  display: flex;
  align-items: center;
  gap: 13px;

  min-width: 0;
  padding: 17px;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);

  background: var(--surface);
}

.trash-summary-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  min-width: 44px;
  height: 44px;

  border: 1px solid var(--line-strong);
  border-radius: 12px;

  color: var(--text-muted);

  background: var(--surface-soft);
}

.trash-summary-card__icon svg {
  width: 20px;
  height: 20px;
}

.trash-summary-card > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.trash-summary-card span {
  color: var(--text-muted);

  font-size: 12px;
  font-weight: 600;
}

.trash-summary-card strong {
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* =========================================================
   PANEL
   ========================================================= */

.trash-page__panel {
  min-width: 0;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);

  overflow: hidden;

  background: var(--surface);
}

.trash-page__table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.trash-page__table-head,
.trash-row {
  display: grid;
  grid-template-columns:
    minmax(290px, 1fr)
    100px
    100px
    175px
    150px
    100px;
  align-items: center;

  min-width: 970px;
}

.trash-page__table-head {
  min-height: 46px;
  padding: 0 15px;

  border-bottom: 1px solid var(--line-strong);

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  background: var(--surface-muted);
}

.trash-row {
  min-height: 72px;
  padding: 0 15px;

  border-bottom: 1px solid var(--line);

  background: var(--surface);

  transition: background-color var(--transition);
}

.trash-row:last-child {
  border-bottom: 0;
}

.trash-row:hover {
  background: var(--surface-soft);
}

.trash-row__main {
  display: flex;
  align-items: center;
  gap: 11px;

  min-width: 0;
}

.trash-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  min-width: 44px;
  height: 44px;

  border: 1px solid var(--line-strong);
  border-radius: 12px;

  color: var(--text-muted);

  background: var(--surface);
}

.trash-row__icon svg {
  width: 20px;
  height: 20px;
}

.trash-row__icon--folder {
  border-color: #d8bd86;

  color: #a56c12;

  background: #fffaf0;
}

.trash-row__icon--file {
  border-color: var(--danger-border);

  color: var(--danger);

  background: var(--danger-soft);
}

.trash-row__name {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.trash-row__name strong {
  overflow: hidden;

  color: var(--text);

  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trash-row__name small {
  color: var(--text-soft);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trash-row__type,
.trash-row__size,
.trash-row__date,
.trash-row__user {
  color: var(--text-muted);

  font-size: 12px;
}

.trash-row__actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.trash-row__actions .icon-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
}

.trash-row__delete {
  color: var(--danger);
}

/* =========================================================
   ESTADOS
   ========================================================= */

.trash-page__loading,
.trash-page__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 400px;
  padding: 32px;

  text-align: center;
}

.trash-page__loading {
  flex-direction: row;
  gap: 12px;

  color: var(--text-muted);
}

.trash-page__spinner {
  width: 22px;
  height: 22px;

  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;

  animation: trash-spin 0.7s linear infinite;
}

.trash-page__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 68px;
  height: 68px;

  border: 1px solid var(--line-strong);
  border-radius: 18px;

  color: var(--text-soft);

  background: var(--surface-soft);
}

.trash-page__empty-icon svg {
  width: 30px;
  height: 30px;
}

.trash-page__empty h3 {
  margin: 18px 0 0;

  font-size: 22px;
}

.trash-page__empty p {
  margin: 8px 0 0;

  color: var(--text-muted);
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */

.trash-page__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 14px 16px;

  border-top: 1px solid var(--line-strong);

  color: var(--text-muted);

  font-size: 12px;

  background: var(--surface-soft);
}

.trash-page__pagination-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trash-page__pagination-actions .button {
  min-height: 36px;
  padding: 0 12px;

  font-size: 12px;
}

.trash-page__pagination-actions svg {
  width: 16px;
  height: 16px;
}

@keyframes trash-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .trash-page__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .trash-page__toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trash-page__toolbar-actions .button {
    grid-column: 1 / -1;

    width: 100%;
  }

  .trash-page__select {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .trash-page__summary {
    grid-template-columns: 1fr;
  }

  .trash-page__toolbar-actions {
    grid-template-columns: 1fr;
  }

  .trash-page__toolbar-actions .button {
    grid-column: auto;
  }

  .trash-page__pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .trash-page__pagination-actions {
    justify-content: space-between;
  }

  .trash-page__pagination-actions .button span {
    display: none;
  }
}