:root {
  --azul-sindicom: #0078d7;
  --azul-escuro: #005fa3;
  --cinza-claro: #f4f4f4;
  --cinza-medio: #e9ecef;
  --amarelo-alerta: #ffcc00;
  --fonte-padrao: 'Segoe UI', sans-serif;
}

/* === BASE === */
body {
  margin: 0;
  padding: 0;
  font-family: var(--fonte-padrao);
  background-color: var(--cinza-claro);
  color: #333;
  box-sizing: border-box;
}

/* === WRAPPERS === */
#wrapper,
#wrapper1 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

#wrapper-top {
  background: url(../../sindicom/images/bar.png) repeat-x;
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#top {
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
}

.top-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.top-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.top-logo img {
  max-height: 60px;
  height: auto;
}

.top-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  flex: 1;
}

/* === MENU PRINCIPAL === */
.menu-principal {
  width: 100%;
  background-color: #004080;
  font-family: var(--fonte-padrao);
  overflow: visible;
}

.menu-toggle {
  display: none;
  background: var(--azul-sindicom);
  color: white;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  border: none;
  width: 100%;
}

#nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#nav li {
  position: relative;
}

#nav > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}

#nav li img {
  height: 20px;
  width: auto;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #e6f0ff;
  border: 1px solid #ccc;
  min-width: 250px;
  z-index: 1000;
}

.submenu li a {
  display: block;
  padding: 10px;
  color: #003366;
  text-decoration: none;
}

.submenu li a:hover {
  background-color: #cce0ff;
}

/* === BARRA SUPERIOR === */
.codrops-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  line-height: 24px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  z-index: 9999;
  position: relative;
  box-shadow: 1px 0px 2px rgba(0, 0, 0, 0.2);
  padding: 0.5rem 1rem;
  gap: 0.5rem;
}

.codrops-left,
.codrops-right {
  flex: 1 1 100%;
}

@media (min-width: 768px) {
  .codrops-left {
    flex: 1 1 auto;
  }

  .codrops-right {
    flex: 0 0 auto;
    text-align: right;
  }
}

/* === ÁREA DO ASSOCIADO === */
.area-associado,
.card-associado {
  max-width: 640px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  font-size: 1rem;
  line-height: 1.6;
}

.area-associado h1 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--azul-sindicom);
  text-align: center;
}

.card-associado {
  border-left: 4px solid var(--azul-sindicom);
  text-align: center;
}

/* === GRID DE DADOS === */
.grid-dupla {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 960px;
}

.coluna {
  flex: 1 1 45%;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
  min-width: 280px;
}

/* === PERFIL DO ASSOCIADO === */
.perfil-associado {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.foto-circular {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* === NOTIFICAÇÕES === */
.notificacoes,
.notificacoes-sistema {
  max-width: 960px;
  margin: 2rem auto;
  padding: 1rem;
  border-radius: 6px;
  background: #fff8e1;
  border-left: 4px solid var(--amarelo-alerta);
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
}

.notificacoes-sistema {
  background: var(--cinza-claro);
  border-left: 4px solid var(--azul-sindicom);
}

.notificacoes ul {
  list-style: none;
  padding-left: 0;
}

.notificacoes li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  overflow-wrap: break-word;
}

.notificacoes .data {
  color: #666;
  font-size: 0.85rem;
}

.notificacao-lida {
  background-color: var(--cinza-medio);
  color: #6c757d;
  text-decoration: line-through;
}
/* === RODAPÉ === */
#wrapper-footer-text {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
  color: #333;
}

#footer-text {
  width: 100%;
  text-align: center;
  line-height: 1.4;
}

.footer-logo img {
  max-height: 40px;
  margin-bottom: 0.5rem;
}

#footnav ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

#footnav ul li a {
  color: var(--azul-sindicom);
  text-decoration: none;
  font-weight: bold;
}

.footer-suporte {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #444;
}

#copyright {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #666;
}

.voltar-topo {
  margin-top: 1rem;
  text-align: center;
}

