/* app.css */
:root{
  --espe-red:   #e53935;   /* espe */
  --ctro-blue:  #1e88e5;   /* ctro */
  --b-green:    #43a047;   /* B */
  --r-yellow:   #fbc02d;   /* R */

  --bg-soft:    #f7f9fc;
  --card-glass: rgba(255,255,255,.85);
  --text-muted: #6b7280;
}

body{
  background: var(--bg-soft);
}

.card-glass{
  background: var(--card-glass);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.small-muted{ color: var(--text-muted); }

.brand-link{
  text-decoration:none;
  color:inherit;
}

.brand-link:hover{
  opacity:.9;
}

/* ======================================================
   LOGO
====================================================== */
.brand {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.logo-espe { color: var(--espe-red); }
.logo-ctro { color: var(--ctro-blue); }
.logo-b    { color: var(--b-green); }
.logo-r    { color: var(--r-yellow); }

/* ======================================================
   CARDS
====================================================== */
.card-glass {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

/* ======================================================
   TEXTO
====================================================== */
.small-muted {
  color: var(--text-muted);
}

/* ======================================================
   FORMULÁRIOS
====================================================== */
.form-label {
  font-weight: 600;
  color: #374151;
}

.form-control,
.form-select {
  background-color: #ffffff;
  border: 1px solid #cfd6df;
  color: var(--text-main);
}

.form-control::placeholder {
  color: #9ca3af;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.15rem rgba(25,118,210,.2);
}

/* ======================================================
   BOTÕES
====================================================== */
.btn-buscar{
  background:#1e88e5;
  color:#fff;
  font-weight:600;
  border:none;
  padding:10px 18px;
  border-radius:8px;
  transition:all .2s ease;
}

.btn-buscar:hover{
  background:#1565c0;
  transform:translateY(-1px);
}

/* ======================================================
   TABELA
====================================================== */
.table {
  color: var(--text-main);
}

.table thead th {
  background-color: #f1f4f8;
  border-bottom: 1px solid var(--border-soft);
  color: #374151;
}

.table tbody td {
  border-color: #e5e7eb;
}

.table-hover tbody tr:hover {
  background-color: #f9fafb;
}

.table-active {
  background-color: #e3f2fd !important;
}


/* ======================================================
   LINKS
====================================================== */
a.link-entity {
  color: var(--primary);
  text-decoration: none;
}

.link-entity{
  color:inherit;
  text-decoration:none;
}

.link-entity:hover{
  text-decoration:underline;
}

/* ======================================================
   MAPA
====================================================== */
.map-container{
  position: relative;
  width: 100%;
  height: 420px; /* ESSENCIAL */
}

@media (max-width:768px){
  .map-container{
    height:300px;
  }
}

/* ===============================
   LEGENDA DO MAPA
=============================== */
.map-legend{
  position:absolute;
  bottom:14px;
  left:14px;

  background:rgba(255,255,255,.95);
  backdrop-filter: blur(2px);

  border-radius:8px;
  padding:6px 10px;

  font-size:12px;
  line-height:1;

  box-shadow:0 4px 12px rgba(0,0,0,.15);
  display:flex;
  gap:12px;

  z-index:500; /* acima do mapa, abaixo dos controles Leaflet */
  pointer-events:none; /* não bloqueia zoom/drag */
}

.map-legend span{
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

.map-legend .dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
}

.map-legend .fm{ background:#1e88e5; } /* azul FM */
.map-legend .tv{ background:#e53935; } /* vermelho TV */

.titulo-servico{
  font-size:.9rem;
  font-weight:700;
  color:#374151;
  margin-bottom:.25rem;
}

.resultado-item{
  padding:4px 0;
}

.resultado-item a{
  text-decoration:none;
  font-weight:500;
}

.resultado-item a:hover{
  text-decoration:underline;
}
.resultado-vago{
  padding:6px 8px;
  border-left:4px solid #f9a825; /* amarelo regulatório */
  background:#fff8e1;
  border-radius:6px;
}

.resultado-vago strong{
  color:#f57f17;
  font-size:0.9rem;
  letter-spacing:.3px;
}
.entidade-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.link-entity {
  font-weight: 600;
  color: #0d6efd;
  text-decoration: none;
  position: relative;
}

.link-entity:hover {
  text-decoration: underline;
}

.seta-curva {
  margin-left: 2px;
  animation: moveSeta 1.2s infinite;
}

.hint-link {
  font-size: 12px;
  color: #ff6a00;
  font-weight: 600;
  white-space: nowrap;
  animation: piscaTexto 1.2s infinite;
}

/* animação suave */
@keyframes moveSeta {
  0%   { transform: scaleX(-1) translateX(0); opacity: 0.5; }
  50%  { transform: scaleX(-1) translateX(-3px); opacity: 1; }
  100% { transform: scaleX(-1) translateX(0); opacity: 0.5; }
}

@keyframes piscaTexto {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}
.detalhes-tecnicos {
  font-size: 14px;
  line-height: 1.5;
}

.detalhes-tecnicos hr {
  margin: 6px 0;
}
.linha-detalhe {
  cursor: pointer;
}

.linha-detalhe:hover {
  background: #f3f6fa;
}
.header-public {
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 1rem;
}

.card-glass {
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  border: 1px solid #e6e6e6;
}

.card-header {
  font-size: 0.9rem;
  color: #555;
  border-bottom: 1px solid #eee;
  padding: 0.6rem 1rem;
  background: #fafafa;
  border-radius: 12px 12px 0 0;
}

.lead {
  font-size: 1.05rem;
  color: #666;
}

table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #777;
}
#status {
  font-size: 0.85rem;
  color: #666;
}

.linha-detalhe:hover {
  background: #f4f6f9;
}
.service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: all .15s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

.service-icon {
  font-size: 1.8rem;
  width: 42px;
  text-align: center;
}

.service-body h3 {
  font-size: .95rem;
  margin: 0;
  font-weight: 600;
}

.service-body p {
  font-size: .8rem;
  margin: 0;
  color: #666;
}

.service-card.disabled {
  cursor: not-allowed;
  background: #f7f7f7;
}
/* ==========================
   HEADER PADRÃO ESPECTROBR
   (igual páginas antigas)
========================== */

.brand-link {
  text-decoration: none;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.2;
}
/* ======================================================
   HEADER PADRÃO ESPECTROBR (OFICIAL)
   – idêntico às páginas antigas
====================================================== */

header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 1rem;
}

.brand {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1;
  margin: 0;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand-link:hover {
  opacity: .9;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.2;
}
body {
  background: var(--bg-soft);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: #111827;
}
/* ==========================
   LAYOUT DE PÁGINA (PORTAL)
========================== */
.page-flex {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-flex > .container-fluid {
  flex: 1;
}

footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}
.breadcrumb {
  font-size: .9rem;
  opacity: .8;
  margin-bottom: 10px;
}
.breadcrumb a {
  text-decoration: none;
}

#cardContato {
  transition: all .25s ease;
}

#cardContato.border-success {
  box-shadow: 0 0 0 2px rgba(40,167,69,.25);
  transform: scale(1.01);
}

/* ======================================================
   FORMULÁRIO CONTATO – PADRÃO BONITO (ENTERPRISE)
====================================================== */

.contato-form .field {
  margin-bottom: 28px;
}

/* labels */
.contato-form label {
  font-size: .9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

/* inputs e textarea */
.contato-form input,
.contato-form textarea {
  width: 100%;
  height: 48px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #cfcfcf;
  background: #f2f2f2;
  font-size: .95rem;
  transition: all .15s ease;
}

/* textarea maior */
.contato-form textarea {
  height: 140px;
  resize: vertical;
}

/* foco elegante */
.contato-form input:focus,
.contato-form textarea:focus {
  outline: none;
  border-color: #1e88e5;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(30,136,229,.15);
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr;   /* SEMPRE uma coluna */
  gap: 28px;
  margin-bottom: 28px;
}
/* desktop com 2 colunas */
@media (min-width: 900px) {
  .row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* checkbox alinhado */
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

/* checkbox visual */
.checkbox-line input {
  width: 16px;
  height: 16px;
}

/* ações */
.form-actions {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  align-items: center;
}

/* botão */
.form-actions button {
  height: 44px;
  padding: 0 28px;
  border-radius: 6px;
  background: #1e88e5;
  color: #fff;
  border: none;
  font-weight: 600;
}

/* link secundário */
.form-actions .voltar {
  font-size: .9rem;
  color: #555;
  text-decoration: none;
}

.form-actions .voltar:hover {
  text-decoration: underline;
}
/* ======================================================
   CONTATO – ALTURA DOS CAMPOS (AJUSTE FINO)
====================================================== */

.contato-form input,
.contato-form textarea {
  height: 36px;        /* antes: ~48px */
  padding: 6px 10px;   /* metade do padding */
  font-size: .9rem;
}

.contato-form textarea {
  height: 90px;        /* antes: ~140px */
}
.contato-form .field {
  max-width: 100%;
}
/* ======================================================
   CONTATO – RESPIRO LATERAL DO CONTEÚDO
====================================================== */

.contato-card {
  padding-left: 48px;
  padding-right: 48px;
}

@media (max-width: 768px) {
  .contato-card {
    padding-left: 24px;
    padding-right: 24px;
  }
}
/* ======================================================
   CONTATO – BOTÕES COM RESPIRO INFERIOR
====================================================== */

.form-actions {
  margin-top: 32px;
  margin-bottom: 24px; /* sobe o botão visualmente */
}
