/* --- CONFIGURAÇÕES GERAIS E TRANSICÃO DE TEMA --- */
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    margin: 0;
    transition: background 0.4s ease, color 0.4s ease;
    background-color: #f1f5f9;
    background-image: radial-gradient(rgba(22, 163, 74, 0.23) 1px, transparent 1px);
    background-size: 28px 28px;
    color: #1e293b;
    overflow-x: hidden;
    padding-top: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* --- ANIMAÇÕES (Keyframes) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 123, 232, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(76, 123, 232, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 123, 232, 0); }
}

.animar-entrada {
    animation: fadeInUp 0.4s ease-out forwards;
}

.animar-entrada-atraso {
    animation: fadeInUp 0.4s ease-out 0.15s forwards;
    opacity: 0;
}

/* --- MENU --- */
.menu { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    z-index: 1000;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}
.menu.scroll {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
body.dark .menu {
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.dark .menu.scroll {
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.menu-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateZ(0);
}
.menu nav a { 
    color: #475569; 
    margin-left: 20px; 
    text-decoration: none; 
    font-size: 14px; 
    transition: color 0.2s;
}
.menu nav a:hover { color: #16a34a; }
body.dark .menu nav a { color: #cbd5e1; }
body.dark .menu nav a:hover { color: #4ade80; }
.logo { 
    background: linear-gradient(90deg, #1e293b 40%, #4ade80);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    margin: 0; 
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.4px;
}
body.dark .logo { color: white; }

.botaoTema {
    background: rgba(22,163,74,0.1);
    color: #1e293b;
    border: 1px solid rgba(22,163,74,0.25);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s, background 0.2s;
}
.botaoTema:hover {
    background: rgba(22,163,74,0.2);
}
.botaoTema:active { transform: scale(0.9); }
body.dark .botaoTema {
    background: rgba(74,222,128,0.15);
    color: white;
    border: 1px solid rgba(74,222,128,0.25);
}
body.dark .botaoTema:hover {
    background: rgba(74,222,128,0.25);
}

/* --- LAYOUT CENTRALIZADO E LARGURA --- */
.secao-principal {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    width: 100%;
}

.layout {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 900px;
    width: 100%; 
    margin: 0 auto; 
    padding: 60px 20px;
    flex-wrap: wrap;
    justify-content: center; 
}
.coluna-calculadora { flex: 1.3; min-width: 320px; width: 100%; }
.coluna-texto {
    flex: 0.7;
    min-width: 300px;
}
.coluna-texto p { line-height: 1.7; color: #475569; }

/* --- CARD E SOMBRAS --- */
.card {
    padding: 35px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06), 0 5px 15px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.8);
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box; /* Garante padding correto */
}

.card h1 { margin-top: 0; font-size: 26px; letter-spacing: -0.7px; font-weight: 800; line-height: 1.2; }

.campo { margin-top: 22px; width: 100%; }
.campo label { 
    display: flex; 
    align-items: center; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
}

/* TOOLTIP ESTILIZADO */
.help-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    background-color: #94a3b8;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    cursor: help;
    margin-left: 8px;
    transition: 0.3s;
}
.help-icon:hover { background-color: #4c7be8; }

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #1e293b;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 12px;
    position: absolute;
    z-index: 10;
    bottom: 160%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: normal;
    font-size: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.help-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* INPUTS E SELECTS UNIFICADOS (Garante mesmo tamanho) */
input, select {
    width: 100%;
    height: 48px;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: 0.3s;
    background: #f8fafc;
    box-sizing: border-box; /* Crucial para o tamanho unificado */
}
input:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* CHECKBOX */
.campo-check {
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.checkbox-container input {
    width: 20px;
    height: 20px;
    accent-color: #4c7be8;
}
.label-text { 
    font-size: 14px; 
    color: #1e293b; /* cor padrão (modo claro) */
    user-select: none; 
}
body.dark .label-text {
    color: #f1f5f9;
}
/* BOTÃO CALCULAR */
.botaoCalcular {
    width: 100%;
    background: linear-gradient(135deg, #4ade80 0%, #22d3ee 100%);
    color: #021a10;
    border: none;
    padding: 16px;
    border-radius: 14px;
    cursor: pointer;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.2px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.botaoCalcular::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
    pointer-events: none;
}
.botaoCalcular:hover { 
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(74, 222, 128, 0.35);
    animation: none;
}

/* RESULTADOS */
.resultado { 
    margin-top: 30px; 
    padding: 20px; 
    border-radius: 16px; 
    background: #f1f5f9; 
    border: 1px solid #e2e8f0; 
}
.resultado-titulo { display: flex; justify-content: space-between; font-size: 11px; color: #64748b; margin-top: 15px; text-transform: uppercase; font-weight: 700; }
.resultado-linha { display: flex; 
    justify-content: space-between; 
    padding: 12px 0; 
    font-weight: 600; 
    border-bottom: 1px solid #e2e8f0; 
}
.destaque { 
    border-bottom: none; 
    font-size: 22px; 
    padding-top: 15px;
    font-weight: 800;
}
.destaque span:last-child {
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* SEÇÃO TABELA E IMAGEM */
.secao-tabela { padding: 80px 20px; text-align: center; background: transparent; width: 100%; display: flex; justify-content: center; }
.imagemTabela { 
    display: block; 
    margin: 40px auto;
    width: 100%; 
    max-width: 100%; 
    height: auto;
    border-radius: 20px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.imagemTabela:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 10px 30px rgba(51, 51, 51, 0.4);
}

/* FOOTER */
.footer {
    border-top: none;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        #4ade80,
        #22d3ee,
        transparent
    );
}

/* --- DARK MODE --- */
body.dark {
    background-color: #070d1a;
    background-image: radial-gradient(rgba(74, 222, 128, 0.18) 1px, transparent 1px);
    background-size: 28px 28px;
    color: #f1f5f9;
}
body.dark .card { 
    background: #141e33;
    border: 1px solid rgba(255, 255, 255, 0.09); 
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
body.dark .coluna-texto p { color: #94a3b8; }
body.dark input, body.dark select { background: #0f172a; color: white; border-color: #334155; }
body.dark select option { background: #1e293b; color: #f1f5f9; }
body.dark .resultado { background: rgba(0,0,0,0.35); border: 1px solid rgba(74,222,128,0.12); border-radius: 14px; }
body.dark .resultado-linha { border-color: #334155; }
body.dark .destaque { color: inherit; }
body.dark .destaque span:last-child {
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.dark .secao-tabela { background: transparent; }
body.dark .imagemTabela { box-shadow: 0 10px 30px rgba(51, 51, 51, 0.4);}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .secao-principal, .secao-tabela, .footer { width: 100%; box-sizing: border-box; }
    .layout { padding: 40px 20px; gap: 40px; max-width: 100%; }
    .coluna-calculadora, .coluna-texto { flex: 100%; width: 100%; }
    .card { padding: 20px; }
    .botaoCalcular { animation: none; }
}
/* --- FOOTER SIMPLIFICADO --- */
.footer {
    background: transparent;
    color: #1e293b;
    padding: 60px 20px 0;
    margin-top: 65px;
    border-top: 1px solid #e2e8f0;
}
body.dark .footer {
    background: transparent;
    color: #f1f5f9;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 48px;
}

@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-col h3.logo-footer {
    color: #1e293b;
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
body.dark .footer-col h3.logo-footer { color: #fff; }

.footer-col p {
    font-size: 13.5px;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}
body.dark .footer-col p { color: #94a3b8; }

.footer-titulo {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 0 0 16px;
}
body.dark .footer-titulo { color: #64748b; }

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    font-size: 13.5px;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav a:hover { color: #16a34a; }
body.dark .footer-nav a { color: #94a3b8; }
body.dark .footer-nav a:hover { color: #4ade80; }

.footer-aviso {
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    color: #94a3b8 !important;
}
body.dark .footer-aviso { color: #64748b !important; }

/* LINHA INFERIOR */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 0 24px;
    border-top: 1px solid #e2e8f0;
}
body.dark .footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); }

.footer-bottom p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}
body.dark .footer-bottom p { color: #64748b; }

/* Container para os dois checkboxes ficarem lado a lado */
.grupo-checkbox {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 25px 0;
}

/* Alinhamento de cada item (checkbox + texto) */
.item-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Classe para o campo de FCP começar escondido */
.fcp-input-oculto {
    display: none;
    margin-top: 10px;
}

/* Animação suave quando o campo aparecer (opcional, já que você tem keyframes) */
#campoFCPInput {
    animation: fadeInUp 0.4s ease;
}
/* --- CHECKBOX CIRCULAR PERFEITO --- */
.campo-check {
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-container {
    display: inline-flex; /* Mudado para inline-flex para não esticar */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 22px; 
    height: 22px;
    flex-shrink: 0; /* Impede que o container achate */
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px; /* Tamanho fixo */
    height: 20px; /* Tamanho fixo */
    border: 2.5px solid #475569; 
    border-radius: 50%; /* Garante o círculo */
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0; /* Impede que o input fique oval */
    box-sizing: border-box;
}

/* Quando marcado: Fundo escuro no light / azul no dark */
.checkbox-container input[type="checkbox"]:checked {
    background: #1e293b; 
    border-color: #1e293b;
}

/* O "ponto final" branco dentro */
.checkbox-container input[type="checkbox"]:checked::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

/* --- AJUSTE DARK MODE (MAIS ESCURO E VISÍVEL) --- */
body.dark .checkbox-container input[type="checkbox"] {
    background: #0f172a;
    border-color: #64748b; /* Borda mais visível no escuro */
}

body.dark .checkbox-container input[type="checkbox"]:checked {
    background: #4c7be8; /* Azul destaque para o ponto final */
    border-color: #4c7be8;
}
/* Ajuste para o seletor de FCP aparecer ao lado */
#fcp_select {
    border-radius: 8px;
    font-size: 13px;
    border: 2px solid #475569;
    background: #fff;
    cursor: pointer;
    animation: fadeInSlide 0.3s ease;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

body.dark #fcp_select {
    background: #1e293b;
    color: #fff;
    border-color: #64748b;
}
@media (max-width: 1024px) {
    .layout {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 30px;
    }

    .coluna-calculadora,
    .coluna-texto {
        width: 100%;
        max-width: 700px;
        flex: none;
    }
    .imagemTabela {
        max-width: 100%;
        height: auto;
    }
}
/* Ajuste específico para o ícone dentro da área de resultados */
.resultado-linha span .help-icon {
    width: 15px;
    height: 15px;
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Garante que o tooltip não fique cortado se o card for pequeno */
.resultado {
    position: relative; 
}
.secao-explicao {
    padding: 60px 20px;
    background: transparent;
    display: flex;
    justify-content: center;
}

body.dark .secao-explicao {
    background: transparent;
}

.container-texto {
    max-width: 900px;
    width: 100%;
    line-height: 1.8;
}

.grid-explicao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.formula-box {
    background: #e2e8f0;
    border: 1px solid transparent;
    background:
        linear-gradient(#e2e8f0, #e2e8f0) padding-box,
        linear-gradient(90deg, #4ade80, #22d3ee) border-box;
    box-shadow: 0 10px 10px rgba(0,0,0,0.4);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin: 40px 0;
}

body.dark .formula-box {
    background: #1e293b;
    border: 1px solid transparent;
    background:
        linear-gradient(#1e293b, #1e293b) padding-box,
        linear-gradient(90deg, #4ade80, #22d3ee) border-box;
    box-shadow: 0 10px 30px rgba(51, 51, 51, 0.4);
}

.formula {
    font-size: 1.2rem;
    font-weight: bold;
    color: #22c55e;
    margin: 15px 0;
}

body.dark .formula {
    color: #4ade80;
}

@media (max-width: 768px) {
    .grid-explicao {
        grid-template-columns: 1fr;
    }
}
/* MODAL IMAGEM (ZOOM) */
.modal-imagem {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.conteudo-modal {
    max-width: 95%;
    max-height: 90%;
    border-radius: 12px;
    transition: transform 0.2s ease;
    transform-origin: center center;
    cursor: zoom-in;
    touch-action: none; /* importante pro mobile */
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fechar-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* cursor de clique na imagem */
.imagemTabela {
    cursor: zoom-in;
}
/* BOTÃO HAMBURGUER */
.menu-toggle {
    display: block;
    font-size: 22px;
    background: none;
    border: none;
    color: #1e293b;
    cursor: pointer;
}
body.dark .menu-toggle { color: white; }

/* OVERLAY */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1050;
}

.overlay.ativo {
    opacity: 1;
    pointer-events: all;
}

/* MENU LATERAL */
.side-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: #1e293b;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
}


.side-menu.ativo {
    left: 0;
}
.side-menu.ativo ~ #menuSensor {
    pointer-events: none;
}
/* --- ESTILIZAÇÃO DO CONTEÚDO DO MENU LATERAL --- */
.side-menu a {
    color: #cbd5e1; /* Cor cinza clara */
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    display: block;
}

.side-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding-left: 20px; /* Efeito de deslize no hover */
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

/* Estilo do botão de alternar tema dentro do menu */
.menu-item {
    background: #334155;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-family: inherit;
    transition: background 0.2s;
}

.menu-item:hover {
    background: #475569;
}

/* Ajuste para o botão hambúrguer não sumir no topo */
.menu-toggle {
    transition: transform 0.2s;
}
.menu-toggle:active {
    transform: scale(0.9);
}
/* --- BOTÃO DE FECHAR NO MENU --- */
.fechar-menu {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 24px;
    cursor: pointer;
    align-self: flex-end; /* Joga a seta para a direita */
    padding: 10px;
    margin-bottom: 10px;
    transition: transform 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fechar-menu:hover {
    color: #ffffff;
    transform: translateX(5px); /* Pequeno movimento para a direita */
}

/* Garante que o menu lateral use flexbox para alinhar a seta */
.side-menu {
    display: flex;
    flex-direction: column;
}
.menu-sensor {
    position: fixed;
    top: 0;
    width: 80px;
    height: 100vh;
    z-index: 1200;
    background: transparent;
}
.side-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ajuste para o menu lateral ser fluido */
.side-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.3s ease;
    z-index: 1100; /* Acima do sensor e do header fixo */
}

/* Opcional: destaque visual quando o menu está aberto */
.side-menu.ativo {
    box-shadow: 5px 0 25px rgba(0,0,0,0.5);
}
/* Sensor posicionado sobre o ícone */
.sensor-inteligente {
    position: absolute;
    left: 10px; /* Alinhado ao início do container */
    top: 50%;
    transform: translateY(-50%);
    width: 80px;  /* Área de detecção lateral */
    height: 60px; /* Área de detecção vertical */
    background: transparent; /* Invisível */
    z-index: 101; /* Acima do botão para detectar o mouse antes */
    cursor: pointer;
}

/* Ajuste para o container do menu permitir o posicionamento absoluto do sensor */
.menu-container {
    position: relative;
}
/* Faixa de ativação vertical alinhada ao ícone */
.sensor-vertical {
    position: fixed;
    top: 0;
    /* Ajuste este valor para alinhar exatamente com o seu ícone */
    left: 15px; 
    width: 40px; /* Largura da "zona de detecção" */
    height: 100vh;
    background: transparent; /* Mude para rgba(255,0,0,0.1) se quiser ver onde ela está para testar */
    z-index: 1050;
}

/* Garante que o menu lateral tenha prioridade de clique quando aberto */
.side-menu.ativo {
    z-index: 1100;
}
.menu-texto {
    font-size: 18px;
    color: #cbd5e1;
}
/* MENU DESKTOP */
.menu-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-links a {
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.menu-links a:hover {
    color: #16a34a;
}

body.dark .menu-links a { color: #cbd5e1; }
body.dark .menu-links a:hover { color: #4ade80; }

/* BOTÃO MOBILE ESCONDIDO NO DESKTOP */
.menu-toggle {
    display: none;
}

/* MOBILE */
@media (max-width: 768px) {
    .menu-links {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 24px;
        background: none;
        border: none;
        color: #1e293b;
        cursor: pointer;
    }
    body.dark .menu-toggle { color: white; }
}
.secao-seo {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    background: transparent;
}

body.dark .secao-seo {
    background: transparent;
}

.secao-seo .container-texto {
    max-width: 900px;
    line-height: 1.7;
}

.secao-seo h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

.secao-seo h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 20px;
}

.secao-seo p {
    color: #475569;
    margin-bottom: 10px;
}

body.dark .secao-seo p {
    color: #94a3b8;
}

.secao-seo ul {
    margin-top: 10px;
    padding-left: 20px;
}

.secao-seo li {
    margin-bottom: 5px;
}
.politica-privacidade {
    margin-top: 10px;
}
.secao-outras {
    padding: 80px 20px;
    background: transparent;
    display: flex;
    justify-content: center;
}

body.dark .secao-outras {
    background: transparent;
}

.container-outras {
    max-width: 950px;
    width: 100%;
    text-align: center;
}

.container-outras h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.container-outras p {
    color: #64748b;
}

/* GRID MELHORADO */
.grid-calculadoras {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 35px;

    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;

    padding: 0 20px;
    align-items: stretch;
}

/* CARD MAIS “APP” */
.card-link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 24px;
    border-radius: 20px;

    background: white;
    text-decoration: none;
    color: #0f172a;

    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(148,163,184,0.2);

    transition: all 0.25s ease;
    min-height: 170px;
}

.card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    border-color: #4ade80;
}


/* TAG pequena topo */
.tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #22c55e;
    background: rgba(34,197,94,0.12);

    padding: 4px 10px;
    border-radius: 999px;

    width: fit-content;
    margin-bottom: 12px;
}

/* título */
.card-link h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.card-link p {
    margin-top: 8px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}
/* CTA estilo botão leve */
.cta {
    margin-top: 18px;
    font-weight: 600;
    font-size: 13px;
    color: #22c55e;

    display: inline-flex;
    align-items: center;
    gap: 6px;
}
/* DARK MODE */
body.dark .card-link {
    background: #1e293b;
    color: #f1f5f9;
    border-color: rgba(148,163,184,0.15);
}

body.dark .card-link p {
    color: #94a3b8;
}

body.dark .card-link:hover {
    box-shadow: 0 25px 70px rgba(0,0,0,0.6);
}

@media (max-width: 900px) {
    .grid-calculadoras {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .grid-calculadoras {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 16px;
    }

    .card-link {
        padding: 20px;
        border-radius: 16px;
        min-height: auto;
    }
}
/* BOTÃO FLUTUANTE */
.btn-sugestao{
position:fixed;
right:20px;
bottom:20px;
display:flex;
align-items:center;
gap:8px;
padding:12px 14px;
border-radius:14px;
background:linear-gradient(135deg,#3b82f6,#2563eb);
color:white;
font-size:14px;
font-weight:600;
cursor:pointer;
box-shadow:
0 10px 25px rgba(0,0,0,0.15),
0 5px 10px rgba(59,130,246,0.2);
z-index:999;
transition:all .25s ease;
}

/* hover */
.btn-sugestao:hover{
transform:translateY(-4px);
box-shadow:
0 20px 40px rgba(0,0,0,0.2),
0 10px 20px rgba(59,130,246,0.25);
}

.btn-sugestao:active{
transform:translateY(-1px);
}
/* efeito glow */
.btn-sugestao::after{
content:"";
position:absolute;
inset:0;
border-radius:14px;
background:linear-gradient(135deg,#3b82f6,#2563eb);
opacity:.15;
filter:blur(10px);
z-index:-1;
}

/* MODAL */
.modal-sugestao{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

/* BOX */
.box-sugestao{
background:white;
width:90%;
max-width:420px;
border-radius:16px;
padding:20px;
}

/* HEADER */
.topo-sugestao{
display:flex;
justify-content:space-between;
margin-bottom:15px;
font-weight:600;
}

.topo-sugestao button{
background:none;
border:none;
font-size:18px;
cursor:pointer;
}

/* TEXTAREA */
.box-sugestao textarea{
width:100%;
height:120px;
margin-top:10px;
border-radius:12px;
border:1px solid #e2e8f0;
padding:12px;
resize:none;
font-family:inherit;
background:#f8fafc;
transition:0.3s;
}

/* MESMA ANIMAÇÃO DO INPUT */
.box-sugestao textarea:focus{
outline:none;
border-color:#4ade80;;
background:white;
box-shadow:0 0 0 4px rgba(59,130,246,0.1);
}
/* BOTÃO */
.btn-enviar-sugestao{
width:100%;
margin-top:10px;
background: #4ade80;
color:rgb(0, 0, 0);
border:none;
padding:12px;
border-radius:10px;
cursor:pointer;
}

/* DARK MODE */
body.dark .box-sugestao{
background:#1e293b;
color:white;
}

body.dark textarea,
body.dark input{
background:#0f172a;
color:white;
border-color:#334155;
}
body.dark .box-sugestao textarea{
background:#0f172a;
color:white;
border-color:#334155;
}

body.dark .box-sugestao textarea:focus{
border-color:#4ade80;;
box-shadow:0 0 0 4px rgba(59,130,246,0.15);
}
.msg-sucesso{
display:none;
margin-top:10px;
background:#22c55e;
color:white;
padding:10px;
border-radius:10px;
font-size:14px;
text-align:center;
animation:fadeInUp .3s ease;
}
body.dark .msg-sucesso{
background:#16a34a;
}
.container-outras {
    max-width: 1000px;
    margin: 0 auto;

}

.titulo-calculadoras {
    text-align: center;
    margin-bottom: 35px;
}
.grid-calculadoras {
    text-align: left;
}
.secao-ad {
    padding: 50px 20px 40px;
    background: transparent;
    display: flex;
    justify-content: center;
}

body.dark .secao-ad {
    background: transparent;
}

.secao-ad .container-texto {
    max-width: 900px;
    width: 100%;
    padding: 40px;
    border: 1px solid transparent;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(90deg, #4ade80, #22d3ee) border-box;
    border-radius: 16px;
    box-shadow: 0 10px 10px rgba(0,0,0,0.4);
}

body.dark .secao-ad .container-texto {
    background: #0f172a;
    border: 1px solid transparent;
    background:
        linear-gradient(#0f172a, #0f172a) padding-box,
        linear-gradient(90deg, #4ade80, #22d3ee) border-box;
    box-shadow: 0 10px 30px rgba(51, 51, 51, 0.4);
}

.secao-ad h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.secao-ad h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #22c55e;
}

body.dark .secao-ad h3 {
    color: rgb(34, 197, 94);
}

.secao-ad p {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
}

body.dark .secao-ad p {
    color: #cbd5f5;
}
.secao-sobre {
    padding: 40px 20px 0px;
    background: transparent;
    display: flex;
    justify-content: center;
}

body.dark .secao-sobre {
    background: transparent;
}

.secao-sobre .container-texto {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.secao-sobre h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.secao-sobre p {
    font-size: 17px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 15px;
}

body.dark .secao-sobre p {
    color: #cbd5f5;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.footer-links a:hover {
    background: rgba(22,163,74,0.1);
    color: #16a34a;
}

body.dark .footer-links a {
    color: #94a3b8;
}

body.dark .footer-links a:hover {
    background: rgba(74,222,128,0.1);
    color: #4ade80;
}
.btn-voltar {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #38bdf8;
    border: 1px solid #38bdf8;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-voltar:hover {
    background: #38bdf8;
    color: #0f172a;
    transform: translateY(-2px);
}
/* ===== MODERN DESIGN OVERRIDES 2026 ===== */

/* GRADIENT TEXT */
.gradient-text {
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* HERO BADGE */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.22);
    color: #4ade80;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 999px;
    margin-bottom: 14px;
    letter-spacing: 0.4px;
    width: fit-content;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: badgePulse 3s ease-in-out 5;
    flex-shrink: 0;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}

/* RESULTADO TITULO — uppercase labels */
.resultado-titulo {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #64748b;
    margin-top: 15px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
}

/* DARK: campo labels */
body.dark .campo label {
    color: rgba(255,255,255,0.4);
}

/* DARK: resultado titulos */
body.dark .resultado-titulo {
    color: rgba(255,255,255,0.23);
}

/* DARK: destaque label (percentual DIFAL) */
body.dark .destaque span:first-child {
    color: rgba(255,255,255,0.45);
    font-size: 14px;
    font-weight: 500;
    -webkit-text-fill-color: rgba(255,255,255,0.45);
}

/* DARK: inputs modernos */
body.dark input:not([type="checkbox"]),
body.dark select {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #f1f5f9;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: 0.2s;
}

body.dark select option {
    background: #1e293b;
    color: #f1f5f9;
}

body.dark input:not([type="checkbox"]):focus,
body.dark select:focus {
    border-color: rgba(74,222,128,0.45);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(74,222,128,0.1);
}

/* MENU LINKS modernos */
.menu-links a {
    font-size: 13px;
    font-weight: 500;
}

/* LOGO gradiente no menu — apenas dark mode */
body.dark .menu .logo {
    background: linear-gradient(90deg, #fff 40%, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CARD — light mode upgrade */
.card {
    padding: 35px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.07), 0 5px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* BOTÃO SUGESTÃO — mais moderno */
.btn-sugestao {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    color: #021a10;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
/* ============================================ */
/* ===== NOVAS MELHORIAS VISUAIS 2026 ========= */
/* ============================================ */

/* 1. CARD PRINCIPAL */
.card {
    backdrop-filter: blur(0px);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}

body.dark .card:hover {
    box-shadow: 0 20px 45px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* 2. INPUTS COM GLOW AO FOCUS */
input:focus,
select:focus {
    border-color: #4ade80;
    background: rgba(74,222,128,0.03);
}

body.dark input:focus, body.dark select:focus {
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

/* 3. BOTÃO CALCULAR MAIS IMPONENTE */
.botaoCalcular {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    background-size: 200% auto;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.botaoCalcular:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 222, 128, 0.4);
}

.botaoCalcular:active {
    transform: translateY(0px);
}

/* 4. RESULTADOS COM DESIGN MODERNO */
.resultado {
    background: linear-gradient(135deg, #f8fafc 0%, #e5eaf0 100%);
    border: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.03), 0 5px 15px rgba(0,0,0,0.05);
}

body.dark .resultado {
    background: rgba(5, 10, 19, 0.61);
    border: 1px solid rgba(74,222,128,0.1);
}

.resultado-linha {
    border-bottom: 1px solid rgba(100, 116, 139, 0.15);
}

.resultado-linha:hover {
    background: rgba(74, 222, 128, 0.05);
    padding-left: 8px;
}

/* 5. DESTAQUE DO DIFAL COM ANIMAÇÃO */
.destaque {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.1), transparent);
    border-radius: 12px;
    margin-top: 10px;
    padding: 15px 12px !important;
}

.destaque span:last-child {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 6. TOOLTIP MAIS BONITO */
.help-icon {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.help-icon:hover {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    transform: scale(1.1);
}

.tooltip-text {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 222, 128, 0.2);
    font-weight: 500;
}

/* 7. CHECKBOXES MAIS MODERNOS */
.checkbox-container input[type="checkbox"] {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checkbox-container input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-color: #4ade80;
}

.checkbox-container input[type="checkbox"]:checked::after {
    background: white;
    width: 9px;
    height: 9px;
}

/* 8. SEÇÕES COM BORDAS GRADIENTE */
.secao-explicao, .secao-seo, .secao-ad, .secao-sobre {
    position: relative;
}

.secao-explicao::before, .secao-seo::before, .secao-ad::before, .secao-sobre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4ade80, #22d3ee, transparent);
}

/* 9. CARDS DAS CALCULADORAS COM EFEITO */
.card-link {
    position: relative;
    overflow: hidden;
}

.card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    transition: left 0.4s ease;
}

.card-link:hover::before {
    left: 0;
}

.card-link:hover h3 {
    color: #4ade80;
}

body.dark .card-link:hover h3 {
    color: #4ade80;
}

/* 10. ÍCONES NOS CHECKBOXES (FCP ETC) */
.label-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.label-text::before {
    content: '✓';
    opacity: 0;
    width: 0;
    transition: all 0.2s ease;
}

.checkbox-container input:checked ~ .label-text::before {
    opacity: 1;
    width: auto;
    margin-right: 4px;
}

/* 11. MENU COM ANIMAÇÃO MAIS SUAVE */
.menu-links a {
    position: relative;
}

.menu-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    transition: width 0.3s ease;
}

.menu-links a:hover::before {
    width: 100%;
}

/* 12. LOGO COM ANIMAÇÃO */
.logo {
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
    letter-spacing: -0.2px;
}

/* 13. IMAGEM DA TABELA COM BORDA GRADIENTE */
.imagemTabela {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #4ade80, #22d3ee) border-box;
    transition: all 0.4s ease;
}

body.dark .imagemTabela {
    background: linear-gradient(#141e33, #141e33) padding-box,
                linear-gradient(135deg, #4ade80, #22d3ee) border-box;
    box-shadow: 0 10px 30px rgba(51, 51, 51, 0.4);
}

.imagemTabela:hover {
    transform: scale(1.02) translateY(-5px);
}

/* 14. BOTÃO FLUTUANTE DE SUGESTÃO COM PULSO */
.btn-sugestao {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #021a10;
    font-weight: 700;
    font-size: 15px;
    animation: none;

}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 10px 25px rgba(74, 222, 128, 0.2);
    }
    50% {
        box-shadow: 0 10px 35px rgba(74, 222, 128, 0.5);
    }
    100% {
        box-shadow: 0 10px 25px rgba(74, 222, 128, 0.2);
    }
}

.btn-sugestao:hover {
    animation: none;
    transform: scale(1.05);
}

/* 15. SCROLLBAR PERSONALIZADA */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

body.dark ::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* 16. RESPONSIVIDADE REFINADA */
@media (max-width: 768px) {
    .card {
        padding: 25px;
    }
    
    .destaque span:last-child {
        font-size: 22px;
    }
    
    .resultado-linha {
        font-size: 14px;
    }
    
    .hero-badge {
        font-size: 9px;
    }
    
    .btn-sugestao {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* 17. CARREGAMENTO MAIS SUAVE DAS SEÇÕES */
/* Reduz animações para diminuir "lag" em dispositivos mais fracos */
@media (prefers-reduced-motion: reduce) {
    .secao-principal, .secao-tabela, .secao-explicao,
    .secao-seo, .secao-outras, .secao-ad, .secao-sobre {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }
}

/* Animação padrão (otimizada) */
.secao-principal, .secao-tabela, .secao-explicao,
.secao-seo, .secao-outras, .secao-ad, .secao-sobre {
    opacity: 0;
    animation: fadeInUp 0.35s ease-out forwards;
}

.secao-principal { animation-delay: 0s; }
.secao-tabela { animation-delay: 0.03s; }
.secao-explicao { animation-delay: 0.06s; }
.secao-seo { animation-delay: 0.08s; }


/* 18. BADGE HERO COM BACKGROUND ANIMADO */
.hero-badge {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(34, 211, 238, 0.05));
    border: 1px solid rgba(74, 222, 128, 0.3);
    backdrop-filter: blur(4px);
}

/* 19. ESTILO PARA OS SELECTS MAIS MODERNOS */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

body.dark select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
}

/* 20. LINKS DO FOOTER COM GLOW */
.footer-links a {
    position: relative;
    overflow: hidden;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-links a:hover::after {
    width: 80%;
}
/* ===== CORREÇÃO DO BUG DOS SELECTS ===== */

/* Garante que os selects mantenham a cor correta */
select, select option {
    color: #1e293b !important;
    background: #f8fafc !important;
}

body.dark select,
body.dark select option {
    color: #f1f5f9 !important;
    background: #0f172a !important;
}

/* Remove qualquer fundo estranho nos selects quando estão com valor padrão */
select:invalid {
    color: #64748b;
}

body.dark select:invalid {
    color: #94a3b8;
}

/* Garante que o texto selecionado fique visível */
select option:checked {
    background: linear-gradient(135deg, #4ade80, #22d3ee) !important;
    color: #021a10 !important;
}

body.dark select option:checked {
    background: linear-gradient(135deg, #4ade80, #22d3ee) !important;
    color: #021a10 !important;
}

/* Força o dropdown a ter contraste no dark mode */
body.dark select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%234ade80' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
}
