@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    /* Azul Royal Clean */
    --primary-dark: #1e40af;
    --secondary: #475569;
    /* Cinza Slate */
    --accent: #10b981;
    /* Verde Esmeralda (Dinheiro/Sucesso) */
    --bg-body: #ffffff;
    --bg-sidebar: #f8fafc;
    --text-main: #1e293b;
    /* Cinza Quase Preto */
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --code-bg: #f1f5f9;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Clean */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Navbar Minimalista */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0 2rem;
    /* Espaçamento lateral */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand img {
    width: 220px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.btn-cta {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-cta:hover {
    background: var(--primary-dark);
}

/* Layout Principal */
.docs-layout {
    display: flex;
    margin-top: 70px;
    /* Altura da navbar */
    min-height: calc(100vh - 70px);
}

/* Sidebar Limpa */
.sidebar {
    width: 280px;
    position: fixed;
    top: 70px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    z-index: 900;
}

.menu-section {
    margin-bottom: 2.5rem;
}

.menu-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    margin-bottom: 2px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.menu-link:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.menu-link.active {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
}

.menu-link i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Área de Conteúdo */
.content-wrapper {
    margin-left: 280px;
    /* Largura da sidebar */
    flex: 1;
    padding: 4rem 5rem;
    /* Padding generoso */
    max-width: 1000px;
    /* Largura de leitura confortável */
}

/* Tipografia de Artigo */
.doc-section {
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4rem;
}

.doc-section:last-child {
    border-bottom: none;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #334155;
}

p {
    margin-bottom: 1.5rem;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
}

strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Elementos Visuais de Documentação */
.highlight-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.highlight-box h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

code {
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.step-list {
    counter-reset: course-step;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.step-item {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2.5rem;
}

.step-item::before {
    counter-increment: course-step;
    content: counter(course-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--secondary);
    font-size: 1rem;
    z-index: 2;
}

.step-item.active-step::before {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.step-item::after {
    content: '';
    position: absolute;
    left: 1.15rem;
    top: 2.5rem;
    bottom: -2.5rem;
    width: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step-item:last-child::after {
    display: none;
}

/* UI Mockups (Prints Simulados) */
.ui-mockup {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    overflow: hidden;
}

.ui-header {
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid-var(--border-color);
    display: flex;
    gap: 6px;
}

.ui-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.ui-body {
    padding: 1.5rem;
}

/* Responsividade Avançada */
@media (max-width: 992px) {
    .navbar {
        padding: 0 1.5rem;
        height: 60px;
        position: relative;
        /* Para o menu absoluto funcionar */
    }

    .nav-brand img {
        width: 140px;
    }

    .desktop-only {
        display: none !important;
    }

    /* Botão Mobile */
    .mobile-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-main);
        cursor: pointer;
        padding: 0.5rem;
    }

    /* Menu Mobile Dropdown */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        gap: 1rem;
        align-items: stretch;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .docs-layout {
        margin-top: 60px;
    }

    .sidebar {
        display: none;
        /* Oculta sidebar em tablets/mobile por padrão */
    }

    /* Mostrar sidebar se tiver classe active (futuro toggle de sidebar) */
    .sidebar.active {
        display: block;
        position: fixed;
        width: 100%;
        height: calc(100vh - 60px);
        z-index: 800;
    }

    .content-wrapper {
        margin-left: 0;
        padding: 2rem 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-top: 2rem;
    }
}

/* Desktop Styles para elementos novos */
@media (min-width: 993px) {
    .mobile-toggle {
        display: none;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        /* Oculta links do menu no mobile, ideal seria um menu toggle */
    }

    .nav-brand span {
        display: none;
        /* Oculta texto "Central de Ajuda" em telas muito pequenas */
    }

    /* Exibir apenas o botão CTA principal se possível, ou simplificar */
    .navbar {
        justify-content: center;
    }

    .nav-brand {
        margin: 0 auto;
    }
}