/* 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 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;
}

body.dark-mode a:hover {
    color: var(--cor-primaria);
}

/* 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;
}

body.dark-mode .btn-home button {
    background-color: white;
    color: black;
}

body.dark-mode .internal-buttons-transparency-home .btn-home img {
    color: black !important;
    filter: brightness(0);
}

body.dark-mode .btn-home button:hover {
    background-color: yellow;
    color: black;
}

body.dark-mode .header-top {
    background-color: black;
}

body.dark-mode .container-img-header {
    background-color: black !important;
    background-image: none !important;
}

body.dark-mode #anavigation {
    background-color: #1f1f1f !important;
}

body.dark-mode nav.navbar.bootsnav ul.nav>li>a {
    color: white !important;
}

body.dark-mode .attr-nav>ul>li>a>i {
    color: white !important;
}

body.dark-mode #documents {
    background-color: black !important;
}

body.dark-mode #government-carousel {
    background: #1f1f1f;
}

body.dark-mode .social-media {
    background: black;
}

body.dark-mode .social-media .gallery-title {
    color: white;
}

body.dark-mode footer {
    background: black;
    border-top: 10px solid white !important;
}

body.dark-mode #container-avaliacao {
    background: #1f1f1f !important;
}

body.dark-mode .divisor-avaliacao {
    background-color: white !important;
}

body.dark-mode .titulo-avaliacao-home {
    color: white !important;
}

body.dark-mode .subtitulo-avaliacao-home {
    color: white !important;
}

body.dark-mode .botao-avaliacao-home a {
    background-color: white !important;
    color: black;
}

body.dark-mode .btn-galery {
    background-color: white !important;
    color: black;
}


body.dark-mode .redirect-button-container-news a {
    background-color: white !important;
    color: black;
}

body.dark-mode .documents-card {
    background-color: rgb(0, 0, 0) !important;

}

body.dark-mode .breadcrumb {
    background: #1f1f1f !important;
    color: white !important;
}

body.dark-mode .list-group-title {
    background: #1f1f1f !important;
    color: white !important;
}

body.dark-mode .list-group-item {
    background: #1f1f1f !important;
    color: white !important;
}

body.dark-mode .post-related .content h2 {

    color: white !important;
}

body.dark-mode .internal-buttons-transparency a button {
    background-color: white;
    color: rgb(0, 0, 0) !important;
}

body.dark-mode .internal-buttons-transparency a button img {
    filter: brightness(0);
}

body.dark-mode .panel-footer a {
    color: black !important;
}


body.dark-mode #carousel-news-home .splide__slide {
    background-color: #1f1f1f !important;
}


/* FIM MODO ESCURO */