html, body {
    height: 100%; 
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    display: flex;
    flex-direction: column;
    min-height: 100%; 
}

body:not(.login-page-body):not(.landing-page) main { 
    padding-top: 56px; 
}

main {
    flex: 1; 
    padding-bottom: 80px; 
}

.navbar.sticky-top {
    /* Estilos para a navbar, se necessário, mas Bootstrap geralmente cuida bem */
}

/* --- Estilos específicos para a tela de Login --- */
body.login-page-body {
    padding-top: 0 !important;
    background-color: transparent !important; 
    overflow: hidden; 
    height: 100%;     
    min-height: 100%; 
}

.login-container-wrapper {
    display: flex;
    flex-grow: 1; 
    height: 100%; 
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem; 
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.login-card .mb-4 { 
    margin-bottom: 1.5rem !important; 
}
.login-card .mb-3 { 
    margin-bottom: 1rem !important;
}
.login-card .mt-4 { 
    margin-top: 1.5rem !important;
}

.login-card .form-floating {
    position: relative; 
}

.login-card .form-floating > .form-control {
    padding-left: 2.75rem; 
}

.login-card .form-floating > label {
    padding-left: 0.75rem; 
    color: #6c757d;    
    display: flex;     
    align-items: center; 
    width: 100%;       
    white-space: nowrap; 
    overflow: hidden;    
    text-overflow: ellipsis; 
    height: 100%; 
}

.login-card .form-floating > label > i.fas {
    margin-right: 0.75rem; 
    color: #6c757d;     
    padding-left: 0.5rem; 
}

.login-card .form-floating > .form-control:focus ~ label,
.login-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
    padding-left: 0.75rem; 
}

.login-card .form-floating > .form-control:focus ~ label > i.fas,
.login-card .form-floating > .form-control:not(:placeholder-shown) ~ label > i.fas {
     color: #764ba2; 
}

.login-card .form-control:focus {
    border-color: #764ba2; 
    box-shadow: 0 0 0 0.2rem rgba(118, 75, 162, 0.25);
}
.login-card .form-floating > .form-control:focus ~ label {
    color: #764ba2; 
}

/* ... (seus estilos existentes, incluindo .main-navbar-logo) ... */

/* Estilos para a Logo na Tela de Login */
.login-logo-wrapper {
    margin-bottom: 1.5rem !important; /* Pode ajustar conforme necessário */
}

