/* ---
ARQUIVO CSS CENTRAL - style.css
--- */

/* --- ESTILOS GERAIS (COMUNS) --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #d1d1d1; /* CINZA DE FUNDO */
}

.page-container {
  overflow: hidden;
  background-color: #386641; /* VERDE PADRÃO */
}

main {
  background-color: #fff; /* FUNDO BRANCO PRINCIPAL */
  border-radius: 25px 25px 0 0;
  padding: 40px 50px;
}

@media (max-width: 768px) {
    main {
        padding: 30px 25px;
    }
}
@media (max-width: 576px) {
    main {
        padding: 20px 15px;
    }
}


/* --- NAVBAR (PADRÃO BOOTSTRAP) --- */
.navbar-custom {
  background: transparent;
  padding: 1rem 2.5rem;
}

.navbar-custom .nav-link,
.navbar-custom .navbar-brand {
  color: #fff !important; /* TEXTO BRANCO */
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.navbar-custom .navbar-brand img {
   width: 45px;
   height: 45px;
   border-radius: 50%;
   /*background-color: #fff; /* FUNDO BRANCO */
}

.navbar-custom .nav-link.active {
  border-bottom: 2px solid white; /* BRANCO */
  padding-bottom: 3px;
}

.navbar-custom .nav-link:hover {
  opacity: 0.9;
}

.profile-link {
  display: flex;
  align-items: center;
  background-color: #fff; /* FUNDO BRANCO */
  color: #386641; /* VERDE PADRÃO */
  border-radius: 30px;
  padding: 5px 15px 5px 10px;
  text-decoration: none;
  transition: background-color 0.3s;
  font-size: 0.95rem;
}

.profile-link:hover {
    background-color: #E7E7E4; /* CINZA CLARO PADRÃO */
}

.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 10px;
  background-color: #ccc; /* CINZA PLACEHOLDER */
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
  .navbar-custom {
    padding: 1rem 1.5rem;
  }
  .navbar-collapse {
    margin-top: 15px;
  }
  .profile-link {
    margin-top: 10px;
    display: inline-flex;
    width: auto;
    justify-content: center;
  }
}

/* --- BOTÃO DE AJUDA FLUTUANTE --- */
.help-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #386641; /* VERDE PADRÃO */
  color: white; /* TEXTO BRANCO */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 100;
  text-decoration: none;
}

.help-btn:hover {
  background-color: #2a4b30; /* VERDE MAIS ESCURO */
  color: white; /* TEXTO BRANCO */
}

