body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #ffffff;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- NAVEGAÇÃO SUPERIOR --- */
header {
  background: #1a1a1a;
  padding: 12px 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-btn {
  text-decoration: none; /* Adicionado para suportar tag <a> */
  background: transparent;
  color: #fff;
  border: 2px solid transparent;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn.active {
  border: none;
  color: #00ff88;
}

.nav-btn:hover {
  color: #00ff88;
}

.nav-separator {
  color: #333;
  font-size: 18px;
  line-height: 1;
  align-self: center;
  user-select: none;
}

/* --- BANNER DE NEUTRALIDADE POLÍTICA --- */
.neutrality-banner {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-bottom: 2px solid #00ff88;
  padding: 10px 20px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
  line-height: 1.5;
}
.neutrality-banner strong {
  color: #00ff88;
}

/* --- CONTÊINER PRINCIPAL DAS TELAS --- */
#content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.view {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- TELA: PAINEL DE PESQUISAS (RESUMO) --- */
.painel-pesquisas {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
}
.filtros-container {
    display: flex;
    gap: 15px;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    flex-wrap: wrap;
}
.filtro-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filtro-group label {
    font-size: 13px;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}
.filtro-group select {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    cursor: pointer;
}
.filtro-group select:focus {
    border-color: #00ff88;
}
.grafico-card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border-top: 4px solid #00ff88;
}
.grafico-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
}
#grafico-titulo {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 22px;
}
.grafico-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #aaa;
}


/* --- TELA: ROLETA DE PRESIDENTES --- */
h1.view-title {
  color: #00ff88;
  margin-top: 0;
  text-align: center;
}

.swiper {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 50px;
}
.swiper-slide {
  background-color: #1e1e1e;
  border-radius: 15px;
  width: 300px;
  height: auto;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  opacity: 0.5;
  transform: scale(0.8);
  box-sizing: border-box;
  border: 2px solid transparent;
}
.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
  border: 2px solid #00ff88;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.foto-presidente {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid #333;
  background-color: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #888;
  text-align: center;
  overflow: hidden;
}

.nome {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin: 0;
}
.mandato {
  font-size: 14px;
  color: #aaa;
  margin-top: 5px;
  margin-bottom: 15px;
}

