/* =============================================
   DESIGN MAVEN RECURSIVO + LANDING PAGE MODERNA
   ============================================= */
:root {
    --roxo-vibrante: #8b5cf6;
    --roxo-fundo: #4c1d95;
    --roxo-escuro: #2e1065;
    --branco: #ffffff;
    --verde-maven: #10b981;
    --vermelho-erro: #ef4444;
    --cinza-claro: #f8fafc;
    --texto-escuro: #1e293b;
    --sombra-suave: 0 20px 40px -12px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body { 
    background-color: var(--branco); 
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ========== LANDING PAGE (index.html) ========== */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    z-index: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}
.logo-area:hover { transform: scale(1.02); }
.header-logo-img { height: 42px; width: auto; }
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--roxo-fundo) 0%, var(--roxo-vibrante) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.5);
    padding: 6px;
    border-radius: 60px;
    backdrop-filter: blur(8px);
}
.nav-link {
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 500;
    color: var(--texto-escuro);
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 0.95rem;
}
.nav-link:hover { background: rgba(139, 92, 246, 0.1); color: var(--roxo-fundo); }
.nav-link.active {
    background: var(--roxo-vibrante);
    color: white;
    box-shadow: 0 8px 16px -6px rgba(139, 92, 246, 0.4);
}

.btn-login-header {
    background: var(--roxo-fundo);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(76, 29, 149, 0.25);
    transition: all 0.2s;
}
.btn-login-header i { font-size: 1rem; }
.btn-login-header:hover {
    background: var(--roxo-vibrante);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -8px var(--roxo-vibrante);
}

.landing-main {
    margin-top: 90px;
    flex: 1;
}

.landing-section {
    display: none;
    padding: 20px 30px 60px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    animation: fadeInUp 0.5s ease;
}
.landing-section.active-section { display: block; }

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

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}
.hero-content { flex: 1; }
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--roxo-escuro);
    margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--roxo-fundo), var(--roxo-vibrante));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 30px;
}
.hero-buttons { display: flex; gap: 16px; }
.btn-primary {
    background: var(--roxo-vibrante);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 12px 24px -8px rgba(139, 92, 246, 0.5);
    transition: 0.2s;
}
.btn-primary:hover { background: #7c3aed; transform: scale(1.02); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--roxo-fundo);
    color: var(--roxo-fundo);
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-outline:hover { background: var(--roxo-fundo); color: white; }

.hero-image { flex: 1; text-align: center; }
.floating-mascot {
    max-width: 100%;
    height: auto;
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
    margin-top: 40px;
}
.feature-card {
    background: white;
    padding: 30px 25px;
    border-radius: 24px;
    box-shadow: var(--sombra-suave);
    border: 1px solid rgba(139,92,246,0.1);
    transition: all 0.25s;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 30px 40px -12px rgba(76,29,149,0.15); }
.feature-icon { font-size: 2.8rem; color: var(--roxo-vibrante); margin-bottom: 20px; }

.section-container { padding: 20px 0; }
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--roxo-escuro);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 30px;
}
.service-item {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--sombra-suave);
    transition: 0.2s;
}
.service-item i { font-size: 2.5rem; color: var(--roxo-vibrante); margin-bottom: 15px; }
.service-item:hover { background: #f5f3ff; }

.proposta-content { max-width: 800px; margin: 0 auto; }
.proposta-destaque {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--roxo-fundo);
    margin-bottom: 30px;
    text-align: center;
}
.proposta-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.proposta-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}
.proposta-list i { color: var(--verde-maven); }

