/* ══════════════════════════════
   nav.css — Navegação global: navbar, sidebar, footer
   Inclua em TODOS os HTMLs junto com style.css
   Altere aqui → atualiza todas as páginas automaticamente
══════════════════════════════ */

/* ══════════════════════════════
NAVBAR
══════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 64px;
  background: var(--branco);
  border-bottom: 3px solid var(--verde-sushi);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-logo {
  width: 36px;
  height: 36px;
  background: var(--verde-sicredi);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-logo svg {
  width: 22px;
  height: 22px;
  fill: var(--branco);
}

.navbar-title {
  font-family: var(--font-principal);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
}

.navbar-title span {
  display: block;
  font-family: var(--font-secundaria);
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-muted);
}

.navbar-nav {
  display: flex;
  gap: 4px;
  list-style: none;
}

.navbar-nav a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-secundaria);
  font-size: .83rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: var(--verde-light);
  color: var(--verde-sicredi);
}

/* ══════════════════════════════
SIDEBAR (usada em radar.html)
══════════════════════════════ */
.sidebar {
  position: fixed;
  top: 64px; left: 0; bottom: 38px;
  width: 240px;
  background: var(--branco);
  border-right: 1px solid var(--border-light);
  padding: 14px 12px;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }

.sb-title {
  font-family: var(--font-principal);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-placeholder);
  margin-bottom: 2px;
}

.sb-search {
  width: 100%;
  padding: 7px 10px 7px 30px;
  border-radius: 8px;
  border: 1px solid var(--border-mid);
  background: var(--bg-input);
  font-family: var(--font-secundaria);
  font-size: .8rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s ease;
}

.sb-search:focus { border-color: var(--verde-sicredi); }
.sb-search::placeholder { color: var(--text-placeholder); }

.sb-search-wrap { position: relative; }
.sb-search-wrap svg {
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  color: var(--text-placeholder);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.sb-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sb-counter {
  font-family: var(--font-secundaria);
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
}

#btnResetFiltro {
  background: var(--bg-input);
  border-radius: 6px;
  border: 1px solid var(--border-mid);
  width: 24px;
  height: 24px;
  font-size: .78rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
  flex-shrink: 0;
}

#btnResetFiltro:hover {
  background: var(--verde-light);
  color: var(--verde-sicredi);
  border-color: var(--verde-sicredi);
}

/* ══════════════════════════════
FOOTER
══════════════════════════════ */
footer {
  background: var(--verde-county);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 28px 32px;
  font-family: var(--font-secundaria);
  font-size: .78rem;
  line-height: 1.7;
}

footer strong { color: var(--verde-sushi); }

/* ══════════════════════════════
RESPONSIVO
══════════════════════════════ */
@media (max-width: 720px) {
  .navbar { padding: 0 16px; }
  .navbar-nav { display: none; }
}