/* MODO ESCURO */
/* MODO ESCURO GLOBAL */

#toggleDarkMode {
    border-radius: 50%;
    /* width: 40px;
    height: 40px; */
    padding: 0;
    line-height: 1;
    transition: background-color 0.3s ease;
}

#toggleDarkMode:hover  i{
  color: var(--cor-terciaria);
}


body.dark-mode #toggleDarkMode i {
    transition: color 0.3s ease;
    color: rgb(0, 0, 0);
}


body.dark-mode #toggleDarkMode {
    background-color: #333;
    border-color: #444;
    color: #f1f1f1;
}

body.dark-mode {
    background-color: #000000;
    color: #f0f0f0;
}

/* Links, textos e botões */
body.dark-mode a {
    color: #f0f0f0 !important;
}

body.dark-mode a:hover {
    color: var(--cor-primaria) !important;
}

/* Navbar escura */
body.dark-mode #myNavbar {
    background-color: #1f1f1f !important;
}


/* Modal de busca escuro */
body.dark-mode #modalBusca .modal-content {
    background-color: #1c1c1c;
    color: white;
}

body.dark-mode #modalBusca input {
    background-color: #333;
    color: white;
}

body.dark-mode #modalBusca input::placeholder {
    color: #aaa;
}

/* Cards de notícias */
body.dark-mode #grid-noticias .noticia {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

body.dark-mode #grid-noticias .overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 70%);
}

body.dark-mode #noticias3Destaque {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 70%);
}

body.dark-mode #noticias-abaixo-destaque .card-post-vertical .card-body {
    background: #1f1f1f;
}

body.dark-mode .card-title {
    color: white;
}

body.dark-mode #noticias-abaixo-destaque .noticia-card, body.dark-mode #noticias-abaixo-destaque .card-post-vertical {
    border: 1px solid #666666;
    border-radius: 6px;
}

body.dark-mode .titulo-secao {
    border-left: 5px solid white;
}

body.dark-mode .card-post-horizontal-2 {
    background: black;
}


body.dark-mode .card-post-horizontal-2 div div {
    background: #1f1f1f;
}

body.dark-mode .page-numbers {
    color: black;
}

body.dark-mode .page-numbers.current {
    color: white;
}

body.dark-mode #mySidebar {
    background-color: black;
}

body.dark-mode .offcanvas-header .btn-close {
    background-color: white !important;
}

body.dark-mode #noticias-abaixo-destaque .card-post-vertical {
    background-color: black;
    padding: 0 !important;
}

body.dark-mode .header-acessibilidade {
    background-color: black !important;
}

/* Camada preta no modo escuro */
body.dark-mode .container-img-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: black;
    /* ajuste a opacidade */
    z-index: 1;
}

body.dark-mode .social-link i {
    color: black !important;
}

body.dark-mode #myNavbar .navbar-toggler svg {
    color: white;
}

body.dark-mode #toggleDarkMode i {
    transition: color 0.3s ease;
    color: white;
}

body.dark-mode .btn-lupa-menu {
    transition: color 0.3s ease;
    color: white !important;
}

body.dark-mode .container-barra-busca {
    background-color: black;
}

body.dark-mode .container-fluid-acesso-rapido {
    background-color: black;
}

body.dark-mode .card-custom {
    background: #1f1f1f;
}

body.dark-mode .card-custom .title-custom {
    color: white !important;
}

body.dark-mode .card-custom .subtitle-custom {
    color: white !important;
}

body.dark-mode .card-custom .icon-custom img {
    width: 50px;
    height: 50px;
    filter: contrast(0.1);
}

body.dark-mode .bg-gov {
    background: #1f1f1f;
}

body.dark-mode .documents-container {
    background: #1f1f1f;
}


body.dark-mode .documents-container a {
    color: #ffffff;
}

body.dark-mode .document-card {
    background: black;
}

body.dark-mode .document-title, body.dark-mode .document-date, .documents-subtitle {
    color: white;
}

body.dark-mode .document-icon {
    background: #1f1f1f;
}

body.dark-mode .galeria-titulo {
    color: white;
}

body.dark-mode .galeria-home-container {
    background: black;
}

body.dark-mode .full-width-share-bar i{
    color: black;
}

body.dark-mode #rodape {
    background: #1f1f1f;
    border-top: 10px solid white;
}

body.dark-mode #rodape .barra-footer {
     background: #1f1f1f;
}
body.dark-mode .copy2 {
     background: #1f1f1f;
     border-top: 2px solid rgba(216, 216, 216, 0.363);
}

body.dark-mode .copy2 p, body.dark-mode .copy2 a {
    color: #ffffff !important;

}

body.dark-mode .dropdown-item{
    color: black !important;
}

body.dark-mode .nav-link{
color: white !important;
}


/* FIM MODO ESCURO */