@media (max-width: 768px) {
  .help-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* ---
ESTILOS DA PÁGINA INICIAL (tela_inicial.html)
--- */
.noticias {
  background-color: #386641; /* VERDE PADRÃO */
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}
.noticias h3 {
  color: white; /* TEXTO BRANCO */
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.noticias h3 i { font-size: 1.2rem; }
.noticia-card {
  background-color: #e7e7e4; /* CINZA CLARO PADRÃO */
  border-radius: 10px;
  padding: 15px;
  color: #386641; /* VERDE PADRÃO */
  font-size: 0.95rem;
  line-height: 1.4rem;
}
.card-home {
  background-color: #386641; /* VERDE PADRÃO */
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  color: white; /* TEXTO BRANCO */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  height: 100%;
}
.card-home img {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  background-color: #ccc; /* CINZA PLACEHOLDER */
  margin-bottom: 15px;
  object-fit: cover;
}
.card-home p {
  font-size: 0.9rem;
  line-height: 1.4rem;
  color: #e7e7e4; /* CINZA CLARO PADRÃO */
  margin-bottom: 10px;
}
.card-home button {
  margin-top: 10px;
  background-color: #e7e7e4; /* CINZA CLARO PADRÃO */
  color: #386641; /* VERDE PADRÃO */
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-home button:hover { background-color: #dcdcd8; /* CINZA MAIS ESCURO */ }
.eventos {
  background-color: #386641; /* VERDE PADRÃO */
  border-radius: 15px;
  padding: 20px;
  color: white; /* TEXTO BRANCO */
  height: 100%;
}
.eventos h3 {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eventos h3 i { font-size: 1.2rem; }
.eventos-lista {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.evento {
  background-color: white; /* FUNDO BRANCO */
  color: #386641; /* VERDE PADRÃO */
  border-radius: 15px;
  width: 110px;
  min-height: 100px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center;
  font-size: 0.85rem;
  word-wrap: break-word;
  line-height: 1.2rem;
}
.mapa {
  background-color: #386641; /* VERDE PADRÃO */
  border-radius: 15px;
  padding: 15px;
  color: white; /* TEXTO BRANCO */
  height: 100%;
}
.mapa h3 {
  font-weight: 600;
  margin-bottom: 10px;
}
.mapa iframe {
  width: 100%;
  height: 280px;
  border-radius: 10px;
  border: none;
}
@media (max-width: 991px) { .mapa iframe { height: 250px; } }
@media (max-width: 768px) { .eventos-lista { justify-content: center; } }


/* ---
ESTILOS DA CENTRAL DE AJUDA (central_de_ajuda.html)
--- */
main h1 {
  color: #386641; /* VERDE PADRÃO */
  font-weight: 600;
  margin-bottom: 30px;
}
.search-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto 50px auto;
}
.search-container input {
  border-radius: 30px;
  padding: 15px 160px 15px 25px;
  border: 1px solid #ccc; /* BORDA CINZA */
  font-size: 1rem;
  background-color: #f2f2f2; /* CINZA INPUT */
}
.search-container button {
  position: absolute;
  right: 7px;
  top: 7px;
  bottom: 7px;
  border-radius: 25px;
  background-color: #386641; /* VERDE PADRÃO */
  color: #fff; /* TEXTO BRANCO */
  border: none;
  padding: 0 30px;
  transition: background-color 0.3s;
}
.search-container button:hover { background-color: #2a4b30; /* VERDE MAIS ESCURO */ }
.faq-section h5 {
  color: #386641; /* VERDE PADRÃO */
  font-weight: 600;
  margin-bottom: 30px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
  margin-bottom: 70px;
  justify-items: center;
}
.faq-card {
  background-color: #E7E7E4; /* CINZA CLARO PADRÃO */
  border-left: 6px solid #386641; /* VERDE PADRÃO */
  border-radius: 15px;
  padding: 25px 25px;
  width: 90%;
  max-width: 350px;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.faq-card p {
  margin: 0;
  font-weight: 500;
  color: #000; /* TEXTO PRETO */
  text-align: left;
  font-size: 1.05rem;
}
.faq-card i {
  font-size: 1.8rem;
  color: #386641; /* VERDE PADRÃO */
}
.contact-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}
.contact-card {
  background-color: #386641; /* VERDE PADRÃO */
  color: #fff; /* TEXTO BRANCO */
  border-radius: 20px;
  padding: 35px;
  text-align: center;
  width: 300px;
  transition: all 0.2s;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.contact-card i {
  font-size: 3rem;
  margin-bottom: 15px;
}
.contact-card h3 {
  font-weight: 600;
  margin: 10px 0;
  color: #fff; /* TEXTO BRANCO */
}
.contact-card p {
  margin: 4px 0;
  font-size: 1rem;
  color: #E7E7E4; /* CINZA CLARO PADRÃO */
}


/* ---
ESTILOS DA PÁGINA DO FÓRUM (forum.html)
--- */
.forum-left-sidebar {
    background-color: #386641; /* VERDE PADRÃO */
    color: #fff; /* TEXTO BRANCO */
    border-radius: 15px;
    padding: 20px;
    height: 100%;
}
.forum-left-sidebar .sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
    color: #fff; /* TEXTO BRANCO */
    opacity: 0.8;
    transition: opacity 0.2s;
    font-size: 1.1rem;
}
.forum-left-sidebar .sidebar-link:hover { opacity: 1; }
.forum-left-sidebar .sidebar-link.active { opacity: 1; font-weight: 600; }
.notification-badge {
    background-color: #FFD700; /* AMARELO (do design original do fórum) */
    color: #386641; /* VERDE PADRÃO */
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}
.new-post-btn { color: #386641 !important; /* VERDE PADRÃO */ font-size: 1rem; }
.forum-right-sidebar {
    background-color: #fff; /* FUNDO BRANCO */
    border: 1px solid #dee2e6; /* BORDA CINZA BOOTSTRAP */
    border-radius: 15px;
    padding: 20px;
    height: 100%;
    font-size: 0.95rem;
}
.sidebar-title {
    color: #386641; /* VERDE PADRÃO */
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.form-check-input:checked {
    background-color: #386641; /* VERDE PADRÃO */
    border-color: #386641; /* VERDE PADRÃO */
}
.search-container .forum-search {
    background-color: #f2f2f2; /* CINZA INPUT */
    border: 1px solid #ccc; /* BORDA CINZA */
    border-radius: 30px;
    padding-left: 45px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.search-container .search-icon-forum {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #386641; /* VERDE PADRÃO */
    font-size: 1.2rem;
}
.forum-post-card {
    border: 1px solid #dee2e6; /* BORDA CINZA BOOTSTRAP */
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
}
.post-header {
    background-color: #386641; /* VERDE PADRÃO */
    color: #fff; /* TEXTO BRANCO */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.post-author { font-size: 1.1rem; font-weight: 600; margin: 0; }
.contact-avatar {
    border: 2px solid #fff; /* BORDA BRANCA */
    background-color: #fff; /* FUNDO BRANCO */
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.contact-avatar-sm {
    border: 2px solid #386641; /* VERDE PADRÃO */
    background-color: #fff; /* FUNDO BRANCO */
    border-radius: 50%;
    width: 32px;
    height: 32px;
}
.post-body { padding: 20px; color: #333; /* TEXTO ESCURO */ }
.post-footer {
    background-color: #386641; /* VERDE PADRÃO */
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.post-action-btn {
    background-color: #e7e7e4; /* CINZA CLARO PADRÃO */
    color: #386641; /* VERDE PADRÃO */
    border: none;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}
.post-action-btn:hover { background-color: #dcdcd8; /* CINZA MAIS ESCURO */ }
.comments-section {
    padding: 20px;
    background-color: #fff; /* FUNDO BRANCO */
    border-top: 1px solid #eee; /* BORDA CINZA CLARO */
}
.new-comment-btn {
    background-color: #e7e7e4; /* CINZA CLARO PADRÃO */
    color: #386641; /* VERDE PADRÃO */
    font-weight: 500;
    border-radius: 20px;
}
.new-comment-btn:hover { background-color: #dcdcd8; /* CINZA MAIS ESCURO */ }
.single-comment {
    background-color: #e7e7e4; /* CINZA CLARO PADRÃO */
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.post-options-container { position: relative; }
.comment-options-toggle { display: none; }
.post-options-label-white { color: rgba(255,255,255,0.7); cursor: pointer; padding: 5px; }
.post-options-label-white:hover { color: #fff; /* BRANCO */ }
.post-options-label-gray { color: #6c757d; /* CINZA BOOTSTRAP */ cursor: pointer; padding: 5px; }
.post-options-label-gray:hover { color: #000; /* PRETO */ }
.comment-options-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background-color: #fff; /* FUNDO BRANCO */
    border: 1px solid #ccc; /* BORDA CINZA */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 10;
    min-width: 160px;
    padding: 8px;
}
.comment-options-toggle:checked ~ .comment-options-menu { display: block; }
.comment-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    color: #333; /* TEXTO ESCURO */
    font-size: 0.95rem;
    border-radius: 6px;
}
.comment-option-item:hover { background-color: #f1f1f1; /* CINZA HOVER */ }
.comment-option-item i { font-size: 1.1rem; }
.comment-options-menu::after {
    content: ''; position: absolute; top: -11px; right: 14px; width: 0; height: 0;
    border-left: 11px solid transparent; border-right: 11px solid transparent;
    border-bottom: 12px solid #ccc; /* BORDA CINZA */ z-index: 10;
}
.comment-options-menu::before {
    content: ''; position: absolute; top: -10px; right: 15px; width: 0; height: 0;
    border-left: 10px solid transparent; border-right: 10px solid transparent;
    border-bottom: 10px solid #FFFFFF; /* FUNDO BRANCO */ z-index: 20;
}


/* ---
ESTILOS DA PÁGINA DE MATERIAIS (materiais.html) - ATUALIZADO
--- */

/* Título Geral da Seção */
.section-title {
    color: #386641; /* VERDE PADRÃO */
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee; /* BORDA CINZA CLARO */
}

/* Painel de Filtro */
.filter-panel {
    border-radius: 15px;
    background-color: #f8f9fa; /* CINZA CLARO BOOTSTRAP */
    border: 1px solid #dee2e6; /* BORDA CINZA BOOTSTRAP */
}
.filter-title {
    color: #386641; /* VERDE PADRÃO */
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.filter-panel .form-label {
    font-weight: 500;
    color: #555; /* CINZA ESCURO */
    font-size: 0.9rem;
}
.filter-btn {
    background-color: #386641 !important; /* VERDE PADRÃO */
    border-color: #386641 !important; /* VERDE PADRÃO */
    font-weight: 500;
}
.filter-btn:hover {
    background-color: #2a4b30 !important; /* VERDE MAIS ESCURO */
    border-color: #2a4b30 !important; /* VERDE MAIS ESCURO */
}

/* Painel de Pesquisa */
.search-panel-material {
    border-radius: 15px;
    background-color: #f8f9fa; /* CINZA CLARO BOOTSTRAP */
    border: 1px solid #dee2e6; /* BORDA CINZA BOOTSTRAP */
}
.search-title {
     color: #386641; /* VERDE PADRÃO */
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.search-form-material { position: relative; }
.search-input-material {
    border-radius: 30px;
    padding-right: 60px;
    background-color: #fff; /* FUNDO BRANCO */
    border: 1px solid #ccc; /* BORDA CINZA */
}
.btn-search-material {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    border-radius: 25px;
    background-color: #386641; /* VERDE PADRÃO */
    color: #fff; /* TEXTO BRANCO */
    border: none;
    padding: 0 20px;
    transition: background-color 0.3s;
}
.btn-search-material:hover { background-color: #2a4b30; /* VERDE MAIS ESCURO */ }

/* Seção e Grupos de Materiais */
.material-group .card-header {
    background-color: #386641; /* VERDE PADRÃO */
    color: white; /* TEXTO BRANCO */
    font-weight: 600;
}
.material-group .card-header h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.material-item h5 {
    color: #386641; /* VERDE PADRÃO */
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.material-subitem {
    padding: 10px 0 10px 25px;
    border-top: 1px solid #eee; /* BORDA CINZA CLARO */
    font-size: 0.95rem;
}
.material-subitem:first-of-type { border-top: none; padding-top: 5px; }

/* Botão Acessar */
.access-button {
    background-color: #e7e7e4; /* CINZA CLARO PADRÃO */
    color: #386641; /* VERDE PADRÃO */
    border: 1px solid #dcdcd8; /* BORDA CINZA MAIS ESCURO */
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.access-button:hover {
    background-color: #dcdcd8; /* CINZA MAIS ESCURO */
    color: #386641; /* VERDE PADRÃO */
}

/* Customização para checkboxes */
.form-check-input.custom-checkbox:checked {
  background-color: #386641; /* VERDE PADRÃO */
  border-color: #386641; /* VERDE PADRÃO */
}

/* Esconder elementos apenas para leitores de tela */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---
============================================================
ESTILOS ADICIONAIS PARA A PÁGINA DE PERFIL (tela_perfil.html)
============================================================
--- */

/* 1. CORREÇÃO DA NAVBAR "CORTADA" */
/* Removendo as margens negativas que puxavam o conteúdo para cima */
.profile-header-container {
  position: relative;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background-color: #FFFFFF;
  margin-bottom: 25px; 
  /* As margens negativas (margin-top, margin-left, margin-right) 
    foram REMOVIDAS daqui para parar de cobrir a navbar.
  */
}

/* Como removemos as margens negativas, o banner não encosta mais
   nas laterais. Adicionamos este @media query para o banner
   voltar a encostar nas laterais apenas no mobile, onde faz sentido.
*/
@media (max-width: 768px) {
  .profile-header-container {
    margin-top: -30px;
    margin-left: -25px;
    margin-right: -25px;
  }
}
@media (max-width: 576px) {
  .profile-header-container {
    margin-top: -20px;
    margin-left: -15px;
    margin-right: -15px;
  }
}

/* 2. CORREÇÃO DO "QUADRADO AZUL" */
/* Remove o anel de foco (outline/box-shadow) das abas */
.profile-tabs .nav-link:focus,
.profile-tabs .nav-link.active:focus {
  outline: none;
  box-shadow: none; /* Bootstrap 5 usa box-shadow para o foco */
}

/* Banner Verde (no topo) */
.profile-banner {
  height: 250px; 
  background-color: #386641; /* Cor da Paleta */
  background-size: cover;
  background-position: center;
  border-radius: 15px 15px 0 0;
}

/* Barra Branca de Informações */
.profile-info-bar {
  background-color: #FFFFFF;
  padding: 20px 30px;
  border-radius: 0 0 15px 15px;
  position: relative;
  min-height: 160px; 
}

/* Foto de Perfil (Sobreposta) */
.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid #FFFFFF; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background-color: #00000000; /* Cor da Paleta */
  position: absolute;
  top: -75px;  
  left: 30px;
  object-fit: cover;
}

/* Botões de Ação (Editar, ...) */
.profile-actions {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

/* Botão "EDITAR PERFIL" customizado (Fiel ao design) */
.btn-edit-profile {
  border: 2px solid #386641; 
  color: #386641; 
  background-color: #FFFFFF; 
  font-weight: 600;
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.btn-edit-profile:hover {
  background-color: #386641; 
  color: #FFFFFF; 
}

/* Botão "..." customizado */
.btn-icon {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-color: #E7E7E4; /* Cor da Paleta */
  color: #000000; /* Cor da Paleta */
  border: 1px solid #D1D1D1; /* Cor da Paleta */
}
.btn-icon:hover {
  background-color: #d1d1d1;
}
.btn-icon-sm { /* Versão menor para cards */
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

/* Detalhes do Usuário (Nome, Bio, Curso) */
.profile-user-details {
  padding-left: 170px; 
  padding-top: 15px; 
}

/* Responsivo para detalhes do usuário */
@media (max-width: 768px) {
  .profile-header-container {
    /* Ajusta as margens negativas para o padding menor do <main> */
    margin-top: -30px;
    margin-left: -25px;
    margin-right: -25px;
  }
  .profile-info-bar {
    min-height: auto;
  }
  .profile-user-details {
    padding-left: 0;
    margin-top: 85px; 
  }
}
@media (max-width: 576px) {
  .profile-header-container {
    margin-top: -20px;
    margin-left: -15px;
    margin-right: -15px;
  }
}


/* Conteúdo Principal (Abas) */
.profile-content {
  background-color: #E7E7E4; /* Cor da Paleta */
  border-radius: 15px;
  padding: 1px 20px 20px 20px; 
}

/* Estilo das Abas de Navegação (Fiel ao Design) */
.profile-tabs {
  border-bottom: 1px solid #D1D1D1; /* Cor da Paleta */
  margin: 20px 0;
}

.profile-tabs .nav-link {
  color: #6c757d; 
  font-weight: 600;
  border: none;
  border-bottom: 4px solid transparent;
  padding-bottom: 15px;
}

.profile-tabs .nav-link.active {
  color: #000000; /* Cor da Paleta */
  border-bottom: 4px solid #386641; 
  background-color: transparent;
}

.profile-tabs .nav-link:hover {
  color: #000000; 
}

/* Card de Postagem (dentro da aba) */
.post-card-profile {
  background-color: #FFFFFF; /* Cor da Paleta */
  border: 1px solid #D1D1D1; 
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden; 
}

.post-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
}

.post-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.post-card-info {
  line-height: 1.2;
}

.post-card-body {
  padding: 0 20px 15px 20px;
}

.post-card-title {
  font-weight: 600;
  color: #386641; 
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.post-card-footer {
  background-color: #FFFFFF; 
  border-top: 1px solid #E7E7E4; 
  padding: 10px 20px;
  display: flex;
  gap: 25px;
}

.post-interaction-btn {
  color: #386641; 
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}
.post-interaction-btn:hover {
  color: #2a4b30; 
}

/* ---
============================================================
ESTILOS ADICIONAIS PARA A PÁGINA DE DENÚNCIAS (tela_denuncias.html)
============================================================
--- */

/* Usamos .denuncia-page para garantir que estes estilos
   só afetem a página de denúncias */

/* Layout e Títulos */
.denuncia-page .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.denuncia-page .title {
  color: #386641; /* VERDE PADRÃO */
  font-weight: 700;
  font-size: 2rem;
  margin: 0;
}
.denuncia-page .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Cards de Estatística */
.denuncia-page .stats-container {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.denuncia-page .stat-card {
  background-color: #386641; /* VERDE PADRÃO */
  color: #fff;
  padding: 32px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  flex: 1;
  min-width: 200px;
}
.denuncia-page .stat-number {
  background-color: #fff;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #386641; /* VERDE PADRÃO */
  font-size: 34px;
  font-weight: 800; /* Mais forte */
  margin-bottom: 12px;
}
.denuncia-page .stat-sub {
  font-weight: 600; /* Um pouco mais leve */
  text-align: center;
}

/* Formulário de Denúncia */
.denuncia-page .form-section {
  margin-top: 25px;
}
.denuncia-page .form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #386641; /* VERDE PADRÃO */
  margin-bottom: 15px;
}
.denuncia-page .form-fields-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.denuncia-page .form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: -5px;
}
.denuncia-page .form-field {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #f2f2f2; /* CINZA INPUT PADRÃO */
  font-size: 1rem;
}
.denuncia-page .form-field:focus {
  outline: none;
  border-color: #386641;
  box-shadow: 0 0 0 3px rgba(56, 102, 65, 0.2);
}
.denuncia-page #formHelp {
  font-style: italic;
  color: #555;
  font-size: 0.85rem;
  margin-top: 0;
}

/* Botão de Enviar (Adaptado) */
.denuncia-page .btn-primary {
  background-color: #386641; /* VERDE PADRÃO */
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}
.denuncia-page .btn-primary:hover {
  background-color: #2a4b30; /* VERDE MAIS ESCURO */
}

/* Coluna da Direita (Lista) */
.denuncia-page .right-col {
  position: relative;
}
.denuncia-page .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #386641; /* VERDE PADRÃO */
  margin-bottom: 0;
}
.denuncia-page .list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}
.denuncia-page .item {
  background-color: #386641; /* VERDE PADRÃO */
  color: #fff;
  padding: 14px 18px;
  border-radius: 20px; /* Borda padrão */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}
.denuncia-page .item .label {
  font-weight: 500;
}
.denuncia-page .item .controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
/* Ícones ✓ e ✕ (Adaptados) */
.denuncia-page .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E7E7E4; /* CINZA CLARO PADRÃO */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #386641; /* VERDE PADRÃO */
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.denuncia-page .icon:hover {
  transform: scale(1.1);
  background: #fff;
}

/* Botão "Ver Todas" (Adaptado) */
.denuncia-page .view-all {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  border-radius: 20px;
  background: #E7E7E4; /* CINZA CLARO PADRÃO */
  color: #386641; /* VERDE PADRÃO */
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
}
.denuncia-page .view-all:hover {
  background-color: #dcdcd8;
}

/* Botão Download (Adaptado) */
.denuncia-page .download {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E7E7E4; /* CINZA CLARO PADRÃO */
  color: #386641; /* VERDE PADRÃO */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.denuncia-page .denuncia-footer {
  margin-top: 25px;
  text-align: center;
  color: #999;
  border-top: 1px solid #eee;
  padding-top: 20px;
  font-size: 0.9rem;
}

/* Helper do JS para leitores de tela */
.denuncia-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Responsividade da Página de Denúncias */
@media (max-width: 991px) {
  .denuncia-page .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .denuncia-page .stat-number {
    width: 76px;
    height: 76px;
    font-size: 26px;
  }
  .denuncia-page .item {
    padding: 12px 14px;
    font-size: 0.9rem;
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }
  .denuncia-page .item .controls {
    align-self: flex-end;
  }
  .denuncia-page .icon {
    width: 35px;
    height: 35px;
  }
}

/* ---
============================================================
ESTILOS ADICIONAIS PARA A PÁGINA DE DIVULGAÇÃO (tela_divulgação.html)
============================================================
--- */

/* Barras de Filtro e Pesquisa */
.divulgacao-filters {
  display: flex;
  gap: 10px;
  background-color: #f8f9fa; /* Cinza claro */
  padding: 15px;
  border-radius: 15px;
  border: 1px solid #dee2e6;
}

.divulgacao-search {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 15px;
  border: 1px solid #dee2e6;
}
.divulgacao-search .form-control {
  border-radius: 20px 0 0 20px;
  border-right: none;
}
.divulgacao-search .form-control:focus {
  z-index: 1;
  box-shadow: none;
  border-color: #ccc;
}
.divulgacao-search .btn-search-icon {
  background-color: #386641; /* VERDE PADRÃO */
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 0 20px 20px 0;
  transition: background-color 0.2s;
}
.divulgacao-search .btn-search-icon:hover {
  background-color: #2a4b30; /* VERDE MAIS ESCURO */
}

/* Cards de Destaque */
.divulgacao-card {
  border: none;
  border-left: 5px solid #386641; /* VERDE PADRÃO */
  transition: transform 0.2s, box-shadow 0.2s;
}
.divulgacao-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
.divulgacao-card .card-title {
  color: #386641; /* VERDE PADRÃO */
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.divulgacao-card .card-text {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}
.btn-divulgacao {
  background-color: #386641; /* VERDE PADRÃO */
  color: #fff;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  align-self: flex-start;
  transition: background-color 0.2s;
}
.btn-divulgacao:hover {
  background-color: #2a4b30; /* VERDE MAIS ESCURO */
  color: #fff;
}

/* Seção de Postar Notícia */
.post-news-section {
  border-radius: 15px;
  border: 1px solid #dee2e6;
}
.post-news-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #386641; /* VERDE PADRÃO */
  margin-bottom: 15px;
}
.post-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.btn-attach, .btn-attach-primary {
  background-color: #E7E7E4; /* CINZA CLARO PADRÃO */
  color: #386641; /* VERDE PADRÃO */
  border: 1px solid #dcdcd8;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}
.btn-attach-primary {
  background-color: #386641; /* VERDE PADRÃO */
  color: #fff;
  border-color: #386641;
}
.btn-attach:hover {
  background-color: #dcdcd8;
}
.btn-attach-primary:hover {
  background-color: #2a4b30;
  border-color: #2a4b30;
}

/* Cards de "Últimas Notícias" */
.latest-news-card {
  border: 1px solid #dee2e6;
  border-left: 5px solid transparent;
  transition: border-left-color 0.3s, transform 0.2s;
}
.latest-news-card:hover {
  border-left-color: #386641; /* VERDE PADRÃO */
  transform: translateX(3px);
  color: #333;
}
.latest-news-card .card-title {
  font-size: 1.1rem;
  color: #386641; /* VERDE PADRÃO */
  font-weight: 500;
  margin-bottom: 5px;
}

/* Widgets da Sidebar (Eventos e Calendário) */
.sidebar-widget-green {
  background-color: #386641; /* VERDE PADRÃO */
  color: #fff; 
  padding: 25px;
  border-radius: 15px;
}
.sidebar-widget-green h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 600;
}
.sidebar-widget-green ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-widget-green li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
}
.sidebar-widget-green li:last-child {
  border-bottom: none;
}
.sidebar-widget-green li a {
  color: #fff; 
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.sidebar-widget-green li a:hover {
  opacity: 0.8; 
}
.sidebar-widget-green li span {
  font-size: 0.9rem;
  opacity: 0.8;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 10px;
}

/* Container Responsivo do Google Calendar */
.calendar-embed-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 100%; /* Proporção 1:1, pode ajustar se necessário */
  border-radius: 10px;
}
.calendar-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---
============================================================
ESTILOS ADICIONAIS PARA O FORMULÁRIO EM (tela_suporte.html)
============================================================
--- */

/* Escopo para a página de suporte */
.suporte-page .denuncia-form-section {
  /* Removemos max-width e margin-top, pois a grade .row cuida disso */
  text-align: left;
  border-top: 1px solid #eee; 
  padding-top: 20px;
}
.suporte-page .denuncia-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #386641; /* VERDE PADRÃO */
  margin-bottom: 20px;
}
.suporte-page .denuncia-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.suporte-page .form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: -5px;
}
.suporte-page .form-field {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #f2f2f2;
  font-size: 1rem;
  resize: none;
}
.suporte-page .form-field:focus {
  outline: none;
  border-color: #386641;
  box-shadow: 0 0 0 3px rgba(56, 102, 65, 0.2);
}
.suporte-page .btn-primary {
  background-color: #386641; /* VERDE PADRÃO */
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}
.suporte-page .btn-primary:hover {
  background-color: #2a4b30; /* VERDE MAIS ESCURO */
}
.suporte-page #formHelp {
  font-style: italic;
  color: #555;
  font-size: 0.85rem;
  margin-top: 0;
}

/* Ajustes no FAQ para o novo layout em grid */
.suporte-page .faq-section {
  /* Remove a margem automática para se alinhar na grade */
  margin-bottom: 0; 
}
.suporte-page .faq-section h5 {
   margin-top: 5px; /* Alinha o título com o do formulário */
}
.suporte-page .faq-grid {
  /* Garante que os cards preencham a coluna */
  grid-template-columns: 1fr; 
  margin-top: 20px;
  margin-bottom: 0;
}
.suporte-page .faq-card {
  width: 100%; /* Ocupa 100% da coluna */
  max-width: 100%;
}

/* ---
============================================================
ESTRUTURA GLOBAL (Layout 'Denúncias' - Fundo Branco)
============================================================
--- */

/* 1. Fundo da página agora é BRANCO */
body.page-background-white {
  background-color: #FFFFFF;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

/* 2. O contêiner VERDE do topo (Header) */
.page-header-v5 {
  background-color: #386641;
  /* Adiciona padding para os links e para a área de overlap */
  padding-top: 30px;
  padding-bottom: 100px; /* Espaço para o <main> sobrepor */
  width: 100%;
}

/* 3. O contêiner BRANCO de conteúdo (separado, abaixo do header) */
main.content-wrapper-v5 {
  background-color: #FFFFFF; 
  max-width: 1239px; /* Largura máxima centralizada */
  
  /* A MÁGICA ESTÁ AQUI: */
  margin-top: -80px; /* Puxa para CIMA, sobrepondo o header */
  margin-left: auto;
  margin-right: auto;
  position: relative; /* Para garantir que fique por cima */
  z-index: 10;
  
  /* AS CURVAS! */
  border-top-left-radius: 47px; 
  border-top-right-radius: 47px; 
  border-bottom-left-radius: 47px;
  border-bottom-right-radius: 47px;

  padding: 30px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Sombra para flutuar */
}

/* ---
============================================================
ESTILOS ADICIONAIS PARA A PÁGINA DE MAPAS (tela_mapa.html)
============================================================
--- */

/* Escopo para a página de mapas (dentro do <main>) */
.mapa-page h1 {
  text-align: center;
  /* A cor já é definida pela regra 'main h1' no seu CSS */
}

/* Estilo do Seletor de Campus */
.mapa-page .mapa-selector {
  max-width: 600px;
  margin: 0 auto 30px auto;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #dee2e6;
}
.mapa-page .mapa-selector .input-group-text {
  background-color: #386641; /* VERDE PADRÃO */
  color: white;
  border: none;
  font-weight: 500;
  font-size: 0.9rem;
}
.mapa-page .mapa-selector .form-select {
  padding: 12px 15px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
}
.mapa-page .mapa-selector .form-select:focus {
  box-shadow: 0 0 0 3px rgba(56, 102, 65, 0.2);
}

/* Container do Iframe do Mapa */
.mapa-page .map-container {
  border-radius: 20px;
  overflow: hidden; /* Força o iframe a ter bordas arredondadas */
  border: 5px solid #E7E7E4; /* CINZA CLARO PADRÃO */
  background-color: #E7E7E4;
}
.mapa-page .map-container iframe {
  width: 100%;
  height: 550px;
  border: none;
  display: block; /* Remove espaço em branco inferior */
}
.mapa-page .map-container small {
  display: block;
  padding: 12px;
  text-align: center;
  font-size: 0.9rem;
  background-color: #E7E7E4;
}
.mapa-page .map-container small a {
  color: #386641; /* VERDE PADRÃO */
  text-decoration: none;
  font-weight: 500;
}
.mapa-page .map-container small a:hover {
  text-decoration: underline;
}

/* ---
============================================================
ESTILOS PARA MODAIS "BONITOS" (Pop-ups Customizados)
============================================================
--- */

/* Adicione esta classe .modal-custom-verde ao .modal-dialog */
.modal-custom-verde .modal-content {
  border: none;
  border-radius: 15px; /* Arredondamento padrão */
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.modal-custom-verde .modal-header {
  background-color: #386641; /* VERDE PADRÃO */
  color: #FFFFFF;
  border-bottom: none;
  /* Arredonda só os cantos de cima */
  border-radius: 15px 15px 0 0;
}

.modal-custom-verde .modal-header .modal-title {
  font-weight: 600;
}

/* Deixa o 'X' de fechar branco */
.modal-custom-verde .modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.modal-custom-verde .modal-header .btn-close:hover {
  opacity: 1;
}

.modal-custom-verde .modal-footer {
  background-color: #f8f9fa; /* Cinza claro padrão */
}

/* Estilo para listas dentro de modais, como Notificações */
.modal-custom-verde .list-group-item-action:hover {
   background-color: #f0f0f0 !important;
}

.modal-custom-verde .list-group-item {
   border-bottom: 1px solid #dee2e6 !important;
}
.modal-custom-verde .list-group-item:last-child {
   border-bottom: 0 !important;
}

/* ---
============================================================
ESTILOS ADICIONAIS PARA TELA INICIAL (tela_inicial.html)
============================================================
--- */

/* 1. Estilo para os botões "Materiais OBMEP" e "Fóruns" 
     (substitui o <button> por um <a> estilizado)
*/
.card-home-btn {
  margin-top: 10px;
  background-color: #e7e7e4; /* CINZA CLARO PADRÃO */
  color: #386641; /* VERDE PADRÃO */
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  align-self: center;
  display: inline-flex; /* Usar inline-flex para o <a> */
  align-items: center;
  gap: 6px;
  text-decoration: none; /* Remove sublinhado do link */
  transition: background-color 0.2s;
}
.card-home-btn:hover { 
  background-color: #dcdcd8; /* CINZA MAIS ESCURO */
  color: #386641;
}

/* 2. Wrapper para transformar cards verdes (notícias, eventos, mapa) em links 
     sem estragar o visual.
*/
.card-link-wrapper {
  text-decoration: none; /* Remove sublinhado */
  color: inherit; /* Faz o texto herdar a cor (branco) */
  display: block;
  height: 100%;
}
.card-link-wrapper:hover .noticias,
.card-link-wrapper:hover .eventos,
.card-link-wrapper:hover .mapa {
  /* Efeito sutil de hover no card verde */
  opacity: 0.95;
  transform: scale(1.01);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.card-link-wrapper .noticias,
.card-link-wrapper .eventos,
.card-link-wrapper .mapa {
  /* Garante altura total e transição suave */
  height: 100%;
  transition: all 0.2s ease-in-out;
}

/* Faz o iframe do mapa não ser clicável (para o link do card funcionar) */
.mapa iframe {
  pointer-events: none;
}

/* ---
============================================================
ESTILOS DO FOOTER PADRÃO (VERSÃO ATUALIZADA - FUNDO CLARO)
============================================================
--- */

.site-footer {
  /* ATUALIZADO: Fundo cinza claro da sua paleta */
  background-color: #E7E7E4; 
  /* O padding é igual ao do <main> para alinhar */
  padding: 40px 50px; 
  /* ATUALIZADO: Cor de texto escura */
  color: #555; 
  border-top: 1px solid #D1D1D1; /* Borda cinza mais escura */
  /* Remove o arredondamento de baixo do .page-container */
  margin-bottom: -25px; 
  margin-left: -1px;
  margin-right: -1px;
}

/* Ajusta o padding em telas menores, igual ao <main> */
@media (max-width: 768px) {
  .site-footer {
    padding: 30px 25px;
  }
}
@media (max-width: 576px) {
  .site-footer {
    padding: 20px 15px;
  }
}

.site-footer h5 {
  font-weight: 600;
  color: #386641; /* ATUALIZADO: Verde Padrão */
  margin-bottom: 15px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #386641; /* ATUALIZADO: Verde Padrão */
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-logo img {
  height: 40px;
  /* ATUALIZADO: Remove o filtro de inversão */
  filter: none; 
}

.footer-copyright {
  font-size: 0.9rem;
  line-height: 1.4rem;
  color: #555; /* ATUALIZADO: Cinza escuro */
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: #386641; /* ATUALIZADO: Verde Padrão */
  opacity: 0.9;
  transition: all 0.2s ease-in-out;
  display: flex; 
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: #2a4b30; /* ATUALIZADO: Verde mais escuro */
  opacity: 1;
  transform: translateX(3px); /* Efeito de hover */
}

/* ---
============================================================
ESTILOS PARA NÍVEL DE ACESSO (Admin vs User)
============================================================
--- */

/* 1. Por padrão, ESCONDE todos os elementos de admin */
.admin-only {
  display: none !important; 
}

/* 2. QUANDO o <body> tiver a classe 'role-admin', MOSTRA os elementos */
body.role-admin .admin-only {
  /* 'block' é o display correto para links de dropdown do Bootstrap */
  display: block !important; 
}

/* --- Botão Flutuante --- */

/* Esconde o botão de admin por padrão */
.help-btn-admin {
  display: none;
}
/* Mostra o botão de usuário por padrão */
.help-btn-user {
  display: flex; 
}

/* Quando for admin, inverte a visibilidade */
body.role-admin .help-btn-admin {
  display: flex; 
}
body.role-admin .help-btn-user {
  display: none; 
}

/* ---
============================================================
ESTILOS ADICIONAIS PARA A TELA DE LOGIN (tela_login.html)
============================================================
--- */

/* Sobrescreve o 'body' padrão APENAS na tela de login */
body.login-page {
  font-family: 'Poppins', sans-serif;
  background-color: #D1D1D1;
  color: #FFFFFF;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px; /* Mantém o padding do seu body original */
}

/* Garante que o reset * não afete outros resets */
.login-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Container Principal do Login --- */
.login-page .login-container {
  display: flex;
  width: 900px;
  max-width: 100%;
  height: 600px;
  background-color: #386641;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* --- Painéis (Esquerda e Direita) --- */
.login-page .info-panel,
.login-page .login-panel {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
}

/* --- Estilos do Painel de Informações (Esquerda) --- */
.login-page .info-panel {
  position: relative;
  justify-content: space-between;
}

.login-page .info-panel::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 50px;
  bottom: 50px;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 0;
}

.login-page .info-panel .logo,
.login-page .info-panel .description {
  position: relative;
  z-index: 1;
  padding-left: 30px;
}

.login-page .logo .logo-image {
  width: 100px;
  margin-bottom: 15px;
}

.login-page .logo h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 5px 0;
}

.login-page .logo p {
  font-size: 0.9rem;
  font-weight: 400;
  color: #FFFFFF;
  opacity: 0.8;
}

.login-page .info-panel .description {
  max-width: 280px;
}

.login-page .description p {
  font-size: 1rem;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.5;
}

.login-page .info-panel .illustration {
  position: relative;
  z-index: 1;
  text-align: center;
}

.login-page .info-panel .illustration img {
  max-width: 100%;
  height: auto;
}

/* --- Estilos do Painel de Login (Direita) --- */
.login-page .login-panel {
  justify-content: center;
  position: relative;
}

.login-page .login-panel h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.login-page .input-group {
  margin-bottom: 20px;
}

.login-page .input-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.login-page .input-group input {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 10px;
  background-color: #E7E7E4;
  font-size: 1rem;
  color: #000000;
}

.login-page .input-group input:focus {
  outline: 2px solid #5ab394;
}

.login-page .password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-page .password-icon-svg {
  position: absolute;
  right: 15px;
  width: 20px;
  height: 20px;
  fill: #888;
  opacity: 0.7;
}

.login-page .login-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background-color: #D1D1D1;
  color: #386641;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.login-page .login-button:hover {
  background-color: #c1c1c1;
}

/* Estilo para as duas imagens de crédito */
.login-page .developer-credit {
  position: absolute;
  bottom: 50px;
  right: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-page .developer-credit .credit-text-image {
  width: 90px;
  height: auto;
}

.login-page .developer-credit .credit-logo-image {
  width: 35px;
  height: auto;
}

/* --- Responsividade --- */
@media (max-width: 850px) {
  .login-page .login-container {
      flex-direction: column;
      height: auto;
  }
  .login-page .info-panel {
      display: none;
  }
  .login-page .login-panel {
      border-radius: 30px;
  }
}

/* ---
============================================================
ESTILOS PARA BOTÃO "RELEVANTE" (CURTIR)
============================================================
--- */

/* Estilo para o botão "Relevante" quando está ativo (clicado) */
.post-action-btn.active {
  background-color: #386641; /* Cor verde padrão */
  color: #FFFFFF !important; /* Texto branco */
  font-weight: 700;
}

/* Adiciona um ícone de "up" quando está ativo */
.post-action-btn.active::before {
  content: "\f148"; /* Código do ícone 'arrow-up-circle-fill' do Bootstrap */
  font-family: "bootstrap-icons";
  margin-right: 6px;
}

/* Animação de "pulso" ao clicar (feedback tátil) */
.post-action-btn:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* ---
============================================================
ESTILOS DO WIDGET DE ACESSIBILIDADE (FLUTUANTE)
============================================================
--- */

/* Botão Flutuante Azul/Ciano (Diferente do verde para destacar, ou use verde se preferir) */
.btn-access-float {
  position: fixed;
  bottom: 100px; /* Fica acima do botão de suporte */
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #0d6efd; /* Azul Bootstrap ou use #386641 para verde */
  color: white;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1060; /* Acima de tudo */
  transition: transform 0.2s;
}

.btn-access-float:hover {
  transform: scale(1.1);
  background-color: #0b5ed7;
}

/* O Menu (Card) */
.access-menu-container {
  display: none; /* Escondido por padrão */
  position: fixed;
  bottom: 160px; /* Acima do botão flutuante */
  right: 30px;
  width: 250px;
  background-color: #ffffff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  z-index: 1060;
  animation: fadeInUp 0.3s ease-in-out;
}

.access-menu-container.show {
  display: block;
}

/* Animação de entrada */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- MODO ALTO CONTRASTE (Refinado) --- */
body.high-contrast {
  background-color: #000000 !important;
  color: #ffff00 !important;
}

/* Ajustes gerais para elementos no modo contraste */
body.high-contrast .page-container,
body.high-contrast main,
body.high-contrast .navbar-custom,
body.high-contrast .site-footer,
body.high-contrast .card,
body.high-contrast .modal-content,
body.high-contrast .list-group-item,
body.high-contrast .access-menu-container {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border: 1px solid #ffff00 !important;
}

body.high-contrast a, 
body.high-contrast h1, body.high-contrast h2, body.high-contrast h3, 
body.high-contrast p, body.high-contrast span, body.high-contrast i,
body.high-contrast button {
  color: #ffff00 !important;
}

body.high-contrast .btn {
  background-color: #000 !important;
  border: 1px solid #ffff00 !important;
  color: #ffff00 !important;
}

/* Remove imagens de fundo para leitura */
body.high-contrast .profile-banner {
  background-image: none !important;
  background-color: #333 !important;
}

/* Ajuste para telas menores */
@media (max-width: 768px) {
  .btn-access-float {
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  .access-menu-container {
    bottom: 145px;
    right: 20px;
  }
}
