/* Estilos Globais Existentes - MANTENHA-OS AQUI NO TOPO */
body:not(.landing-page-dark) {
    background-color: #f8f9fa;
    color: #212529;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer {
    font-size: 0.9em;
    background-color: #343a40 !important;
    color: #f8f9fa !important;
}
.footer .text-muted {
    color: #adb5bd !important;
}

.card {
    border: none;
}

.card-header {
    font-weight: 500;
}

/* Estilos da navbar padrão da aplicação (não da landing page) */
.navbar-main-app {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    min-height: 56px; /* Altura padrão do Bootstrap para navbar, pode ser ajustada */
}
.navbar-main-app .navbar-brand {
    padding-top: 0.25rem; /* Ajustar padding para centralizar logo se necessário */
    padding-bottom: 0.25rem;
    margin-right: 1rem; /* Espaço à direita do logo */
    display: inline-flex;
    align-items: center;
}
/* Estilo para o logo na navbar principal da aplicação */
.navbar-main-app .navbar-brand #mainAppNavbarLogo {
    filter: brightness(0) invert(1);
    height: 60px;
    width: auto;
    vertical-align: middle;
}


.navbar-main-app .nav-link.active {
    font-weight: 500;
}


.badge.fs-7 {
    font-size: 0.8rem;
}

.table-responsive.shadow-sm {
    border-radius: 0.375rem;
    overflow: hidden;
}
.table {
    margin-bottom: 0;
}
.table th {
    white-space: nowrap;
}
.table td {
    vertical-align: middle;
}

.form-label {
    font-weight: 500;
}

.alert {
    border-left-width: 5px;
}
.alert-success { border-left-color: var(--bs-success); }
.alert-danger { border-left-color: var(--bs-danger); }
.alert-warning { border-left-color: var(--bs-warning); }
.alert-info { border-left-color: var(--bs-info); }

