.doc-layout {
    display: flex;
    min-height: calc(100vh - 200px);
    background-color: #f5f7fb;
}

.doc-sidebar {
    width: 280px;
    background-color: #eef2ff;
    border-right: 1px solid #e2e8f0;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-content {
    padding: 2rem 0;
}

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

.sidebar-section:first-child {
    padding-top: 0;
}

.sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding: 0 1.5rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background-color: rgba(29, 78, 216, 0.06);
    color: #1d4ed8;
}

.sidebar-link.active {
    background-color: rgba(29, 78, 216, 0.12);
    color: #1d4ed8;
    border-left-color: #1d4ed8;
    font-weight: 600;
}

.sidebar-icon {
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.doc-content {
    flex: 1;
    padding: 3rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper {
    max-width: 100%;
}

.doc-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.doc-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.doc-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

.heading-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.doc-subheading {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.doc-paragraph {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.25rem;
}

.doc-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.doc-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.doc-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1d4ed8;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.5;
}

.doc-list li strong {
    color: var(--text-dark);
    font-weight: 600;
}

.doc-code {
    background-color: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 1rem 0;
}

@media (max-width: 1024px) {
    .doc-layout {
        flex-direction: column;
    }

    .doc-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .doc-content {
        padding: 2rem 2rem;
    }

    .doc-main-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .doc-content {
        padding: 1.5rem 1.5rem;
    }

    .doc-main-title {
        font-size: 1.75rem;
    }

    .doc-heading {
        font-size: 1.5rem;
    }

    .doc-subheading {
        font-size: 1.2rem;
    }

    .doc-paragraph {
        font-size: 1rem;
    }

    .sidebar-content {
        padding: 1.5rem 0;
    }

    .sidebar-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .doc-content {
        padding: 1rem 1rem;
    }

    .doc-section {
        margin-bottom: 3rem;
    }

    .doc-heading {
        font-size: 1.35rem;
        flex-wrap: wrap;
    }

    .heading-icon {
        font-size: 1.25rem;
    }
}
