/* ========== CONTAINER GERAL ========== */

.container-poltronas {
  background: radial-gradient(circle at top, #1b2230 0, #05070b 60%);
  padding: 24px;
  margin: 40px auto;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 1200px;
  color: #f5f5f5;
}

.container-poltronas .poltronas-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

/* Coluna esquerda (mapa) e coluna direita (detalhes) */
.container-poltronas .poltronas {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.container-poltronas .detalhes {
  flex: 1 1 32%;
  background-color: #10141f;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.6);
  text-align: center;
  color: #fff;
}

/* ========== TELA DO CINEMA ========== */

.tela-cinema {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.tela-cinema span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 260px;
  padding: 10px 32px;
  background: linear-gradient(90deg, #ff9800, #ff5722);
  color: #111;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
}

/* ========== GRID DE POLTRONAS ========== */

#poltronasZoomContainer {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  background: #05070b;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#poltronasGrid {
  transform: scale(1);
  transform-origin: top center;
  transition: transform 0.2s ease-in-out;
  display: inline-block;
}

.poltronas-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Linha de poltronas (fileira) */
.linha {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  width: max-content;
  overflow-x: auto;
  margin-bottom: 8px;
}

.fileira {
  width: 22px;
  font-weight: 700;
  text-align: center;
  color: #adb5bd;
  font-size: 0.85rem;
}

/* ========== BOTÃO POLTRONA ========== */

.poltrona {
  width: 32px;
  height: 32px;
  background: #2e7d32;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #ffffff;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06),
              0 4px 10px rgba(0, 0, 0, 0.7);
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.poltrona:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.8);
  background: #388e3c;
}

/* Selecionada */
.poltrona.selecionada {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #111;
  box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.9),
              0 0 16px rgba(255, 152, 0, 0.7);
}

/* Ocupada */
.poltrona.ocupada {
  background-color: #c62828;
  cursor: not-allowed;
  color: #fff;
  box-shadow: none;
}

/* Inativa (bloqueada) */
button.poltrona.inativa {
  background-color: #c0392b !important;
  color: #f1c40f !important;
  border: 2px solid #f1c40f !important;
  font-size: 18px;
  padding: 0;
  cursor: not-allowed;
  box-shadow: 0 0 12px rgba(241, 196, 15, 0.5);
}

/* Reservado */
.poltrona.reservado {
  background-color: #1565c0 !important;
  color: #ffffff;
  cursor: not-allowed;
}

/* Manutenção */
.poltrona.manutencao {
  background-color: #757575 !important;
  color: #ffffff;
  cursor: not-allowed;
}

/* Tipos especiais (cores) */
.poltrona.cadeirante {
  background-color: #00bcd4;
}

.poltrona.gravida {
  background-color: #ec407a;
}

.poltrona.acompanhante {
  background-color: #5c6bc0;
}

.poltrona.audio_visual {
  background-color: #ffeb3b;
  color: #111;
}

/* Legenda redonda */
.poltrona.legenda {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #1f2933;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ========== CORREDOR ========== */

.corredor {
  width: 32px;
  height: 6px;
  display: inline-block;
  background-color: transparent;
}

/* ========== CONTROLE DE ZOOM ========== */

.zoom-controls {
  text-align: center;
  margin-bottom: 15px;
}

.zoom-controls label {
  font-weight: 600;
  margin-right: 10px;
  font-size: 0.95rem;
  color: #e0e0e0;
}

.zoom-controls input[type="range"] {
  width: 220px;
  height: 8px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* Trilho da barra */
.zoom-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: linear-gradient(90deg, #1976d2, #42a5f5);
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(25, 118, 210, 0.6);
}

/* Botão deslizante */
.zoom-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  background: #fff;
  border: 2px solid #1976d2;
  border-radius: 50%;
  margin-top: -5px;
  box-shadow: 0 0 6px rgba(25, 118, 210, 0.7);
  transition: 0.2s;
}

.zoom-controls input[type="range"]::-webkit-slider-thumb:hover {
  background: #1976d2;
  border: 2px solid #fff;
}

/* Firefox */
.zoom-controls input[type="range"]::-moz-range-track {
  height: 8px;
  background: linear-gradient(90deg, #1976d2, #42a5f5);
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(25, 118, 210, 0.6);
}

.zoom-controls input[type="range"]::-moz-range-thumb {
  height: 18px;
  width: 18px;
  background: #fff;
  border: 2px solid #1976d2;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(25, 118, 210, 0.7);
  transition: 0.2s;
}

.zoom-controls input[type="range"]::-moz-range-thumb:hover {
  background: #1976d2;
  border: 2px solid #fff;
}

/* ========== ZOOMS ESPECÍFICOS (SALAS 3–6) ========== */

#poltronasZoomContainer3,
#poltronasZoomContainer4,
#poltronasZoomContainer5,
#poltronasZoomContainer6 {
  overflow: auto;
  max-width: 100%;
  max-height: 80vh;
  padding: 10px;
  background: #05070b;
  border-radius: 12px;
}

#poltronasGrid3,
#poltronasGrid4,
#poltronasGrid5,
#poltronasGrid6 {
  transform: scale(1);
  transform-origin: top center;
  transition: transform 0.2s ease-in-out;
}

