:root {
    --docs-bg: #f9fafb;
    --docs-sidebar: #ffffff;
    --docs-text: #374151;
    --docs-heading: #111827;
    --docs-code-bg: #1e1e1e;
    --docs-code-text: #d4d4d4;
    --docs-primary: #1e3a8a;
    --docs-primary-light: #3b82f6;
    --docs-border: #e2e8f0;
}

body.docs-body {
    background-color: var(--docs-bg);
    color: var(--docs-text);
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.docs-navbar {
    background: linear-gradient(135deg, var(--docs-primary), var(--docs-primary-light));
    color: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.docs-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.docs-nav-content .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.docs-nav-content .logo h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.btn-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-home:hover {
    background: rgba(255, 255, 255, 0.25);
}

.docs-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.docs-sidebar {
    width: 280px;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 2rem;
    border-right: 1px solid var(--docs-border);
    background: var(--docs-sidebar);
}

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

.docs-sidebar li {
    margin-bottom: 0.25rem;
}

.docs-sidebar a {
    text-decoration: none;
    color: var(--docs-text);
    font-weight: 500;
    font-size: 0.9375rem;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
    background: #eff6ff;
    color: var(--docs-primary-light);
}

.docs-content {
    flex: 1;
    padding: 3rem 4rem;
    max-width: 900px;
}

.docs-section {
    margin-bottom: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    border: 1px solid var(--docs-border);
}

.docs-section h2 {
    color: var(--docs-heading);
    font-size: 1.875rem;
    font-weight: 700;
    border-bottom: 2px solid var(--docs-border);
    padding-bottom: 0.75rem;
    margin-top: 0;
    margin-bottom: 2rem;
}

.docs-section h3 {
    color: var(--docs-heading);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.docs-section p {
    margin-bottom: 1.25rem;
}

.docs-section ul,
.docs-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

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

.docs-section strong {
    color: var(--docs-heading);
}

code {
    font-family: 'Fira Code', monospace;
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875em;
    color: #0f172a;
}

.code-wrapper {
    position: relative;
    margin: 1.5rem 0;
    border-radius: 8px;
    background: var(--docs-code-bg);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.code-wrapper pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-wrapper code {
    background: none;
    color: var(--docs-code-text);
    padding: 0;
    font-size: 0.875rem;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copy-btn.copied {
    background: #10b981;
    border-color: #10b981;
}

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

    .docs-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--docs-border);
        padding: 1.5rem;
    }

    .docs-content {
        padding: 2rem 1rem;
    }

    .docs-section {
        padding: 1.5rem;
    }
}