.docs-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 80px;
}

.docs-sidebar {
    width: 280px;
    position: fixed;
    top: 80px;
    left: 0;
    height: calc(100vh - 80px);
    background: rgba(15, 15, 26, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.sidebar-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-size: 0.9rem;
}

.sidebar-search input::placeholder {
    color: var(--muted);
}

.sidebar-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.sidebar-nav {
    margin-top: 2rem;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.nav-section ul {
    list-style: none;
}

.nav-section li {
    margin-bottom: 0.25rem;
}

.nav-section a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-section a:hover {
    color: var(--light);
    background: rgba(255, 255, 255, 0.05);
}

.nav-section a.active {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.docs-content {
    margin-left: 280px;
    padding: 2rem 3rem;
    max-width: 800px;
}

.docs-content section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.docs-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--light);
}

.docs-content p {
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.docs-content .lead {
    font-size: 1.1rem;
    color: var(--light);
}

.docs-content ul, .docs-content ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--muted);
}

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

.docs-content strong {
    color: var(--light);
}

.docs-content a {
    color: var(--primary);
    text-decoration: none;
}

.docs-content a:hover {
    text-decoration: underline;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header span {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--muted);
}

.copy-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--muted);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.code-block pre {
    padding: 1rem 1.5rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    color: var(--light);
    line-height: 1.6;
}

.code-inline {
    background: rgba(139, 92, 246, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    color: var(--primary);
}

.callout {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.callout.warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.callout strong {
    color: #FBBF24;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.api-table th, .api-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.api-table th {
    color: var(--light);
    font-weight: 600;
}

.api-table td {
    color: var(--muted);
}

.method {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: monospace;
}

.method.get {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.method.post {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.method.delete {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

@media (max-width: 1024px) {
    .docs-sidebar {
        display: none;
    }

    .docs-content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }
}