/* ========== RESUMO / DETALHES (COLUNA DIREITA) ========== */

.container-poltronas .detalhes #selecionadas {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffb74d;
  background: rgba(255, 183, 77, 0.08);
  border: 1px dashed #ffb74d;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 18px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Botão principal */
.container-poltronas .detalhes button[type="button"] {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  border: none;
  color: #fff;
  font-size: 1.05rem;
  padding: 12px 30px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 87, 34, 0.7);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  width: 100%;
  margin-top: 12px;
}

.container-poltronas .detalhes button[type="button"]:hover {
  background: linear-gradient(135deg, #ffb74d, #ff7043);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 112, 67, 0.9);
}

.container-poltronas .detalhes button[type="button"]:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 0 10px rgba(255, 112, 67, 0.7);
}

/* ========== RESPONSIVO ========== */

@media (max-width: 991.98px) {
  .container-poltronas .poltronas-container {
    flex-direction: column;
  }

  .container-poltronas .poltronas,
  .container-poltronas .detalhes {
    flex: 1 1 100%;
  }

  .tela-cinema span {
    min-width: 220px;
  }
}

@media (max-width: 768px) {
  .poltronas-wrapper {
    display: block;
    text-align: center;
  }

  .linha {
    justify-content: center;
  }

  .zoom-controls input[type="range"] {
    width: 180px;
  }
}









/* ---- PAINEL ---- */
.legend-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.legend-panel {
  width: 100%;
  max-width: 800px;
  background: linear-gradient(135deg, #0c0c0f, #14151a 70%);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 25px 20px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0,0,0,0.8);
}

/* ---- TÍTULO ---- */
.legend-title {
  text-align: center;
  color: #f8f9fa;
  margin-bottom: 18px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.legend-title i {
  color: #ffc107;
  text-shadow: 0 0 8px rgba(255,193,7,0.7);
}

/* ---- ITENS ---- */
.legend-items {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.legend-text {
  color: #e8e8e8;
  font-size: 0.9rem;
  margin-top: 4px;
  letter-spacing: 0.03em;
}

/* ---- BOLHAS ---- */
.legend-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  color: white;
  box-shadow: 0 0 12px rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.15);
}

/* cores especiais */
.legend-icon.cadeirante {
  background: linear-gradient(135deg, #00d8ff, #0066ff);
  box-shadow: 0 0 14px rgba(0,140,255,0.7);
}
.legend-icon.gestante {
  background: linear-gradient(135deg, #ff7ab8, #ff2d78);
  box-shadow: 0 0 14px rgba(255,60,120,0.8);
}
.legend-icon.acompanhante {
  background: linear-gradient(135deg, #9ba8ff, #4a5dff);
  box-shadow: 0 0 14px rgba(100,100,255,0.7);
}
.legend-icon.audiovisual {
  background: linear-gradient(135deg, #ffea7a, #ffbf00);
  box-shadow: 0 0 14px rgba(255,200,0,0.8);
}

/* ---- ÍCONES ---- */
.legend-icon i,
.legend-icon strong {
  font-size: 1.8rem;
  color: white;
}

/* ---- AVISO ---- */
.legend-warning {
  text-align: center;
  color: #ffc107;
  font-size: 0.85rem;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.2);
}
.legend-warning i {
  margin-right: 5px;
}




.session-header {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.session-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #0d1117, #0c0c0f);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 18px rgba(0,0,0,0.6);
  max-width: 650px;
  width: 100%;
}

.session-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #1c1c1c;
  font-size: 2rem;
  box-shadow: 0 0 15px rgba(255,160,0,0.8);
}

.session-room {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.session-meta {
  margin-top: 6px;
  color: #e8e8e8;
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
}

.session-meta i {
  color: #ffc107;
}

.session-meta .divider {
  color: #777;
}