.voltar-topo .botaoPadrao {
  background-color: var(--azul-sindicom);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.voltar-topo .botaoPadrao:hover {
  background-color: var(--azul-escuro);
}

/* === RODAPÉ MÓVEL === */
#rodape-toggle {
  display: none;
  background-color: var(--azul-sindicom);
  color: white;
  text-align: center;
  padding: 0.5rem;
  cursor: pointer;
  font-weight: bold;
}

/* === POLÍTICA DE PRIVACIDADE === */
.politica-privacidade {
  max-width: 940px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.politica-privacidade h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--azul-sindicom);
  text-align: center;
}

.politica-privacidade h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  color: var(--azul-escuro);
}

.politica-privacidade ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.politica-privacidade ul li {
  margin-bottom: 0.5rem;
}

.politica-privacidade a {
  color: var(--azul-sindicom);
  text-decoration: underline;
}

/* === BOTÃO VOLTAR === */
.voltar-container {
  text-align: center;
  margin: 2rem 0;
}

.botao-voltar {
  background-color: var(--azul-sindicom);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.botao-voltar:hover {
  background-color: var(--azul-escuro);
}

/* === RESPONSIVO FINAL === */
@media (max-width: 768px) {
  .top-container {
    flex-direction: column;
    align-items: stretch;
  }

  .top-logo {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .menu-toggle {
    display: block;
    margin-top: 10px;
  }

  .top-menu {
    width: 100%;
  }

  #nav {
    flex-direction: column;
    display: none;
    background-color: #004080;
    width: 100%;
    position: relative;
    z-index: 999;
  }

  #nav.open {
    display: flex;
  }

  #nav li {
    width: 100%;
  }

  #nav > li > a {
    padding: 12px;
    border-bottom: 1px solid #003366;
    color: white;
    text-decoration: none;
  }

  .submenu {
    display: none;
    position: static;
    background-color: #f0f0f0;
    border: none;
    width: 100%;
  }

  .submenu li a {
    padding: 10px 20px;
    color: #003366;
    border-bottom: 1px solid #ccc;
    text-decoration: none;
  }

  .submenu li a:hover {
    background-color: #e0e0e0;
  }

  #wrapper-footer-text {
    display: none;
  }
}
/* === LOGIN RESPONSIVO === */
.grid-login {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem 1rem;
}

.coluna-login,
.coluna-institucional {
  flex: 1 1 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.formulario-login {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.input-group input {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.botao-voltar {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  background-color: var(--azul-sindicom);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.botao-voltar:hover {
  background-color: var(--azul-escuro);
}
/* === GRID DUPLA RESPONSIVO === */
.grid-dupla {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.coluna {
  flex: 1 1 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* === TABELAS RESPONSIVAS === */
.responsive-table {
  width: 100%;
  overflow-x: auto;
  display: block;
  box-sizing: border-box;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
  padding: 0.5rem;
  text-align: left;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .grid-dupla {
    flex-direction: column;
  }

  .coluna {
    width: 100%;
  }

  .responsive-table {
    overflow-x: auto;
  }
}

/* === LOGIN RESPONSIVO === */
.grid-login {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem 1rem;
}

.coluna-login,
.coluna-institucional {
  flex: 1 1 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.formulario-login {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 1.5rem;
  background: linear-gradient(to bottom right, #f9f9f9, #e0f7fa);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
  box-sizing: border-box;
}


.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.input-group input {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.botao-voltar {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  background-color: var(--azul-sindicom);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.botao-voltar:hover {
  background-color: var(--azul-escuro);
}

/* === GRID DUPLA RESPONSIVO === */
.grid-dupla {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.coluna {
  flex: 1 1 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* === TABELAS RESPONSIVAS === */
.responsive-table {
  width: 100%;
  overflow-x: auto;
  display: block;
  box-sizing: border-box;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
  padding: 0.5rem;
  text-align: left;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .grid-dupla {
    flex-direction: column;
  }

  .coluna {
    width: 100%;
  }

  .responsive-table {
    overflow-x: auto;
  }
}

 