/* Configuração Global de Tipografia Dinâmica */
html {
    font-size: 14px;
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Foco Acessível Premium para Inputs e Botões */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #0f172a;
}

/* Layout Flexbox para fixar o Footer no fundo sem margens mortas */
body {
    background-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Força o conteúdo principal a empurrar o footer */
main {
    flex: 1 0 auto;
}

/* 1. Fundo Dinâmico com Gradiente Suave para Páginas Internas */
.bg-saas-gradient {
    background-color: #ffffff;
    background-image: radial-gradient(at 50% 0%, rgba(37, 140, 251, 0.05) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(108, 117, 125, 0.03) 0px, transparent 40%);
    background-attachment: fixed;
}

/* 2. Card Estilo "Glassmorphism" */
.glass-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 16px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 3. Ajustes de Inputs Executivos */
.form-control-lg {
    border-radius: 8px !important;
    border: 1px solid #dee2e6;
}

    .form-control-lg:focus {
        border-color: #0f172a;
        box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1) !important;
    }

/* 4. Helpers Gerais */
.max-height-400 {
    max-height: 400px;
    width: auto;
}

/* 5. Botão de Destaque da Navbar (CTA) */
.btn-cta-nav {
    background-color: #0f172a !important;
    color: #ffffff !important;
    font-size: 0.88rem;
    border-radius: 8px;
    border: 1px solid #0f172a;
    transition: all 0.2s ease-in-out;
}

    .btn-cta-nav:hover {
        background-color: #1e293b !important;
        border-color: #1e293b;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
    }

/* 6. Link de Login Minimalista na Navbar */
.nav-link-login-custom {
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569 !important;
    transition: color 0.15s ease;
}

    .nav-link-login-custom:hover {
        color: #0f172a !important;
    }

/* 7. Design do Rodapé (Footer) Correto e Protegido */
.footer-custom {
    background-color: #ffffff;
    border-top: 1px solid #edf2f7;
    color: #64748b;
    font-size: 0.85rem;
    flex-shrink: 0; /* Impede o esmagamento em ecrãs longos */
}

    .footer-custom a {
        color: #475569 !important;
        text-decoration: none;
        font-weight: 500;
    }

        .footer-custom a:hover {
            text-decoration: underline !important;
            color: #0f172a !important;
        }

/* Correção de alinhamentos mobile no menu Bootstrap */
@media (max-width: 575.98px) {
    .navbar-nav {
        padding-top: 1rem;
        width: 100%;
    }
}
