/* 🌊 assets/css/logradouros_validator.css */

/* 🔥 ESTILO ESSENCIAL */
.forcar-visibilidade-remota .forcar-linha-persistente,
.forcar-visibilidade-remota .leaflet-interactive {
  stroke-width: 5px !important;
  stroke-opacity: 1 !important;
  fill-opacity: 0.6 !important;
  vector-effect: non-scaling-stroke !important;
  filter: drop-shadow(0px 0px 1.5px #000000) !important;
}

/* 🎨 INTERFACE COMPACTA (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 */
.cnefe-highlight-box {
  border-left: 4px solid #2563eb;
  background: #f8fafc;
}
.cnefe-main-title {
  font-size: 1.25rem;
  color: #1e40af;
  font-weight: 900;
  line-height: 1.1;
  margin: 1px 0 3px 0;
  word-break: break-word;
}

/* DESTAQUE 2: Ferramentas de Edição */
.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, #ef4444, 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;
}

/* Overpass e Copiar Nome ultra discretos */
.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: Seletores das Tags de Endereço */
.tag-selector-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 0;
}
.tag-radio-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  padding: 2px 4px;
  border-radius: 3px;
}
.tag-radio-label code {
  font-size: 0.7rem;
  color: #64748b;
  background: none;
  padding: 0;
}
.tag-radio-label input {
  margin: 0;
  transform: scale(0.85);
}
.help-circle-btn {
  background: #f1f5f9;
  color: #94a3b8;
  border: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

/* DESTAQUE 4: Caixa da Pergunta Final Intensa e Direta */
.final-validation-box {
  border: 1px solid #cbd5e1;
  background: #f0f7ff;
  border-radius: 6px;
  padding: 10px;
  margin-top: 2px;
}
.final-question-label {
  font-size: 0.85rem;
  color: #1e3a8a;
  font-weight: 800;
  line-height: 1.3;
  display: block;
  margin-bottom: 4px;
}

/* 🌟 EFEITO PINGO DE LUZ NA CAIXA DE TEXTO DO NOME */
.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, #ef4444, 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;
}
#final-osm-name:focus {
  background: #fff;
}

/* 🌟 EFEITO PINGO DE LUZ VERMELHO NO BOTÃO SALVAR */
.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, #ef4444, transparent, transparent);
  animation: rotateGlow 3s linear infinite;
  z-index: 1;
}

/* 🌊 EFEITO ONDA (PULSAR) PARA A PERGUNTA */
.pergunta-onda {
  position: relative;
  font-size: 0.9rem; 
  color: #1e3a8a; 
  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(30, 58, 138, 0.5);
  animation: efeitoOnda 2s cubic-bezier(0.25, 0, 0, 1) infinite;
  pointer-events: none;
}

@keyframes efeitoOnda {
  0% { box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.6); }
  100% { box-shadow: 0 0 0 12px rgba(30, 58, 138, 0); }
}

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

/* Modais Nativos */
.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);
}

/* Botão Flutuante de Ajuda do Walkthrough */
.btn-tour-help {
  background: #1e3a8a;
  color: #ffffff;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-tour-help:hover {
  background: #1e40af;
}

/* ─── ESTILO DO BALÃO DINÂMICO (GERADO VIA JS) ─── */
.js-custom-tooltip {
  position: absolute;
  transform: translateX(-50%); /* Centralização perfeita na mediana */
  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; /* Acima de absolutamente tudo na página */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

/* Pequena seta apontando para baixo integrada ao balão */
.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;
}