.login-logo-img {
    max-height: 80px; /* Ajuste a altura máxima da sua logo */
    width: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* ... (restante dos seus estilos, incluindo os da landing page) ... */

/* --- Outros Estilos (gerais, navbar, cards, tabelas, badges, footer, métricas, etc.) --- */
.navbar-brand {font-weight: bold;}
.card {border: none;transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;}
.card:hover:not(.no-hover-effect):not(.feature-card):not(.benefit-card) { /* Evitar conflito com hover da landing */
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
}
.card-title i {margin-right: 8px;}
.btn-primary { background-color: #007bff; border-color: #007bff; }
.btn-primary:hover { background-color: #0056b3; border-color: #0056b3; }
.btn-danger { background-color: #dc3545; border-color: #dc3545; }
.btn-danger:hover { background-color: #c82333; border-color: #bd2130; }
.btn-success { background-color: #28a745; border-color: #28a745; }
.btn-success:hover { background-color: #218838; border-color: #1e7e34; }
.btn-warning { background-color: #ffc107; border-color: #ffc107; color: #212529; }
.btn-warning:hover { background-color: #e0a800; border-color: #d39e00; color: #212529; }
.btn-info { background-color: #0dcaf0; border-color: #0dcaf0; color: #000; }
.btn-info:hover { background-color: #0baccc; border-color: #0aa1be; color: #000; }
.btn-outline-warning { color: #ffc107; border-color: #ffc107; }
.btn-outline-warning:hover { background-color: #ffc107; color: #212529; }
.table-hover tbody tr:hover {background-color: #e9ecef;}

.form-control:focus, 
.form-floating > .form-control:focus ~ label:not(.login-card .form-floating > label) {
    border-color: #764ba2; 
    box-shadow: 0 0 0 0.2rem rgba(118, 75, 162, 0.25);
}
.form-floating > label:not(.login-card .form-floating > label) { 
    color: #6c757d;
}

.badge.bg-danger { background-color: #dc3545 !important; }
.badge.bg-warning { background-color: #ffc107 !important; color: #212529 !important; }
.badge.bg-success { background-color: #28a745 !important; }
.badge.bg-info { background-color: #0dcaf0 !important; color: #212529 !important; }
.badge.bg-secondary { background-color: #6c757d !important; }
.badge.bg-primary { background-color: #0d6efd !important;}
.badge.bg-purple { background-color: #6f42c1 !important; color: white; } 
.footer {background-color: #343a40;color: white;text-align: center;padding: 1rem 0;width: 100%;font-size: 0.9em;z-index: 1030;}
.card.border-left-primary { border-left: .25rem solid #007bff !important; }
.card.border-left-success { border-left: .25rem solid #28a745 !important; }
.card.border-left-info { border-left: .25rem solid #0dcaf0 !important; }
.card.border-left-warning { border-left: .25rem solid #ffc107 !important; } 
.card.border-left-danger { border-left: .25rem solid #dc3545 !important; }
.card.border-left-secondary { border-left: .25rem solid #6c757d !important; }
.card.border-left-dark { border-left: .25rem solid #343a40 !important; }
.card.border-left-purple { border-left: .25rem solid #6f42c1 !important; } 
.text-xs { font-size: .7rem; }
.text-gray-300 { color: #dddfeb !important; }
.text-gray-800 { color: #5a5c69 !important; }
.font-weight-bold { font-weight: 700 !important; }
@media (max-width: 768px) {
    .audit-table { font-size: 0.85rem; }
    .audit-table td, .audit-table th { padding: 0.5rem 0.3rem; vertical-align: middle; }
    .audit-table th:nth-child(1), .audit-table td:nth-child(1) { min-width: 85px; word-break: normal; }
    .audit-table th:nth-child(2), .audit-table td:nth-child(2) { min-width: 70px; }
    .audit-table th:nth-child(3), .audit-table td:nth-child(3) { min-width: 100px; }
    .audit-table td:nth-child(3) .badge { font-size: 0.75rem; padding: 0.3em 0.5em; }
    .audit-table th:nth-child(4), .audit-table td:nth-child(4) { word-wrap: break-word; overflow-wrap: break-word; white-space: normal; }
}
@media (max-width: 576px) {
    .login-card { margin: 1rem; padding: 1.5rem; } 
    .audit-table { font-size: 0.8rem; }
    .audit-table td, .audit-table th { padding: 0.4rem 0.2rem; }
    .audit-table th:nth-child(1), .audit-table td:nth-child(1) { min-width: 75px;}
    .audit-table th:nth-child(2), .audit-table td:nth-child(2) { min-width: 60px;}
    .audit-table th:nth-child(3), .audit-table td:nth-child(3) { min-width: 90px;}
    .audit-table td:nth-child(3) .badge { white-space: normal; display: inline-block; max-width: 100%; }
}
select[multiple] {min-height: 100px;}
.backup-table th, .backup-table td { font-size: 0.9rem; vertical-align: middle; }
.backup-actions form { display: inline-block; margin-left: 5px; }
.chart-container {position: relative; margin: auto; height: 300px; width: 100%; max-width: 700px; margin-bottom: 2rem;}

/* Estilo para a logo na Navbar Principal */
.main-navbar .navbar-brand {
    padding-top: 0.25rem; /* Ajustar padding se necessário */
    padding-bottom: 0.25rem;
    margin-right: 1rem; /* Espaço padrão do brand */
    display: flex;
    align-items: center;
}

.main-navbar-logo {
    height: 32px; /* Ajuste esta altura conforme o design da sua logo e navbar */
    width: auto;  /* Mantém a proporção */
    /* margin-right: 0.5rem; Se você decidir adicionar texto ao lado da logo */
}


/* === Estilos Adicionais para Landing Page === */
body.landing-page {
    padding-top: 70px; 
    background: linear-gradient(135deg, #6a70ea 0%, #764ba2 100%); 
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.landing-navbar {
    background-color: rgba(30, 35, 70, 0.25); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.landing-navbar.scrolled {
    background-color: rgba(25, 30, 60, 0.95); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.landing-navbar .navbar-brand {
    font-weight: 600;
    color: #ffffff !important;
    display: flex; 
    align-items: center;
}
.landing-navbar-logo { 
    height: 35px; 
    width: auto;
    margin-right: 0.5rem; 
}


.landing-navbar .nav-link {
    color: #e0e0ff !important; 
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease; 
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
}

.landing-navbar .nav-link:hover,
.landing-navbar .nav-link.active { 
    color: #ffffff !important;
    font-weight: 500; 
    background-color: rgba(255,255,255,0.1);
}
.landing-navbar .nav-access-btn { 
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.landing-navbar .nav-access-btn:hover {
    background-color: #fff;
    color: #667eea !important;
}


.hero-section {
    padding: 100px 0 80px; 
    text-align: center;
    min-height: calc(100vh - 70px); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; 
}
.hero-section::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.08); 
    z-index: 0;
}
.hero-section .container {
    position: relative; 
    z-index: 1;
}

.hero-icon-wrapper { 
    width: 280px; 
    height: 280px; 
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08); 
    display: inline-flex; 
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; 
    box-shadow: 0 0 30px rgba(255,255,255,0.15); 
}
.hero-logo-solo { 
    max-width: 75%; 
    max-height: 75%;
    height: auto;
}


.hero-section h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.2rem); 
    font-weight: 700;
    margin-top: 20px; 
    margin-bottom: 25px; 
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3); 
    color: #fff;
}

.hero-section .lead {
    font-size: clamp(1.15rem, 2.5vw, 1.6rem); 
    margin-bottom: 40px; 
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7; 
    color: #e8eaf6; 
}

.btn-primary-lp {
    background-color: #fff;
    color: #667eea;
    border: 2px solid #fff; 
    padding: 15px 40px; 
    font-size: clamp(1.05rem, 2vw, 1.2rem); 
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.75px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-primary-lp:hover {
    background-color: transparent; 
    color: #fff; 
    border-color: #fff;
    transform: translateY(-4px) scale(1.03); 
    box-shadow: 0 10px 22px rgba(0,0,0,0.25); 
}
.btn-primary-lp i { 
    margin-right: 10px; 
}


.section {
    padding: 80px 0; 
}

.section-dark {
    background-color: #5f50a7; 
}
#benefits.section-dark { 
    background-color: #524292; 
}


.section-light-alt {
     background-color: #f7f8fc; 
     color: #343a40;
}

.section-title {
    text-align: center;
    margin-bottom: 60px; 
    font-size: clamp(2.2rem, 4.5vw, 3rem); 
    font-weight: 600;
    position: relative;
    padding-bottom: 20px; 
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px; 
    height: 5px; 
    background-color: #c6cfff; 
    border-radius: 3px;
}
.section-light-alt .section-title {
    color: #2c3e50; 
}
.section-light-alt .section-title::after {
    background-color: #667eea; 
}

/* Ajustes para a Seção de Funcionalidades */
.feature-card {
    background-color: #ffffff;
    color: #495057; 
    box-shadow: 0 6px 25px rgba(0,0,0,0.08); /* Sombra um pouco mais pronunciada */
    border: 1px solid #e7eaf0; /* Borda mais sutil */
    border-top: 4px solid transparent; /* Espaço para a borda no hover */
    border-radius: 15px; /* Aumentado o raio */
    padding: 35px 30px;
    margin-bottom: 0; /* Removido, pois gy-4 no row cuida disso */
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-top-color 0.35s ease; /* Transições mais longas */
    height: 100%; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-12px); /* Efeito de levantar um pouco mais */
    box-shadow: 0 18px 35px rgba(102,126,234,0.15); /* Sombra colorida e mais forte */
    border-top-color: #667eea; /* Borda colorida no topo ao passar o mouse */
}

.feature-icon-wrapper {
    width: 85px; /* Levemente aumentado */
    height: 85px;
    border-radius: 50%;
    background-color: rgba(102, 126, 234, 0.1); 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px; /* Ajustado */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Adicionada transição de transform */
}
.feature-card:hover .feature-icon-wrapper {
    background-color: rgba(102, 126, 234, 0.18); /* Um pouco mais escuro no hover */
    transform: scale(1.05); /* Ícone cresce um pouco */
}
.feature-icon {
    font-size: 2.6rem; /* Levemente aumentado */
    color: #667eea; 
}
.feature-card h3 {
    font-size: 1.45rem; /* Levemente aumentado */
    margin-bottom: 15px;
    font-weight: 600;
    color: #343a40; 
}
.feature-card p {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.65; /* Melhorada a legibilidade */
}


#benefits .section-title::after { 
    background-color: #b3baff; 
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.07); 
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px; 
    padding: 40px 30px; 
    transition: transform 0.35s ease-out, box-shadow 0.35s ease-out, background-color 0.35s ease-out;
    color: #e8eaf6; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center; 
}

.benefit-card:hover {
    transform: translateY(-12px) scale(1.02); 
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); 
    background-color: rgba(255, 255, 255, 0.1); 
}

.benefit-icon-wrapper {
    width: 90px; 
    height: 90px;
    border-radius: 50%;
    background-color: rgba(200, 200, 255, 0.12); 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px; 
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.benefit-card:hover .benefit-icon-wrapper {
    background-color: rgba(200, 200, 255, 0.2); 
    transform: scale(1.05); 
}

.benefit-icon {
    font-size: 2.8rem; 
    color: #d1d9ff; 
}

.benefit-card h3 {
    font-size: 1.6rem; 
    margin-bottom: 18px;
    font-weight: 600;
    color: #ffffff;
}

.benefit-card p {
    flex-grow: 1;
    font-size: 0.98rem; 
    line-height: 1.65;
    color: #d1d9ff; 
    max-width: 95%; 
}


.cta-section {
    padding: 80px 0; 
    text-align: center;
    background-color: #4a5ca9; 
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem); 
    margin-bottom: 25px;
    font-weight: 600;
    color: #fff;
}

.cta-section p {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem); 
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0ff;
}

.landing-footer {
    padding: 40px 0; 
    text-align: center;
    background-color: #2c2352; 
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75); 
}

.landing-footer p {
    margin-bottom: 8px; 
}
.landing-footer .small {
    font-size: 0.85rem; 
    color: rgba(255,255,255,0.55);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem; 
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon { 
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28230, 230, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important; 
}

@media (max-width: 991.98px) { 
    body.landing-page {
        padding-top: 60px; 
    }
    .hero-section { min-height: auto; padding: 80px 20px 60px; } 
    .landing-navbar .navbar-collapse {
        background-color: rgba(25, 30, 60, 0.98); 
        padding: 20px; 
        border-radius: 8px; 
        margin-top: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    .landing-navbar .nav-item {
        margin-bottom: 8px;
    }
     .landing-navbar .nav-access-btn {
        display: block;
        width: auto; 
        margin: 15px auto 5px; 
        padding: 0.5rem 1.5rem;
    }
    .hero-icon-wrapper { 
        width: 200px;
        height: 200px;
        margin-bottom: 25px;
    }
    .hero-logo-solo {
        max-width: 70%;
        max-height: 70%;
    }
    .feature-card { margin-bottom: 24px; } /* Adiciona margem inferior para cards de features em telas menores */
    .benefit-card { margin-bottom: 24px; } /* Adiciona margem inferior para cards de benefits em telas menores */

}

@media (max-width: 767.98px) { 
    .feature-card, .benefit-card {
        padding: 30px 20px; 
    }
     .hero-section { padding: 60px 15px 40px; } 
     .btn-primary-lp { padding: 12px 30px; } 

    .hero-icon-wrapper { 
        width: 160px;
        height: 160px;
        margin-bottom: 20px;
    }
     .hero-logo-solo {
        max-width: 65%;
        max-height: 65%;
    }
     .hero-section h1 {
        font-size: clamp(2.2rem, 8vw, 3rem); 
        margin-top: 15px;
    }
    .hero-section .lead {
        font-size: clamp(1rem, 4vw, 1.25rem); 
        margin-bottom: 30px;
    }
}