/* ------------------------------------------------------------------
   setup.css
   Estils propis de setup.html. Reutilitza les variables i les
   classes de style.css (.contenidor, .targeta-grup, .graella-aula,
   .fila-aula, .taula-parella...) i només hi afegeix el que és
   específic d'aquesta pàgina: els seients i el bloc de descàrrega.
   ------------------------------------------------------------------ */

/* ── Seients (taules buides o assignades) ── */

.seient {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 8px 6px;
  border: none;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--sh-card);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--text-1);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.seient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 30, 40, 0.12);
}

.seient--buit {
  background: var(--bg-base);
  border: 1px dashed var(--border);
  box-shadow: none;
  color: var(--text-3);
  font-weight: 600;
}

/* Desplegable flotant que apareix en clicar un seient */

.seient-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 2px solid var(--blau);
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  text-align: center;
  color: var(--text-1);
}

/* ── Bloc de descàrrega ── */

.targeta-descarrega {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  padding: 16px 18px;
  margin-top: 18px;
}

.comptador-pendents {
  font-size: 13px;
  color: var(--ambre);
  font-weight: 600;
}

.comptador-pendents.comptador--complet {
  color: var(--verd);
}

.targeta-descarrega-botons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.boto-secundari {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--r-btn);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.boto-secundari:hover {
  background: var(--bg-base);
  border-color: var(--text-3);
}

#boto-descarregar-config {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: var(--r-btn);
  border: none;
  background: var(--blau);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

#boto-descarregar-config:hover:not(:disabled) {
  background: var(--blau-fosc);
  transform: translateY(-1px);
}

#boto-descarregar-config:disabled {
  background: var(--text-3);
  cursor: not-allowed;
  opacity: 0.7;
}
