body {
    font-family: Arial, sans-serif;
    padding: 20px;
}

.resumo {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: #f5f7fb;
    border: 1px solid #d9e1f2;
    border-radius: 12px;
    padding: 16px 20px;
}

.card strong {
    display: block;
    font-size: 26px;
    color: #2d6cdf;
}

#mapa {
    width: 1000px;
    height: 650px;
    margin: 30px auto;
    border: 1px solid #ccc;
    border-radius: 12px;
}

.legenda {
    margin-bottom: 15px;
}

.quadrado {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid #999;
}

.com-resposta {
    background: #2d6cdf;
}

.sem-resposta {
    background: #eeeeee;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
}

th {
    background: #2d6cdf;
    color: white;
}

tr:nth-child(even) {
    background: #f5f5f5;
}


.secao-respostas-data {    margin-top: 30px;}.tabela-compacta-wrap {    max-height: 500px;    overflow: auto;    border: 1px solid #ddd;    border-radius: 10px;}.tabela-compacta {    width: 100%;    border-collapse: collapse;    font-size: 13px;}.tabela-compacta th,.tabela-compacta td {    border-bottom: 1px solid #e5e5e5;    padding: 6px 8px;    text-align: left;}.tabela-compacta th {    background: #2d6cdf;    color: #fff;    position: sticky;    top: 0;    z-index: 1;}.tabela-compacta tr:nth-child(even) {    background: #f7f7f7;}

.bloco-progresso {
    margin: 20px 0;
}

.progresso-topo {
    display: flex;
    width: 1000px;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.barra-progresso {
    width: 1000px;
    height: 50px;
    background: #e9edf5;
    border-radius: 999px;
    overflow: hidden;
}

.barra-progresso-preenchimento {
    height: 100%;
    background: linear-gradient(90deg, #2d6cdf, #5b8cff);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.progresso-premium {
    margin: 24px auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    box-shadow:
        0 4px 14px rgba(0,0,0,0.08);
    border: 1px solid #e5e9f2;
}

.progresso-premium-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.progresso-premium-titulo {
    font-size: 16px;
    font-weight: 700;
    color: #1f2d3d;
}

.progresso-premium-numeros {
    font-size: 14px;
    color: #5b6778;
}

.progresso-premium-barra {
    width: 100%;
    height: 42px;
    background: #edf1f7;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progresso-premium-preenchimento {

    height: 100%;

    background:
        linear-gradient(
            90deg,
            #2d6cdf 0%,
            #4b86ff 45%,
            #73a5ff 100%
        );

    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    transition: width 0.6s ease;

    min-width: 90px;

    box-shadow:
        inset 0 -2px 4px rgba(0,0,0,0.15);
}

.progresso-premium-percentual {

    font-size: 20px;
    font-weight: 800;
    color: #ffffff;

    text-shadow:
        0 1px 3px rgba(0,0,0,0.35);

    letter-spacing: 0.5px;
}

.rodape-atualizacao {

    margin-top: 40px;
    padding-top: 20px;

    border-top: 1px solid #dfe5ef;

    text-align: center;

    font-size: 13px;
    color: #6b778c;

    opacity: 0.9;
}

.rodape-atualizacao strong {
    color: #2d6cdf;
}

.secao-amostra {
    margin-top: 30px;
}

.tabela-amostra {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tabela-amostra th,
.tabela-amostra td {
    border: 1px solid #d8dde8;
    padding: 8px;
    text-align: center;
}

.tabela-amostra th:first-child,
.tabela-amostra td:first-child {
    text-align: left;
}

.tabela-amostra thead th {
    background: #ffd966;
    color: #222;
}

.tabela-amostra tfoot th {
    background: #2d6cdf;
    color: white;
}

.amostra-qtd {
    font-weight: 800;
    font-size: 16px;
}

.amostra-meta {
    color: #666;
    margin-left: 3px;
}

.meta-ok {
    background: #e8f6ee;
    color: #177245;
}

.meta-pendente {
    background: #fff4e5;
    color: #9a5b00;
}

.celula-progressbar {
    position: relative;
    width: 100%;
    height: 28px;
    background: #eef1f5;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.celula-progressbar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.celula-progressbar-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 800;
    color: #1f2d3d;
    text-shadow: 0 1px 1px rgba(255,255,255,0.7);
}

.pb-vermelho {
    background: linear-gradient(90deg, #ffb3b3, #ff6b6b);
}

.pb-amarelo {
    background: linear-gradient(90deg, #ffe08a, #ffc83d);
}

.pb-azul {
    background: linear-gradient(90deg, #9fc5ff, #4b86ff);
}

.pb-verde {
    background: linear-gradient(90deg, #9be7b0, #32c766);
}

.tabela-amostra tbody td:last-child {
    background: #a3c1e3;
    color: #ffffff;
    font-weight: 700;
}

.tabela-amostra tbody td:last-child .celula-progressbar {
    background: rgba(255,255,255,0.18);
}

.tabela-amostra tbody td:last-child .celula-progressbar-label {
    color: #444444;
    text-shadow: none;
}

.tabela-amostra tbody td:last-child .pb-vermelho {
    background: linear-gradient(90deg, #ff9c9c, #ff5b5b);
}

.tabela-amostra tbody td:last-child .pb-amarelo {
    background: linear-gradient(90deg, #ffe07d, #ffbf1f);
}

.tabela-amostra tbody td:last-child .pb-azul {
    background: linear-gradient(90deg, #9fd0ff, #66a3ff);
}

.tabela-amostra tbody td:last-child .pb-verde {
    background: linear-gradient(90deg, #9ff0b3, #28c463);
}

/* Página responder.php */

.pagina-responder {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
    color: #1f2d3d;
}

.responder-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px 70px;
    text-align: center;
}

.responder-titulo {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 40px;
    color: #154aa8;
    font-weight: 800;
}

.responder-banner {
    margin: 0 auto 45px;
}

.responder-banner img {
    max-width: 100%;
    width: 1000px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.botao-responder {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #ff8a00 0%, #ff6a00 100%);

    color: #ffffff;
    text-decoration: none;

    font-size: 30px;
    font-weight: 800;

    padding: 26px 70px;

    border-radius: 999px;

    box-shadow: 0 10px 25px rgba(255,106,0,0.35);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.botao-responder:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(255,106,0,0.45);
}

.convite-final {
    margin-top: 70px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f2f6b;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.destaque {
    color: #2d6cdf;
}

@media (max-width: 768px) {
    .responder-container {
        padding: 30px 16px 50px;
    }

    .responder-titulo {
        font-size: 28px;
    }

    .botao-responder {
        font-size: 22px;
        padding: 20px 36px;
    }

    .convite-final {
        font-size: 24px;
    }
}

/* Responsividade geral */
@media (max-width: 768px) {

    body {
        padding: 12px;
        overflow-x: hidden;
    }

    .resumo {
        flex-direction: column;
        gap: 12px;
    }

    .card {
        width: auto;
    }

    /* Barras de progresso */
    .progresso-topo,
    .barra-progresso {
        width: 100% !important;
    }

    .progresso-premium {
        width: 100% !important;
        box-sizing: border-box;
        padding: 14px;
    }

    .progresso-premium-topo {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .progresso-premium-barra {
        height: 40px;
    }

    .progresso-premium-percentual {
        font-size: 18px;
    }

    /* Mapa */
    #mapa {
        width: 100% !important;
        height: 480px;
        box-sizing: border-box;
        margin: 24px auto;
    }

    /* Banner da página responder */
    .responder-banner img,
    .banner img {
        width: 100%;
        border-radius: 14px;
    }

    .responder-container,
    .container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 12px;
        padding-right: 12px;
    }

    .botao-responder {
        width: 100%;
        box-sizing: border-box;
        font-size: 22px;
        padding: 20px 24px;
        text-align: center;
    }

    .convite-final {
        font-size: 23px;
        margin-top: 42px;
    }

    /* Tabelas */
    table {
        font-size: 13px;
    }

    .tabela-compacta-wrap {
        overflow-x: auto;
    }

    .tabela-amostra {
        min-width: 720px;
    }

    .secao-amostra {
        overflow-x: auto;
    }

    .celula-progressbar {
        min-width: 90px;
    }
}

/* Celulares pequenos */
@media (max-width: 480px) {

    #mapa {
        height: 390px;
    }

    .progresso-premium-barra {
        height: 38px;
    }

    .progresso-premium-percentual {
        font-size: 16px;
    }

    .progresso-premium-titulo {
        font-size: 15px;
    }

    .progresso-premium-numeros {
        font-size: 13px;
    }

    .botao-responder {
        font-size: 20px;
        padding: 18px 20px;
    }

    .convite-final {
        font-size: 21px;
        line-height: 1.3;
    }
}

.novos-municipios {
    margin: 28px 0;
    padding: 24px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    text-align: center;
}

.novos-municipios h2 {
    margin: 0 0 6px;
    color: #1f4f9a;
}

.novos-municipios p {
    margin: 0 0 20px;
    color: #555;
}

.novos-municipios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    text-align: left;
}

.novos-municipios-coluna {
    background: #f4f7fb;
    border-radius: 14px;
    padding: 16px;
}

.novos-municipios-coluna h3 {
    margin: 0 0 12px;
    color: #2d6cdf;
    text-align: center;
}

.novos-municipios-coluna ul {
    margin: 0;
    padding-left: 20px;
}

.novos-municipios-coluna li {
    margin-bottom: 6px;
}

.sem-novos {
    text-align: center;
    color: #777;
    font-size: 0.95rem;
}

@media (max-width: 700px) {
    .novos-municipios-grid {
        grid-template-columns: 1fr;
    }
}

.municipios-sem-resposta {
    margin: 28px 0;
    padding: 24px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    text-align: center;
}

.municipios-sem-resposta h2 {
    margin: 0 0 6px;
    color: #c0392b;
}

.municipios-sem-resposta p {
    margin: 0 0 20px;
    color: #555;
}

.municipios-sem-resposta-lista {
    max-height: 500px;
    overflow-y: auto;
    background: #fafafa;
    border-radius: 14px;
    padding: 20px;
}

.municipios-sem-resposta-lista ul {
    margin: 0;
    padding: 0;
    list-style: none;
    column-count: 4;
    column-gap: 30px;
    text-align: left;
}

.municipios-sem-resposta-lista li {
    padding: 4px 0;
    break-inside: avoid;
}

@media (max-width: 900px) {
    .municipios-sem-resposta-lista ul {
        column-count: 3;
    }
}

@media (max-width: 700px) {
    .municipios-sem-resposta-lista ul {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .municipios-sem-resposta-lista ul {
        column-count: 1;
    }
}