.about-text { max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.contact-card {
    background: white;
    padding: 30px 40px;
    border-radius: 30px;
    box-shadow: var(--sombra-suave);
    text-align: center;
    min-width: 200px;
}
.contact-card i { font-size: 2.5rem; color: var(--roxo-vibrante); margin-bottom: 15px; }

.landing-footer {
    background: var(--roxo-escuro);
    color: #ddd;
    padding: 40px 30px;
    margin-top: 40px;
}
.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.footer-info p { margin: 5px 0; }
.footer-social a {
    color: white;
    font-size: 1.8rem;
    margin: 0 10px;
    transition: 0.2s;
}
.footer-social a:hover { color: var(--verde-maven); }
.footer-copyright { text-align: right; }

/* ========== MODAL DE LOGIN (blur) ========== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-login-box {
    background: white;
    width: 420px;
    border-radius: 32px;
    padding: 40px 35px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
    position: relative;
    animation: modalFade 0.3s;
}
@keyframes modalFade { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}
.login-header-modal { text-align: center; margin-bottom: 30px; }
.modal-mascot { width: 70px; margin-bottom: 10px; }
.input-icon {
    position: relative;
    margin-bottom: 20px;
}
.input-icon i {
    position: absolute;
    left: 15px; top: 14px;
    color: var(--roxo-vibrante);
}
.input-icon input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 60px;
    font-size: 1rem;
    transition: 0.2s;
}
.input-icon input:focus { border-color: var(--roxo-vibrante); outline: none; }
.btn-login-modal {
    width: 100%;
    padding: 14px;
    background: var(--roxo-vibrante);
    color: white;
    border: none;
    border-radius: 60px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}
.btn-login-modal:hover { background: #7c3aed; }
.login-hint { text-align: center; margin-top: 20px; color: #64748b; }

/* ========== SISTEMA MAVEN (painel.html) ========== */
#sistema-maven {
    display: flex;
    height: 100vh;
    width: 100%;
}
.sidebar {
    width: 230px;
    background-color: var(--roxo-fundo);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 25px 15px;
    flex-shrink: 0;
}
.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 3px;
    color: #ede9fe;
}
.sidebar ul { list-style: none; flex-grow: 1; }
.sidebar li {
    padding: 12px 15px;
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s;
    font-weight: 500;
}
.sidebar li:hover { background-color: var(--roxo-vibrante); }
#btn-contato {
    background-color: var(--verde-maven);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-top: auto;
    margin-bottom: 10px;
}
.btn-sair {
    background-color: transparent;
    color: #fca5a5;
    border: 1px solid #fca5a5;
    padding: 10px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.btn-sair:hover { background-color: #fca5a5; color: var(--roxo-fundo); }

.main-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    background: #f3f4f6;
}
#tela-dashboard {
    width: 100%;
    max-width: 1050px;
}
.welcome-screen {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.mascote-img {
    width: 300px;
    animation: float 3s infinite;
}
.card-area {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}
#btn-novo-cadastro {
    background-color: var(--roxo-vibrante);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
input, select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9fafb;
}
.btn-salvar-confirm {
    background: var(--roxo-vibrante);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
}
.btn-cancelar {
    background: #e5e7eb;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin-left: 10px;
}
.tabela-container { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
}
th {
    padding: 15px;
    color: var(--roxo-fundo);
    border-bottom: 2px solid #eee;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
td {
    padding: 18px 15px;
    border-bottom: 1px solid #f9f9f9;
    vertical-align: middle;
    font-size: 0.95rem;
}
.td-acoes { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.btn-acao {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    opacity: 0.6;
    transition: 0.3s;
}
.btn-acao:hover { opacity: 1; color: var(--roxo-vibrante); transform: scale(1.1); }
.link-anexo {
    font-size: 11px;
    color: var(--roxo-vibrante);
    text-decoration: none;
    display: block;
    margin-top: 2px;
    font-weight: 600;
}
.link-anexo:hover { text-decoration: underline; }
.container-graficos-interativos {
    display: flex;
    height: 180px;
    gap: 15px;
    padding: 15px;
    background-color: #f9f9fb;
    border-radius: 12px;
    margin-top: 10px;
    border: 1px solid #eee;
}
.container-graficos-interativos canvas { flex: 1; max-width: 48%; }
.status-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
.status-ativo { background: #dcfce7; color: #166534; }
.status-inativo { background: #fee2e2; color: #991b1b; }

/* Modal corporativo (suporte) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: white;
    width: 420px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.modal-header {
    background: var(--roxo-fundo);
    color: white;
    padding: 20px;
    text-align: center;
}
.modal-header h2 { font-size: 1.4rem; font-weight: 800; margin: 0; }
.close {
    position: absolute;
    top: 15px; right: 20px;
    color: #aaa;
    cursor: pointer;
    font-size: 24px;
}
.close:hover { color: white; }
.modal-body { padding: 30px; text-align: center; display: flex; flex-direction: column; gap: 15px; color: #555; }

/* ========== RESPONSIVO ========== */
@media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; }
    .nav-menu { order: 3; margin-top: 10px; width: 100%; justify-content: center; }
    .hero { flex-direction: column; text-align: center; }
    .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    #sistema-maven { flex-direction: column; }
    .sidebar { width: 100%; height: auto; padding: 15px; }
    .main-content { padding: 20px; }
}