main.container:not(.container-fluid) {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.card .border-left-primary { border-left: .25rem solid #4e73df!important; }
.card .border-left-success { border-left: .25rem solid #1cc88a!important; }
.card .border-left-info { border-left: .25rem solid #36b9cc!important; }
.card .border-left-warning { border-left: .25rem solid #f6c23e!important; }
.card .border-left-danger { border-left: .25rem solid #e74a3b!important; }
.card .border-left-secondary { border-left: .25rem solid #858796!important; }
.card .border-left-purple { border-left: .25rem solid #6f42c1!important; }
.card .border-left-dark { border-left: .25rem solid #5a5c69!important; }

.text-xs { font-size: .7rem; }
.text-purple { color: #6f42c1!important; }
.font-weight-bold { font-weight: 700!important; }
.text-gray-300 { color: #dddfeb!important; }
.text-gray-800 { color: #5a5c69!important; }

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}


/* --- ESTILOS PARA LANDING PAGE DARK (Revisados e Adicionados) --- */
body.landing-page-dark {
    background-color: #0A091A;
    color: #e0e0e0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: 90px;
    overflow-x: hidden;
}

body.landing-page-dark main.container-fluid {
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
}


.landing-page-dark .navbar-landing {
    background-color: rgba(10, 9, 26, 0.88);
    backdrop-filter: blur(10px);
    box-shadow: 0 0.1rem 0.5rem rgba(0,0,0,0.1);
    transition: background-color 0.3s ease-in-out;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    min-height: 90px;
}
.landing-page-dark .navbar-landing .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    margin-right: auto;
}
.landing-page-dark .navbar-landing .navbar-brand #landingNavbarLogo {
    filter: brightness(0) invert(1);
    height: 60px;
    width: auto;
    vertical-align: middle;
}

.landing-page-dark .navbar-landing .nav-link {
    color: #adb5bd;
    font-weight: 500;
    padding-left: 1rem;
    padding-right: 1rem;
    transition: color 0.2s ease;
}
.landing-page-dark .navbar-landing .nav-link:hover,
.landing-page-dark .navbar-landing .nav-link.active {
    color: #ffffff;
}
.landing-page-dark .navbar-landing .btn-primary-landing {
    background-image: linear-gradient(to right, #6037E0 0%, #7D52F0 100%);
    border: none;
    color: #ffffff;
    font-weight: 500;
    padding: 0.55rem 1.35rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(96, 55, 224, 0.3);
}
.landing-page-dark .navbar-landing .btn-primary-landing:hover,
.landing-page-dark .navbar-landing .btn-primary-landing:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(96, 55, 224, 0.4);
    color: #fff;
}
.landing-page-dark .navbar-landing .btn-outline-light {
    border-radius: 25px;
    padding: 0.55rem 1.35rem;
    font-weight: 500;
    border-color: rgba(255,255,255,0.5);
}
.landing-page-dark .navbar-landing .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* Hero Section */
.hero-section {
    background-color: #0A091A;
    padding-bottom: 6rem;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section .hero-logo img#heroMainLogo {
    height: 120px;
    width: auto;
    margin-bottom: 1.5rem;
}
.hero-section .lead-text {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    color: #b0bac9;
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Estilo para os botões de CTA principais na landing page (Hero e CTA final) */
.btn-primary-hero { /* Removido '.hero-section' do seletor para torná-lo mais geral */
    background-image: linear-gradient(to right, #6037E0 0%, #7D52F0 100%);
    border: none;
    color: #ffffff !important; /* Cor do texto definida como branco e !important para garantir prioridade */
    font-weight: 500;      /* Adicionado para consistência */
    border-radius: 25px;   /* Adicionado para consistência */
    transition: all 0.3s ease; /* Adicionado para consistência */
    box-shadow: 0 5px 22px rgba(96, 55, 224, 0.4);
    /* O padding é controlado pelas classes de utilitário do Bootstrap no HTML (ex: btn-lg px-4) */
}

.btn-primary-hero:hover,
.btn-primary-hero:focus {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(96, 55, 224, 0.5);
    color: #ffffff !important; /* Garantir que a cor do texto permaneça branca no hover/focus */
}


/* Seção de Funcionalidades */
.features-section {
    padding: 5rem 1rem;
    background-color: #0F0E24;
}
.features-section .section-title {
    color: #fff;
    font-weight: 700;
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    margin-bottom: 0.75rem;
}
.features-section .section-subtitle {
    color: #b0bac9;
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    margin-bottom: 4rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.feature-item {
    background-color: #16152F;
    padding: 2.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid #2c2a4a;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.feature-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    flex-grow: 1;
}

.feature-item-icon {
    flex-shrink: 0;
    margin-bottom: 1.25rem;
}
.feature-item-icon i {
    font-size: 2.5rem;
    color: #9378F1;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(147, 120, 241, 0.12);
    border-radius: 12px;
}
.feature-item-text h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.6rem;
}
.feature-item-text p {
    font-size: 0.95rem;
    color: #b0bac9;
    line-height: 1.65;
}

@media (min-width: 992px) {
    .feature-item-content {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 2rem;
    }
    .feature-item-icon {
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
    .feature-item.layout-icon-right .feature-item-content {
        flex-direction: row-reverse;
    }
    .feature-item.layout-icon-right .feature-item-text {
        text-align: right;
    }
    .feature-item.layout-icon-right .feature-item-icon {
        margin-right: 0;
        margin-left: 1.5rem;
    }
}

.landing-page-dark .footer-landing {
    background-color: #0A091A;
    color: #adb5bd;
    padding: 2.5rem 0;
    border-top: 1px solid #2a2843;
    font-size: 0.9rem;
}

/* Estilos para as novas seções adicionadas na landing page */
.feature-icon-large {
    font-size: 3rem;
    color: #9378F1;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(147, 120, 241, 0.12);
    border-radius: 18px;
    margin-bottom: 1.5rem;
}
.section-visual {
    background-color: #0F0E24;
    padding: 5rem 1rem;
}
.section-visual .card {
    background-color: #16152F;
    border: 1px solid #2c2a4a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section-visual .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}
.section-visual .card-title {
    color: #ffffff;
    font-weight: 600;
}
.section-visual .card-text {
    color: #b0bac9;
}
.section-benefits {
    padding: 5rem 1rem;
    background-color: #0A091A;
}
.benefit-item {
    text-align: center;
    margin-bottom: 2.5rem;
}
.benefit-item i {
    font-size: 2.5rem;
    color: #9378F1;
    margin-bottom: 1rem;
}
.benefit-item h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.benefit-item p {
    color: #b0bac9;
    font-size: 0.95rem;
}

.cta-section {
    background-color: #0F0E24;
    padding: 5rem 1rem;
    text-align: center;
}
.cta-section .display-5 {
    font-weight: 700;
    color: #fff;
}
.cta-section .lead {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #b0bac9;
}