* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(160deg, #eef3f9 0%, #dce9f7 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 32px 16px;
}

.container {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 8px 30px rgba(15, 61, 41, 0.08);
    animation: subir 0.4s ease;
}

@keyframes subir {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    text-align: center;
    margin-bottom: 28px;
}

header .selo {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #1a4d8f, #2b6cb8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(26, 77, 143, 0.35);
}

header h1 {
    font-size: 22px;
    font-weight: 600;
    color: #16281f;
    margin-bottom: 4px;
}

header p {
    font-size: 13px;
    color: #8a8f89;
    letter-spacing: 0.3px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    border: 1px solid #eceae2;
    border-radius: 16px;
    padding: 16px;
    color: #222;
    background: #fcfbf8;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 77, 143, 0.12);
    border-color: #cfe0f5;
}

.card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: #eaf2fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.card-link strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #16281f;
}

.card-link span {
    font-size: 12px;
    color: #8a8f89;
}

.compartilhar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eceae2;
}

.btn-share {
    text-align: center;
    text-decoration: none;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 11px;
    font-size: 13px;
    font-weight: 500;
    color: #16281f;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}

.btn-share:hover {
    background: #eef3f9;
}

.btn-whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #20bd5a;
}

/* Formulário */
.form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form label {
    font-size: 12px;
    font-weight: 600;
    color: #4a4f47;
    margin-top: 12px;
}

.form select,
.form textarea,
.form input {
    border: 1.5px solid #eceae2;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    transition: border-color 0.15s ease;
    background: #fcfbf8;
}

.form select:focus,
.form textarea:focus,
.form input:focus {
    outline: none;
    border-color: #2b6cb8;
    background: #fff;
}

.aviso {
    font-size: 11px;
    color: #9aa39c;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form button {
    margin-top: 20px;
    background: linear-gradient(135deg, #1a4d8f, #2b6cb8);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    box-shadow: 0 4px 14px rgba(26, 77, 143, 0.25);
}

.form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26, 77, 143, 0.32);
}

.form button:active {
    transform: translateY(0);
}

.voltar {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #8a8f89;
    text-decoration: none;
}

.voltar:hover {
    color: #2b6cb8;
}

/* Enquete */
.opcao-enquete {
    display: flex;
    align-items: center;
    border: 1.5px solid #eceae2;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    margin-top: 8px;
    cursor: pointer;
    background: #fcfbf8;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.opcao-enquete:hover {
    border-color: #2b6cb8;
    background: #f0f6fc;
}

.opcao-enquete input {
    margin-right: 10px;
    accent-color: #2b6cb8;
}

/* Sucesso */
.icone-sucesso {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a4d8f, #2b6cb8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
}

/* Dashboard */
.dashboard {
    max-width: 480px;
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dash-header h1 {
    font-size: 17px;
    font-weight: 600;
    color: #16281f;
}

.btn-exportar {
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #2b6cb8;
    color: #2b6cb8;
    border-radius: 8px;
    padding: 7px 12px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.btn-exportar:hover {
    background: #eaf2fb;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.metric-card {
    background: linear-gradient(160deg, #eef3f9, #e3edf9);
    border-radius: 12px;
    padding: 12px;
}

.metric-label {
    display: block;
    font-size: 11px;
    color: #8a8f89;
}

.metric-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #16281f;
}

.dashboard h2 {
    font-size: 13px;
    font-weight: 600;
    color: #4a4f47;
    margin: 20px 0 10px;
}

.categoria-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.categoria-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-nome {
    font-size: 11px;
    width: 80px;
    color: #4a4f47;
}

.cat-barra {
    flex: 1;
    background: #f0efe9;
    border-radius: 6px;
    height: 8px;
}

.cat-barra-fill {
    height: 100%;
    background: linear-gradient(90deg, #2b6cb8, #1a4d8f);
    border-radius: 6px;
}

.cat-qtd {
    font-size: 11px;
    font-weight: 600;
    width: 20px;
    text-align: right;
}

.pergunta-enquete {
    font-size: 12px;
    color: #4a4f47;
    margin-bottom: 8px;
}

.opinioes-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.opiniao-item {
    border: 1px solid #eceae2;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fcfbf8;
}

.opiniao-cat {
    font-size: 11px;
    font-weight: 600;
    color: #2b6cb8;
    display: block;
    margin-bottom: 2px;
}

.opiniao-item p {
    font-size: 12px;
    color: #333;
}

body {
    background: linear-gradient(180deg, #1a4d8f 0%, #1a4d8f 140px, #eef3f9 140px, #dce9f7 100%);
}

.container {
    margin-top: 20px;
}

.politica h3 {
    font-size: 13px;
    font-weight: 600;
    color: #16281f;
    margin-top: 18px;
    margin-bottom: 6px;
}

.politica p {
    font-size: 13px;
    color: #4a4f47;
    line-height: 1.5;
}

.rodape-privacidade {
    text-align: center;
    margin-top: 12px;
}

.rodape-privacidade a,
.consentimento a {
    color: #2b6cb8;
    text-decoration: none;
    font-size: 11px;
}

.consentimento {
    font-size: 11px;
    color: #9aa39c;
    margin-top: 12px;
    text-align: center;
}

.tipo-relatorio {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    border: 1.5px solid #eceae2;
    background: #fcfbf8;
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #8a8f89;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #1a4d8f, #2b6cb8);
    border-color: #1a4d8f;
    color: #fff;
}

.form input[type="date"] {
    width: 100%;
    box-sizing: border-box;
}

.form label {
    display: block;
}

#bloco-opinioes,
#bloco-enquete {
    display: flex;
    flex-direction: column;
}

.form select,
.form input,
.form textarea {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}