/* Seleção e exportação em lote */

.batch-section {
  margin: 20px 16px 0;
  display: none;
}

.batch-section.visible {
  display: block;
}

.batch-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.batch-count {
  font-family: var(--fonte-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--azul);
}

.batch-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 230px;
  overflow-y: auto;
  border-radius: var(--radius-sm);
}

.batch-thumb {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--cinza-medio);
}

.batch-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.batch-thumb-num {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--fonte-display);
  font-size: 0.64rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.5;
  pointer-events: none;
}

.batch-progress {
  margin-top: 14px;
  display: none;
}

.batch-progress.visible {
  display: block;
}

.batch-progress-bar {
  height: 6px;
  background: var(--cinza-medio);
  border-radius: 3px;
  overflow: hidden;
}

.batch-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--azul-medio);
  border-radius: 3px;
  transition: width 0.25s ease;
}

.batch-progress-text {
  font-size: 0.75rem;
  color: var(--cinza-texto);
  text-align: center;
  margin-top: 6px;
  line-height: 1.4;
}

/* Espelha .actions mas para o fluxo de lote */
.batch-actions {
  margin: 14px 16px 0;
  display: none;
  gap: 10px;
  flex-wrap: wrap;
}

.batch-actions.visible {
  display: flex;
}

/* Estado desabilitado para todos os botões de ação (download + lote) */
.btn-action:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* Botão de seleção em lote na zona de upload */
.btn-batch {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  color: var(--azul);
  border: 1.5px solid var(--cinza-borda);
}

.btn-batch:hover,
.btn-batch:focus-visible {
  border-color: var(--azul);
  background: rgba(30, 37, 68, 0.05);
}

@media (max-width: 480px) {
  .batch-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}
