* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

:root {
  --cor-primaria: #e40f37;
  --cor-primaria-escura: #b90c2d;
  --cor-azul-qandar: #2563eb;
  --cor-verde-bom: #16a34a;
  --cor-amarelo-atencao: #d97706;
  --cor-vermelho-critico: #dc2626;
  --texto-principal: #1e293b;
  --texto-secundario: #64748b;
  --fundo-pagina: #0f172a;
  --fundo-app: #f8fafc;
  --borda: #e2e8f0;
}

body {
  background-color: var(--fundo-pagina);
  color: var(--texto-principal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}

/* Modo para captura limpa das telas para a apresentacao */
body.modo-captura {
  background-color: #ffffff;
  padding: 0;
  margin: 0;
  align-items: flex-start;
  justify-content: flex-start;
}

body.modo-captura .barra-demonstracao {
  display: none !important;
}

body.modo-captura .moldura-celular {
  width: 392px;
  height: 820px;
  border: 6px solid #1e293b;
  border-radius: 30px;
  box-shadow: none;
  margin: 0;
}

/* Barra superior para facilitar os testes do professor na avaliacao */
.barra-demonstracao {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 920px;
  width: 100%;
  color: #f8fafc;
  flex-wrap: wrap;
}

.barra-demonstracao .info-topo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.barra-demonstracao .tag-gs {
  background: var(--cor-primaria);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.barra-demonstracao .atalhos-telas {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-atalho {
  background: #0f172a;
  color: #cbd5e1;
  border: 1px solid #475569;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-atalho:hover,
.btn-atalho.ativo {
  background: var(--cor-primaria);
  color: #fff;
  border-color: var(--cor-primaria);
}

/* Moldura do smartphone */
.moldura-celular {
  width: 392px;
  height: 820px;
  background: var(--fundo-app);
  border: 10px solid #1e293b;
  border-radius: 38px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Barra de status do celular */
.barra-status-celular {
  height: 30px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
  z-index: 30;
}

/* Area principal que troca entre Mapa, Raio-X e Feed */
.conteudo-tela {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.visao {
  display: none;
  flex: 1;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.visao.ativa {
  display: flex;
}

/* =========================================================
   1. ESTILO QUINTOANDAR: BUSCA, PILULAS E MAPA + BOTTOM SHEET
   ========================================================= */
.topo-flutuante-mapa {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.caixa-busca {
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icone-lupa {
  width: 18px;
  height: 18px;
  color: var(--cor-primaria);
  flex-shrink: 0;
}

.caixa-busca input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 13px;
  color: var(--texto-principal);
  background: transparent;
}

.seletor-estado {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
}

/* Pilulas de filtro (Pills estilo QuintoAndar) */
.linha-pilulas {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.linha-pilulas::-webkit-scrollbar {
  display: none;
}

.pilula {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pilula.ativa {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Legenda compacta de cores do mapa */
.legenda-mapa {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.ponto-cor {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

/* Area do Mapa Vetorial Interativo */
.area-mapa {
  flex: 1;
  background: #eef2f6;
  position: relative;
  overflow: hidden;
}

.mapa-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.poligono-bairro {
  cursor: pointer;
  transition: fill-opacity 0.2s, stroke-width 0.2s;
}

.poligono-bairro:hover {
  fill-opacity: 0.55;
}

.poligono-bairro.selecionado {
  stroke-width: 3.5px;
  fill-opacity: 0.58;
}

/* Marcador de nota no mapa (Pin estilo QuintoAndar/Airbnb) */
.pin-grupo {
  cursor: pointer;
}

/* =========================================================
   2. ESTILO WAZE: BOTAO FAB E MODAL RAPIDO DE RELATO
   ========================================================= */
.botao-fab-waze {
  position: absolute;
  right: 14px;
  bottom: 18px;
  z-index: 16;
  background: var(--cor-primaria);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 18px rgba(228, 15, 55, 0.42);
  cursor: pointer;
  transition: transform 0.15s;
}

.botao-fab-waze.com-aba-aberta {
  bottom: 292px;
}

.botao-fab-waze:active {
  transform: scale(0.96);
}

/* Bottom Sheet (Aba inferior estilo QuintoAndar) */
.aba-inferior-bairro {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.16);
  padding: 12px 16px 16px;
  z-index: 18;
  transform: translateY(105%);
  transition: transform 0.25s ease-out;
  border-top: 1px solid #e2e8f0;
}

.aba-inferior-bairro.aberta {
  transform: translateY(0);
}

.puxador-aba {
  width: 38px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 99px;
  margin: 0 auto 10px;
}

.cabecalho-aba {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.cabecalho-aba h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.cabecalho-aba p {
  font-size: 12px;
  color: var(--texto-secundario);
}

.selo-nota-aba {
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.resumo-curto-aba {
  font-size: 12.5px;
  color: #334155;
  background: #f8fafc;
  border-left: 3px solid var(--cor-primaria);
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.mini-metricas-aba {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mini-metrica {
  background: #f1f5f9;
  padding: 6px 8px;
  border-radius: 8px;
  text-align: center;
}

.mini-metrica span {
  display: block;
  font-size: 11px;
  color: #64748b;
}

.mini-metrica strong {
  font-size: 13px;
  color: #0f172a;
}

.botoes-aba {
  display: flex;
  gap: 8px;
}

.btn-primario {
  flex: 1;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-secundario {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Modal Escuro de Denuncia Rapida (Estilo Waze) */
.modal-waze-fundo {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  z-index: 40;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.modal-waze-fundo.aberto {
  display: flex;
}

.painel-waze {
  background: #1e293b;
  border-radius: 24px;
  padding: 18px 16px;
  color: #ffffff;
  border: 1px solid #334155;
}

.topo-waze {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.topo-waze h3 {
  font-size: 17px;
  font-weight: 800;
}

.topo-waze p {
  font-size: 12px;
  color: #94a3b8;
}

.btn-fechar-waze {
  background: #334155;
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;
}

.grade-icones-waze {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.item-icone-waze {
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 16px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.item-icone-waze.selecionado {
  border-color: #38bdf8;
  background: #172554;
}

.bola-icone {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.item-icone-waze span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.campos-relato-waze {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.campos-relato-waze select,
.campos-relato-waze input,
.campos-relato-waze textarea {
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 10px;
  padding: 9px 11px;
  color: #fff;
  font-size: 12.5px;
  width: 100%;
}

/* =========================================================
   3. ESTILO AIRBNB: RAIO-X DO BAIRRO E RESUMO DA IA
   ========================================================= */
.tela-rolavel {
  flex: 1;
  overflow-y: auto;
  padding: 11px 14px;
  background: #ffffff;
}

.topo-raiox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e2e8f0;
}

.topo-raiox h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.topo-raiox p {
  font-size: 12.5px;
  color: #64748b;
}

.bloco-nota-airbnb {
  text-align: right;
}

.bloco-nota-airbnb .numero-grande {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.bloco-nota-airbnb span {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* Card de Resumo gerado por IA (Estilo Airbnb) */
.card-resumo-ia {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-left: 5px solid var(--cor-primaria);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 11px;
}

.titulo-card-ia {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.titulo-card-ia strong {
  font-size: 13px;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.etiqueta-ia {
  background: #ffe4e8;
  color: var(--cor-primaria);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

.card-resumo-ia p {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.45;
}

/* Barras Horizontais de Progresso (Termometro do Bairro) */
.secao-barras {
  margin-bottom: 11px;
}

.secao-barras h3,
.secao-problemas h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 7px;
}

.linha-barra {
  margin-bottom: 7px;
}

.rotulo-barra {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.trilho-barra {
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.preenchimento-barra {
  height: 100%;
  border-radius: 99px;
}

.lista-problemas-bairro {
  list-style: none;
  margin-bottom: 10px;
}

.lista-problemas-bairro li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 11.5px;
  color: #334155;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ponto-alerta {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cor-primaria);
  flex-shrink: 0;
}

.caixa-acao-cidada {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.caixa-acao-cidada p {
  font-size: 12px;
  color: #881337;
  margin-bottom: 8px;
  font-weight: 600;
}

/* =========================================================
   4. ESTILO COLAB: FEED DE PROBLEMAS E BOTAO APOIAR
   ========================================================= */
.cabecalho-feed {
  background: #ffffff;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.cabecalho-feed h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.cabecalho-feed p {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.lista-feed {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-relato-colab {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.topo-card-colab {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.autor-relato strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.autor-relato span {
  font-size: 11px;
  color: #64748b;
}

.tag-categoria-relato {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
}

.endereco-relato {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.texto-relato {
  font-size: 12.5px;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 10px;
}

.rodape-card-colab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.status-protocolo {
  font-size: 11px;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 4px 8px;
  border-radius: 6px;
}

.btn-apoiar-colab {
  background: #f8fafc;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-apoiar-colab.apoiado {
  background: var(--cor-primaria);
  color: #ffffff;
  border-color: var(--cor-primaria);
}

/* Barra de Navegacao Inferior do App */
.menu-inferior-app {
  height: 58px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex-shrink: 0;
  z-index: 25;
}

.item-menu-inferior {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.item-menu-inferior.ativo {
  color: var(--cor-primaria);
}

.aviso-toast {
  position: absolute;
  top: 42px;
  left: 20px;
  right: 20px;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  z-index: 60;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  display: none;
}

.aviso-toast.visivel {
  display: block;
}
