
.docs-container {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 2rem;
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
}

.docs-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 1.5rem;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.sidebar-sticky::-webkit-scrollbar {
    width: 6px;
}

.sidebar-sticky::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 3px;
}

.sidebar-sticky::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

.sidebar-sticky::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

.sidebar-title {
    color: #a78bfa;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    padding-bottom: 0.75rem;
}

.docs-nav.accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: rgba(139, 92, 246, 0.2);
    --bs-accordion-btn-focus-box-shadow: none;
}

.docs-nav .accordion-item {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.docs-nav .accordion-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
    transform: translateX(2px);
}

.docs-nav .accordion-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 15, 15, 0.5);
    color: #a78bfa;
    font-weight: 600;
    padding: 0.875rem 1rem;
    border: none;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.docs-nav .accordion-button-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #8b5cf6, #a78bfa);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.docs-nav .accordion-button-wrapper:not(.collapsed)::before {
    transform: scaleY(1);
}

.docs-nav .accordion-button-wrapper:not(.collapsed) {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.docs-nav .accordion-button-wrapper:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateX(2px);
}

.docs-nav .accordion-link {
    flex: 1;
    color: inherit;
    text-decoration: none;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
}

.docs-nav .accordion-link:hover {
    color: #c4b5fd;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.4);
}

.docs-nav .accordion-toggle {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.docs-nav .accordion-toggle:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: scale(1.1);
}

.docs-nav .accordion-toggle:active {
    transform: scale(0.95);
}

.docs-nav .accordion-icon {
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a78bfa'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(1.2) drop-shadow(0 0 4px rgba(139, 92, 246, 0.5));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-nav .accordion-button-wrapper:not(.collapsed) .accordion-icon {
    transform: rotate(180deg);
    filter: brightness(1.5) drop-shadow(0 0 8px rgba(167, 139, 250, 0.8));
}

.docs-nav .accordion-toggle:hover .accordion-icon {
    filter: brightness(1.4) drop-shadow(0 0 6px rgba(139, 92, 246, 0.7));
}

.docs-nav .accordion-button-wrapper:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25);
    outline: none;
}

.docs-nav .accordion-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
    opacity: 0;
}

.docs-nav .accordion-collapse.show {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease 0.1s;
}

.docs-nav .accordion-body {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0.75rem;
    animation: docsSlideIn 0.4s ease forwards;
}

@keyframes docsSlideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.docs-nav .accordion-body .nav {
    padding-left: 0;
}

.docs-nav .accordion-body .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 0.125rem;
    opacity: 0;
    animation: docsFadeInUp 0.3s ease forwards;
}

.docs-nav .accordion-collapse.show .accordion-body .nav-link:nth-child(1) {
    animation-delay: 0.1s;
}

.docs-nav .accordion-collapse.show .accordion-body .nav-link:nth-child(2) {
    animation-delay: 0.15s;
}

.docs-nav .accordion-collapse.show .accordion-body .nav-link:nth-child(3) {
    animation-delay: 0.2s;
}

.docs-nav .accordion-collapse.show .accordion-body .nav-link:nth-child(4) {
    animation-delay: 0.25s;
}

@keyframes docsFadeInUp {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.docs-nav .nav-link,
.docs-toc .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-left: 2px solid transparent;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    border-radius: 6px;
}

.docs-nav .nav-link:hover,
.docs-toc .nav-link:hover {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
    border-left-color: #8b5cf6;
    transform: translateX(4px);
}

.docs-toc .nav-link.active {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.2);
    border-left-color: #8b5cf6;
    font-weight: 600;
}

.docs-main {
    min-width: 0;
}

.docs-content {
    background: rgba(15, 15, 15, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 3rem;
    backdrop-filter: blur(5px);
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.docs-content h2 {
    font-size: 2rem;
    color: #a78bfa;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.docs-content h3 {
    font-size: 1.5rem;
    color: #c4b5fd;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.docs-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.docs-content ul,
.docs-content ol {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.docs-content li {
    margin-bottom: 0.5rem;
}

.docs-content code {
    background: rgba(139, 92, 246, 0.2);
    color: #ddd6fe;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.docs-content pre {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.docs-content pre code {
    background: transparent;
    padding: 0;
    color: #e0e7ff;
    font-size: 0.95em;
    line-height: 1.6;
}

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

@media (max-width: 1200px) {
    .docs-container {
        grid-template-columns: 220px 1fr 220px;
        gap: 1.5rem;
    }
    
    .docs-content {
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .docs-container {
        grid-template-columns: 1fr;
        margin-top: 70px;
    }
    
    .docs-sidebar-left {
        order: -1;
    }
    
    .docs-sidebar-right {
        display: none;
    }
    
    .sidebar-sticky {
        position: relative;
        top: 0;
        max-height: none;
    }
    
    .docs-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .docs-content h1 {
        font-size: 2rem;
    }
    
    .docs-content h2 {
        font-size: 1.5rem;
    }
    
    .docs-content h3 {
        font-size: 1.25rem;
    }
    
    .docs-content {
        padding: 1rem;
    }
}
