/* docs.css */

.docs-main {
    padding-top: 5rem; /* Adjust for fixed navbar height */
    padding-bottom: 4rem;
}

.docs-container {
    display: flex;
    gap: 2rem;
}

.docs-sidebar {
    width: 250px;
    background-color: var(--bg-darker);
    padding: 1.5rem;
    border-radius: 8px;
    position: sticky; /* Make sidebar sticky */
    top: 6rem; /* Adjust based on navbar height + some spacing */
    height: fit-content; /* Adjust height to content */
}

.docs-sidebar h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.docs-sidebar ul {
    list-style: none;
    padding: 0;
}

.docs-sidebar li {
    margin-bottom: 0.5rem;
}

.docs-sidebar li a {
    color: var(--text-primary);
    text-decoration: none;
    display: block; /* Make links fill the li width for better click area */
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.docs-sidebar li a:hover,
.docs-sidebar li a.active { /* You can add JS to add 'active' class to current section */
    color: var(--primary-color);
}

.docs-sidebar ul ul {
    margin-left: 1rem; /* Indent nested lists */
}

.docs-content {
    flex: 1; /* Take remaining space */
    padding: 1.5rem;
}

.docs-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--text-secondary);
    padding-bottom: 0.5rem;
}

.docs-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.docs-content p {
    margin-bottom: 1rem;
}

.docs-content ul, .docs-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.docs-content li {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments for sidebar */
@media (max-width: 992px) { /* Adjust breakpoint as needed */
    .docs-container {
        flex-direction: column; /* Stack sidebar and content on smaller screens */
    }
    .docs-sidebar {
        width: 100%;
        position: static; /* No sticky sidebar on smaller screens */
        margin-bottom: 2rem;
    }
}