@import url(https://fonts.googleapis.com/css?family=Roboto);

body {
    font-family: Roboto;
    background-color: #ffffff;

}

.navbar {
    background-color: #111111;
    border-bottom: 3px solid #4970bf;
    padding: 1rem 2rem;
}

.navbar-brand,
.nav-link {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.navbar-brand:hover,
.nav-link:hover {
    color: #1e7eba;
}



.hero-header {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
        url('../img/headerimg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    color: white;
    align-items: center;
    padding: 0 10%;
}

.hero-text-box h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
}

.hero-text-box p {
    max-width: 700px;
    font-size: 1.2rem;
    margin-top: 20px;
    color: #ddd;
}


.info-section {
    background-color: #ffffff;
    padding: 90px 0;
    color: #1a1a1a;
}

.img-container img {
    width: 100%;
    border-radius: 2px;
}

/* Sombra esq*/
.sombra1 {
    box-shadow: 20px 20px 0px #1833ac;
}

/* Sombra dir*/
.sombra2 {
    box-shadow: -20px 20px 0px #ce1126;
}

h6 {
    color: #202b8c;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.info-text-box h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.info-text-box p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333;
}

.btn-custom {
    background-color: #222;
    color: white !important;
    padding: 18px 45px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-custom:hover {
    background-color: #000000;
}

footer {
    background-color: #111;
    padding: 50px 0;
    border-top: 5px solid #4970bf;
    text-align: center;
}


.linkgraf {
    color: #000;
    /* Ou a cor que você preferir */
    text-decoration: none;
    /* Tira o sublinhado */
    transition: 0.3s;
    /* Deixa a mudança de cor suave */
}


.linkgraf:hover {
    color: #ce1126;

}

#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;

}

#chart {
    max-width: 900px;
    margin: 30px auto;

}

.alerta {
    color: #c4170c;
    font-weight: bold;
}

.titgrafico {
    text-align: center;
    margin-top: 90px;
    font-weight: bold;

}


/*pagina !!!!!*/

.legenda {
    font-size: 0.85em;
    color: #888;
    margin-top: 25px;
    /* espa. borda  */
    padding-left: 15px;
}

h1.tituloarq {
    font-size: 2.8em;
    color: #000;
    margin: 0 0 15px 0;
    line-height: 1.2;
    font-weight: bold;
}

.article-body {
    max-width: 700px;
    margin: 0 auto;
}


.imagebloco {
    margin-bottom: 40px;
}

.imagew {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #eee;


}

.imagew img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.byline {
    font-size: 0.9em;
    color: #777;
}




.article-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    padding-bottom: 20px;
}



.main-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 20px;
}



/* ajuda !!!!!!!!!! */
.help-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 20px;
}

.help-intro {
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

/*acorddddion */
.ajuaccordion .accordion-item {
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    margin-bottom: 10px;
}

.ajuaccordion .accordion-button {
    font-size: 1.1rem;

    color: #111;
    background-color: #fff;
    padding: 20px;


}

/* quando clica no accordion */
.ajuaccordion .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #1833ac;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.ajuaccordion .accordion-button:focus {
    box-shadow: none;
    border-color: #4970bf;
}

.ajuaccordion .accordion-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    padding: 25px;
}

.help-accent {
    color: #1833ac;
    font-weight: bold;
}

/*tableaaaa*/

.table {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    white-space: nowrap;
}

.table thead th {
    border-bottom: 3px solid #1833ac !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px;
}

.table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}


.badge {
    border-radius: 0;
    padding: 6px 10px;
    text-transform: uppercase;
    font-weight: bold;
}


footer .breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
}

footer .breadcrumb-item+.breadcrumb-item::before {
    color: #e03d3d;

}

footer .breadcrumb-item a {
    color: #e5e5e7;
    text-decoration: none;
    transition: 0.3s;
}

footer .breadcrumb-item a:hover {
    color: white;
    text-decoration: underline;
}


@media (max-width: 768px) {
    .table thead {
        display: none;
    }


    .table,
    .table tbody,
    .table tr,
    .table td {
        display: block;
        width: 100%;
    }
.table tr {
    margin-bottom: 20px;
    border: 2px solid #eee;
    padding: 10px;
    background: #fff;
}

.table td {
    text-align: right;
    padding-left: 50% !important;
    position: relative;
    border-bottom: 1px solid #f1f1f1;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    font-weight: bold;
    text-align: left;
    color: #1833ac;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.table td:last-child {
    border-bottom: 0;
    justify-content: center;
    padding-left: 10px !important;
    background: #f8f9fa;
    margin-top: 5px;
}

.table td:last-child::before {
    display: none;
}
}

