/* Documentation Page Styles */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    margin-top: 100px;
}

.page-title {
    color: var(--highlight-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.docs-container {
    display: flex;
    gap: 40px;
}

.toc {
    flex: 0 0 250px;
    position: sticky;
    top: 120px;
    height: fit-content;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    border-radius: 10px;
    padding: 15px;
}

/* Custom scrollbar for TOC */
.toc::-webkit-scrollbar {
    width: 8px;
}

.toc::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.toc::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 4px;
}

.toc::-webkit-scrollbar-thumb:hover {
    background: var(--highlight-color);
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    color: var(--light-color);
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.toc a:hover,
.toc a.active {
    background-color: var(--main-color);
    color: var(--highlight-color);
}

.content {
    flex: 1;
}

.documentation-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.documentation-section h2 {
    color: var(--highlight-color);
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 10px;
}

.documentation-section h3 {
    color: var(--highlight-color);
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.documentation-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.documentation-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.documentation-section li {
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .docs-container {
        flex-direction: column;
    }

    .toc {
        position: static;
        flex: none;
    }

    .toc ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .toc li {
        margin-bottom: 0;
    }

    .toc a {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
}