/* ════════════════════════════════════════════
   GOV BAR
════════════════════════════════════════════ */
.gov-bar {
  background: var(--c-brand-dk);
  color: rgba(255,255,255,.72);
  font-size: var(--text-xs);
  letter-spacing: .03em;
  padding: var(--sp-2) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.gov-bar a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-weight: 700;
}
.gov-bar a:hover { text-decoration: underline; }


/* ════════════════════════════════════════════
   TOPBAR
════════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-brand);
  color: var(--c-white);
  height: 60px;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.topbar.admin { background: var(--c-brand-dk); }

.topbar-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.topbar-brand-logo {
  width: 36px;
  height: 36px;
  background: var(--c-white);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--c-brand);
  line-height: 1;
  flex-shrink: 0;
}
.topbar-brand-text { line-height: 1.2; }
.topbar-brand-name {
  font-size: var(--text-base);
  font-weight: 800;
  letter-spacing: -.01em;
}
.topbar-brand-sub {
  font-size: var(--text-xs);
  opacity: .65;
  font-weight: 400;
  letter-spacing: .02em;
}

.topbar-spacer { flex: 1; }

.topbar-user {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.95);
  color: var(--c-brand);
  font-size: var(--text-sm);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.25);
  flex-shrink: 0;
}
.user-name {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.82);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 480px) { .user-name { display: none; } }

.admin-badge {
  background: rgba(255,255,255,.16);
  color: var(--c-white);
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 3px var(--sp-2);
  border-radius: var(--r-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── Botão Sair ── */
.btn-sair {
  min-height: 36px;
  padding: 0 var(--sp-3);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.85);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .03em;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast);
  flex-shrink: 0;
}
.btn-sair:hover { background: rgba(255,255,255,.2); color: var(--c-white); }