@media (max-width: 768px) {
    .hero-text-box h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-text-box p {
        font-size: 1rem;
        text-align: center;
    }

    .hero-header {
        padding: 0 5%;
        justify-content: center;
    }

    
    .info-text-box {
        padding-left: 15px !important;
        padding-right: 15px !important;
        text-align: center;
        margin-top: 30px;
    }

    
    h6 {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .info-text-box h2 {
        font-size: 1.8rem;
    
    }

    .info-text-box p {
        font-size: 1rem;
    }

    
    .sombra1,
    .sombra2 {
        box-shadow: 10px 10px 0px #1833ac;
        margin-bottom: 20px;
    }

    .sombra2 {
        box-shadow: -10px 10px 0px #ce1126;
    }


    #chart1 {
        width: 100% !important;
        margin: 10px 0;
    }

    .titgrafico {
        font-size: 1.4rem;
        margin-top: 50px;
        padding: 0 15px;
    }
}

.progress-container {
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1035;
}

.progress-bar-scroll {
    height: 100%;
    width: 0%;
    background-color:  #c4170c ;
    transition: width 0.1s ease-out;
}

.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn .fa-sun { display: none; }
.theme-toggle-btn .fa-moon { color: #555; }

body.dark-mode .theme-toggle-btn .fa-moon { display: none; }

.progress-bar-scroll {
    height: 100%;
    width: 0%;
    background-color: #c4170c; 
    transition: width 0.1s ease-out;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}


body.dark-mode {
    background-color: #121212;
    color: #f5f5f5;
}

body.dark-mode .main-container {
    background-color: #121212;
}

body.dark-mode h1.tituloarq, 
body.dark-mode .info-text-box h2 {
    color: #ffffff;
}

body.dark-mode .article-body p {
    color: #dddddd;
}

body.dark-mode .article-header {
    border-bottom-color: #333;
}


.theme-toggle-btn .fa-sun { color: #f1c40f; }
.theme-toggle-btn .fa-moon { color: #ffffff; } 

body.dark-mode .theme-toggle-btn .fa-sun {
    display: inline-block;
}
body.dark-mode .theme-toggle-btn .fa-moon {
    display: none;
}


.map-imagebloco-clean {
    margin: 40px 0; width: 100%; 
}
.map-relative-wrapper {
    position: relative; width: 100%;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}
body.dark-mode .map-relative-wrapper {
    background-color:
    #1a1a1a;
    border-color: #333;
}
#mapdiv {
    width: 100%;
    height: 500px;
    position: relative;
}
.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
}
body.dark-mode .map-legend {
    background: rgba(30, 30, 30, 0.9);
    color: #fff; 
}
.map-legend h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}
.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 5px;
}
.legend-color { 
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}
#popup {
    display: none;
    position: absolute;
    top: 20px; right: 20px;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 20;
}
body.dark-mode #popup {
    background: rgba(40, 40, 40, 0.95);
    border-color: #444;
    color: #fff;
}
#close { position: absolute; top: 5px; right: 10px; cursor: pointer; font-weight: bold; color: #888; }
#estadoNome { font-size: 1.1rem; font-weight: bold; text-transform: uppercase; color: #1833ac; }
body.dark-mode #estadoNome { color: #4970bf; }
#populacao { font-size: 0.85rem; color: #555; margin-bottom: 10px; }
body.dark-mode #populacao { color: #ccc; }
#chartdiv { width: 100%; height: 180px; }
.legenda-mapa-clean { font-size: 0.85em; color: #888; margin-top: 10px; margin-bottom: 30px; }

@media (max-width: 768px) {
    #mapdiv { height: 400px; }
    #popup { position: relative; top: 0; right: 0; width: 100%; box-shadow: none; border-top: 1px solid #eee; background: #fff; }
    body.dark-mode #popup { background: #1a1a1a; }
}

@import url(https://fonts.googleapis.com/css?family=Roboto);

body {
    font-family: Roboto;
    background-color: #ffffff;
    color: #1a1a1a;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #121212;
    color: #f5f5f5;
}

body.dark-mode .main-container,
body.dark-mode .help-section,
body.dark-mode .info-section {
    background-color: #121212 !important;
    color: #f5f5f5 !important;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h5, 
body.dark-mode .tituloarq,
body.dark-mode .info-text-box h2 {
    color: #ffffff !important;
}

body.dark-mode p,
body.dark-mode .byline {
    color: #dddddd !important;
}

body.dark-mode .article-header,
body.dark-mode .info-section {
    border-color: #333333 !important;
}

body.dark-mode .dark-mode-card {
    background-color: #1e1e1e !important;
    border: 1px solid #333333 !important;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.5) !important;
}

body.dark-mode .card-title-toggle {
    color: #ffffff !important;
}

body.dark-mode .card-text-toggle {
    color: #aaaaaa !important;
}

body.dark-mode .dark-mode-accordion {
    background-color: #1e1e1e !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
}

body.dark-mode .accordion-btn-toggle {
    background-color: #252525 !important;
    color: #ffffff !important;
}

body.dark-mode .accordion-btn-toggle:not(.collapsed) {
    background-color: #2b2b2b !important;
    color: #4970bf !important;
}

body.dark-mode .accordion-btn-toggle::after {
    filter: invert(1);
}

body.dark-mode .accordion-body {
    background-color: #1e1e1e !important;
    color: #dddddd !important;
}

body.dark-mode .dark-mode-form {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
}

body.dark-mode .dark-mode-form::placeholder {
    color: #777777 !important;
}

body.dark-mode .dark-mode-form:focus {
    background-color: #252525 !important;
    border-color: #4970bf !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(73, 112, 191, 0.25) !important;
}

.navbar {
    background-color: #111111;
    border-bottom: 3px solid #4970bf;
    padding: 1rem 2rem;
}

.navbar-brand,
.nav-link {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.navbar-brand:hover,
.nav-link:hover {
    color: #1e7eba;
}

.hero-header {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../img/headerimg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    color: white;
    align-items: center;
    padding: 0 10%;
}

.hero-text-box h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
}

.hero-text-box p {
    max-width: 700px;
    font-size: 1.2rem;
    margin-top: 20px;
    color: #ddd;
}

.info-section {
    background-color: #ffffff;
    padding: 90px 0;
    color: #1a1a1a;
    transition: background-color 0.3s ease;
}

.img-container img {
    width: 100%;
    border-radius: 2px;
}

.sombra1 { box-shadow: 20px 20px 0px #1833ac; }
.sombra2 { box-shadow: -20px 20px 0px #ce1126; }

h6 {
    color: #202b8c;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

body.dark-mode h6.category-tag {
    color: #4970bf !important;
}

.info-text-box h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.info-text-box p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333;
}

.btn-custom {
    background-color: #222;
    color: white !important;
    padding: 18px 45px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
    border: none;
}

.btn-custom:hover { background-color: #000000; }

body.dark-mode .btn-custom {
    background-color: #333333;
}
body.dark-mode .btn-custom:hover {
    background-color: #444444;
}

footer {
    background-color: #111;
    padding: 50px 0;
    border-top: 5px solid #4970bf;
    text-align: center;
}

.linkgraf {
    color: #000;
    text-decoration: none;
    transition: 0.3s;
}

.linkgraf:hover { color: #ce1126; }

#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 999;
}

.alerta {
    color: #c4170c;
    font-weight: bold;
}

.titgrafico {
    text-align: center;
    margin-top: 90px;
    font-weight: bold;
}

.legenda {
    font-size: 0.85em;
    color: #888;
    margin-top: 25px;
    padding-left: 15px;
}

h1.tituloarq {
    font-size: 2.8em;
    color: #000;
    margin: 0 0 15px 0;
    line-height: 1.2;
    font-weight: bold;
}

.article-body {
    max-width: 700px;
    margin: 0 auto;
}

.imagebloco { margin-bottom: 40px; }

.imagew {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #eee;
}

.imagew img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.byline { font-size: 0.9em; color: #777; }

.article-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.main-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #fff;
}

.progress-container {
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1035;
}

.progress-bar-scroll {
    height: 100%;
    width: 0%;
    background-color:  #c4170c;
    transition: width 0.1s ease-out;
}

.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn .fa-sun { display: none; color: #f1c40f; }
.theme-toggle-btn .fa-moon { color: #ffffff; }

body.dark-mode .theme-toggle-btn .fa-moon { display: none; }
body.dark-mode .theme-toggle-btn .fa-sun { display: inline-block; }

.help-intro {
    text-align: center;
    margin-bottom: 40px;
}

.help-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 20px;
}

.help-accent {
    color: #1833ac;
    font-weight: bold;
}
body.dark-mode .help-accent {
    color: #4970bf;
}

@media (max-width: 768px) {
    .hero-text-box h1 { font-size: 2.2rem; text-align: center; }
    .hero-text-box p, .info-text-box { text-align: center; }
    .info-text-box h2 { font-size: 1.8rem; }
    .sombra1 { box-shadow: 10px 10px 0px #1833ac; }
    .sombra2 { box-shadow: -10px 10px 0px #ce1126; }
    .info-text-box { padding-left: 0 !important; padding-right: 0 !important; margin-top: 30px; }
}

body.dark-mode .titgrafico,
body.dark-mode .linkgraf {
    color: #ffffff !important;
}

body.dark-mode .linkgraf:hover {
    color: #ce1126 !important;
}