/* 🌊 assets/css/bairros_validator.css */

/* 🔥 ESTILO ESSENCIAL DE POLÍGONOS E GEOMETRIAS DE BAIRROS */
.forcar-visibilidade-remota .forcar-linha-persistente,
.forcar-visibilidade-remota .leaflet-interactive {
  stroke-width: 5px !important;
  stroke-opacity: 1 !important;
  fill-opacity: 0.5 !important;
  vector-effect: non-scaling-stroke !important;
  filter: drop-shadow(0px 0px 2px #000000) !important;
}

/* 🎨 INTERFACE COMPACTA DO PAINEL LATERAL (ALTURA REDUZIDA AO MÍNIMO) */
.panel-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 6px;
  padding: 6px 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.section-subtitle {
  font-size: 0.62rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

/* DESTAQUE 1: Nome CNEFE Localidade / Bairro */
.cnefe-highlight-box {
  border-left: 4px solid #8e44ad; /* Roxo para diferenciar visualmente de logradouros (azul) */
  background: #fdfefe;
}
.cnefe-main-title {
  font-size: 1.25rem;
  color: #2c3e50;
  font-weight: 900;
  line-height: 1.1;
  margin: 1px 0 3px 0;
  word-break: break-word;
}

/* DESTAQUE 2: Ferramentas de Edição Remota (JOSM / iD) */
.editor-btn-row {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.editor-btn-row:last-child {
  margin-bottom: 0;
}

/* 🌟 EFEITO PINGO DE LUZ NOS BOTÕES JOSM E iD */
.glow-container-btn {
  position: relative;
  flex: 1;
  border-radius: 4px;
  padding: 3px;
  background: #cbd5e1;
  overflow: hidden;
  display: flex;
}
.glow-container-btn::before {
  content: '';
  position: absolute;
  top: -100%; left: -100%; width: 300%; height: 300%;
  background: conic-gradient(transparent, transparent, #8e44ad, transparent, transparent);
  animation: rotateGlow 3s linear infinite;
  z-index: 1;
}

.btn-editor-action {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: #ffffff;
  transition: background 0.2s;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.btn-editor-action:hover {
  background: #f1f5f9;
}

/* Botões Discretos de Apoio (Copiar Nome / Overpass) */
.btn-discreta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-weight: 500;
  flex: 1;
  transition: all 0.2s;
}
.btn-discreta:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

/* DESTAQUE 3: Caixa da Pergunta Final Intensa e Direta (Bairros) */
.final-validation-box {
  border: 1px solid #cbd5e1;
  background: #fbf7fc; /* Fundo levemente lilás para o contexto de bairro */
  border-radius: 6px;
  padding: 10px;
  margin-top: 2px;
}
.final-question-label {
  font-size: 0.85rem;
  color: #4a154b;
  font-weight: 800;
  line-height: 1.3;
  display: block;
  margin-bottom: 4px;
}

/* 🌟 EFEITO PINGO DE LUZ NA CAIXA DE TEXTO DO NOME DO BAIRRO */
.glow-container-input {
  position: relative;
  border-radius: 5px;
  padding: 4px;
  background: #cbd5e1;
  overflow: hidden;
  margin-bottom: 4px;
  display: flex;
}
.glow-container-input::before {
  content: '';
  position: absolute;
  top: -100%; left: -100%; width: 300%; height: 300%;
  background: conic-gradient(transparent, transparent, #8e44ad, transparent, transparent);
  animation: rotateGlow 4s linear infinite;
  z-index: 1;
}
#final-osm-name {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 6px;
  box-sizing: border-box;
  font-size: 0.88rem;
  font-weight: bold;
  border: 1px solid #ffffff;
  border-radius: 4px;
  background: #ffffff;
  margin: 0 !important;
  outline: none;
}

/* 🌟 EFEITO PINGO DE LUZ NO BOTÃO SALVAR REVISÃO */
.glow-container-save {
  position: relative;
  flex: 2;
  border-radius: 4px;
  padding: 3px;
  background: #cbd5e1;
  overflow: hidden;
  display: flex;
}
.glow-container-save::before {
  content: '';
  position: absolute;
  top: -100%; left: -100%; width: 300%; height: 300%;
  background: conic-gradient(transparent, transparent, #27ae60, transparent, transparent);
  animation: rotateGlow 3s linear infinite;
  z-index: 1;
}

/* 🌊 EFEITO ONDA (PULSAR) PARA A PERGUNTA DE BAIRROS */
.pergunta-onda {
  position: relative;
  font-size: 0.9rem; 
  color: #4a154b; 
  font-weight: 900; 
  display: inline-block;
  line-height: 1.2; 
  margin-bottom: 4px;
  padding: 2px 6px;
  border-radius: 4px;
}
.pergunta-onda::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 4px;
  box-shadow: 0 0 0 0 rgba(142, 68, 173, 0.5);
  animation: efeitoOnda 2s cubic-bezier(0.25, 0, 0, 1) infinite;
  pointer-events: none;
}

/* ANIMAÇÕES GLOBAIS */
@keyframes efeitoOnda {
  0% { box-shadow: 0 0 0 0 rgba(142, 68, 173, 0.6); }
  100% { box-shadow: 0 0 0 12px rgba(142, 68, 173, 0); }
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modais Nativos de Estatística / Histórico */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 20000;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}
.custom-modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #cbd5e1;
  width: 85%;
  max-width: 440px;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Balão de Tooltip Dinâmico */
.js-custom-tooltip {
  position: absolute;
  transform: translateX(-50%);
  background-color: #1e293b;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}
.js-custom-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}

/* Estilização para as Sugestões Inline estilo Página de Logradouros */
#suggestions-list {
    font-size: 0.75rem;
    margin: 6px 0 10px 0;
    color: #64748b;
    word-break: break-word;
}

.suggestion-link {
    cursor: pointer;
    font-weight: 500;
    display: inline-block;
}

.suggestion-link.current-link {
    color: #8e44ad !important; /* Roxo para combinar com a identidade de Bairros */
    background: #f3e8ff;
    padding: 1px 4px;
    border-radius: 3px;
    text-decoration: none !important;
}

/* Animação contínua e moderada */
@keyframes pulsarManual {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        transform: scale(1.04);
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Classe que aplica o efeito ao botão */
.botao-manual-pulsar {
    animation: pulsarManual 2s infinite ease-in-out;
    transition: all 0.2s ease;
}

/* Pausa a animação quando o mouse estiver em cima, facilitando o clique */
.botao-manual-pulsar:hover {
    animation-play-state: paused;
    background-color: #dbeafe !important;
    transform: scale(1.04);
}


