@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-link {
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    border-radius: 0.5rem;
    text-decoration: none;
}

.sidebar-link:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.sidebar-link.active {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #3b82f6;
    font-weight: 600;
    padding-left: calc(0.75rem - 4px);
}

.sidebar-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 0 0.75rem;
}

.sidebar-category:first-child {
    margin-top: 0;
}

.doc-section {
    scroll-margin-top: 100px;
}

.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

code {
    background: #f1f5f9;
    color: #1e293b;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Monaco', 'Courier New', monospace;
}

.code-block code {
    background: transparent;
    color: inherit;
    padding: 0;
}

details {
    cursor: pointer;
}

details summary {
    user-select: none;
}

details[open] summary {
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    #docs-sidebar {
        display: none;
    }
    
    #docs-sidebar.mobile-open {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 40;
        overflow-y: auto;
        padding: 1.5rem;
    }
}