.dados-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 5px;
}
.dado-box {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dado-label {
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.dado-valor {
  font-weight: bold;
  font-size: 14px;
}
.dado-box.full .dado-valor {
  font-size: 16px;
}

.positivo {
  color: #00ff88;
}
.negativo {
  color: #ff4444;
}
.badge-atual {
  background: #00ff88;
  color: #000;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
  display: none;
}
.swiper-slide-active .badge-atual {
  display: block;
}

/* --- TELA: LISTA DE NOTÍCIAS --- */
.news-card {
  background: #1e1e1e;
  width: 100%;
  max-width: 650px;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s;
  border-left: 4px solid #333;
  box-sizing: border-box;
}
.news-card:hover {
  transform: translateY(-3px);
  border-left: 4px solid #00ff88;
  background: #252525;
}
.news-source-tag {
  display: inline-block;
  background: #333;
  color: #00ff88;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.news-card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  line-height: 1.3;
}
.news-card p {
  margin: 0;
  font-size: 13px;
  color: #aaa;
}
.news-card .news-excerpt {
  font-size: 14px;
  color: #bbb;
  margin-top: 10px;
  line-height: 1.5;
  border-top: 1px solid #333;
  padding-top: 10px;
}

/* --- TELA: DETALHE DA NOTÍCIA --- */
.news-detail-container {
  width: 100%;
  max-width: 800px;
  background: #1e1e1e;
  border-radius: 12px;
  padding: 25px;
  box-sizing: border-box;
}
.btn-voltar {
  background: #333;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-voltar:hover {
  background: #444;
}
.detail-title {
  margin-top: 0;
  font-size: 24px;
  color: #fff;
  line-height: 1.3;
}
.detail-meta {
  font-size: 14px;
  color: #aaa;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
  margin-bottom: 20px;
}
.detail-content {
  font-size: 16px;
  line-height: 1.7;
  color: #ccc;
}
.detail-content p {
  margin-bottom: 15px;
}
.detail-content h3 {
  color: #00ff88;
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 18px;
}
.neutrality-note {
  background: #1a2a1a;
  border: 1px solid #00ff8844;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 20px;
  line-height: 1.5;
}
.neutrality-note strong {
  color: #00ff88;
}

/* --- COMPONENTES DOS GRÁFICOS INJETADOS --- */
.chart-container {
  margin: 20px 0;
  padding: 18px;
  background: #2a2a2a;
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.chart-title {
  margin-top: 0;
  color: #00ff88;
  margin-bottom: 15px;
  font-size: 16px;
  border-bottom: 1px dashed #444;
  padding-bottom: 8px;
}
.chart-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.chart-label {
  width: 115px;
  font-size: 13px;
  color: #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.chart-bar-bg {
  flex: 1;
  background: #111;
  height: 16px;
  border-radius: 8px;
  margin: 0 10px;
  display: flex;
  overflow: hidden;
}
.chart-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 1s ease-out;
}
.chart-value {
  width: 50px;
  font-size: 13px;
  font-weight: bold;
  text-align: right;
  color: #fff;
  flex-shrink: 0;
}

/* --- TELA: SOBRE / PRIVACIDADE --- */
.static-page {
  width: 100%;
  max-width: 800px;
  background: #1e1e1e;
  border-radius: 12px;
  padding: 30px;
  box-sizing: border-box;
}
.static-page h2 {
  color: #00ff88;
  margin-top: 0;
  border-bottom: 1px solid #333;
  padding-bottom: 12px;
}
.static-page h3 {
  color: #ccc;
  margin-top: 25px;
  font-size: 17px;
}
.static-page p,
.static-page li {
  font-size: 15px;
  color: #bbb;
  line-height: 1.7;
}
.static-page ul {
  padding-left: 20px;
}
.static-page a {
  color: #00ff88;
  text-decoration: none;
}
.static-page a:hover {
  text-decoration: underline;
}
.static-page .highlight-box {
  background: #2a2a2a;
  border-left: 4px solid #00ff88;
  padding: 15px 18px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 15px;
  color: #ccc;
  line-height: 1.6;
}
.static-page .warning-box {
  background: #2a1a1a;
  border-left: 4px solid #ff6644;
  padding: 15px 18px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 15px;
  color: #ccc;
  line-height: 1.6;
}

/* --- TABELA DE ATRIBUIÇÃO DE IMAGENS --- */
.image-credits-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 13px;
}
.image-credits-table th {
  background: #2a2a2a;
  color: #00ff88;
  padding: 10px 8px;
  text-align: left;
  border-bottom: 2px solid #333;
}
.image-credits-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #2a2a2a;
  color: #bbb;
  vertical-align: top;
  line-height: 1.5;
}
.image-credits-table tr:nth-child(even) td {
  background: #1a1a1a;
}
.license-badge {
  display: inline-block;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #00ff88;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
}

/* --- RODAPÉ UNIFICADO --- */
footer {
  background: #151515;
  padding: 15px 15px 15px;
  font-size: 13px;
  color: #999;
  border-top: 2px solid #00ff88;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-container {
  max-width: 90%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.footer-section strong {
  color: #00ff88;
  font-size: 14px;
  margin-bottom: 5px;
  margin-right: 5px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom {
  width: 100%;
  max-width: 90%;
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 5px;
  font-size: 12px;
  color: #666;
}

footer a {
  color: #00ff88;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-container {
    text-align: center;
  }
}


/* --- COMPONENTES DOS ARTIGOS (Grid / Quadradinhos) --- */
.artigos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.artigo-card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border-top: 4px solid #333;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.artigo-card:hover {
    transform: translateY(-5px);
    border-top: 4px solid #00ff88;
    background: #252525;
}
.artigo-tag {
    display: inline-block;
    align-self: flex-start;
    background: #333;
    color: #00ff88;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.artigo-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #fff;
    line-height: 1.4;
}
.artigo-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}
.artigo-excerpt {
    font-size: 14px;
    color: #bbb;
    margin-top: auto;
    line-height: 1.5;
    border-top: 1px solid #333;
    padding-top: 15px;
}