/* Docs Specific Styles */
:root {
    --sidebar-width: 280px;
}

body.docs-page {
    background: #020617;
    color: #cbd5e1;
    overflow-x: hidden;
}

.docs-container {
    display: flex;
    padding-top: 100px;
    gap: 40px;
    min-height: 100vh;
}

/* Sidebar */
.docs-sidebar {
    width: var(--sidebar-width);
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
}

.sidebar-nav .nav-group {
    margin-bottom: 32px;
}

.sidebar-nav h4 {
    color: #f8fafc;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    opacity: 0.8;
}

.sidebar-nav a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    padding: 8px 0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.sidebar-nav a:hover {
    color: #6366f1;
}

.sidebar-nav a.active {
    color: #f8fafc;
    font-weight: 600;
    border-left: 2px solid #6366f1;
    padding-left: 12px;
    margin-left: -2px;
}

/* Content Area */
.docs-content {
    flex: 1;
    max-width: 800px;
    padding-bottom: 100px;
    padding-right: 20px;
}

.docs-content section {
    margin-bottom: 80px;
    scroll-margin-top: 120px;
}

.docs-content h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    color: #f8fafc;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.docs-content h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: #f8fafc;
    margin-bottom: 20px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 700;
}

.docs-content p.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 32px;
}

.docs-content p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.docs-content ul, .docs-content ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.docs-content li {
    margin-bottom: 12px;
}

/* UI Elements */
.info-card {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 16px;
    margin: 32px 0;
}

.card-icon {
    font-size: 1.5rem;
}

.code-snippet {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    margin: 20px 0;
    overflow-x: auto;
    white-space: pre;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 0.95rem;
}

th {
    text-align: left;
    color: #f8fafc;
    padding: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: #6366f1;
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s;
}

.menu-toggle:active {
    transform: scale(0.9);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Scrollbar */
.docs-sidebar::-webkit-scrollbar {
    width: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .docs-container {
        flex-direction: column;
        padding: 0 24px;
    }

    .docs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: #0f172a;
        padding: 100px 24px 40px;
        transform: translateX(-100%);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    }

    .docs-sidebar.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: flex;
    }

    .docs-content {
        padding: 0;
    }

    .docs-content h1 {
        margin-top: 40px;
    }
}
