:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #f0f3f6;
    --text-primary: #1f2328;
    --text-secondary: #656d76;
    --border: #d0d7de;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    color: var(--text-primary);
    line-height: 1.3;
}

p {
    color: var(--text-secondary);
}

code {
    background: var(--bg-tertiary);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-outline {
    border: 1px solid var(--border);
    background: transparent;
}

.btn-outline:hover {
    background: var(--bg-secondary);
}

/* Doc Layout */
.doc-container {
    display: flex;
    min-height: 100vh;
}

.doc-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 32px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.doc-main {
    flex: 1;
    margin-left: 260px;
    padding: 60px 80px;
    max-width: 800px;
}

.doc-logo {
    padding: 0 24px;
    margin-bottom: 32px;
}

.doc-logo img {
    height: 32px;
}

.doc-nav-group {
    margin-bottom: 24px;
}

.doc-nav-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 24px;
    margin-bottom: 12px;
}

.doc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-nav li {
    margin: 0;
}

.doc-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 10px 24px;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.doc-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.doc-nav a.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-left-color: #2563eb;
    font-weight: 500;
}

/* Doc Content */
.doc-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.doc-content .intro,
.doc-content .doc-intro {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
}

.doc-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 20px;
}

.doc-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.doc-content p {
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.doc-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 20px;
}

.doc-content li {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.doc-content li::marker {
    color: var(--text-secondary);
}

/* Callouts */
.doc-content .callout {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
}

.doc-content .callout-title {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-content .callout p {
    margin: 0;
    font-size: 14px;
}

/* Steps */
.doc-content .step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.doc-content .step-number {
    background: #2563eb;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.doc-content .step-content h4 {
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.doc-content .step-content p {
    margin: 0;
    font-size: 16px;
}

/* Changelog */
.changelog-entry {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.changelog-entry:last-child {
    border-bottom: none;
}

.changelog-version {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.changelog-date {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

.changelog-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.tag-new {
    background: #dcfce7;
    color: #166534;
}

.tag-improved {
    background: #dbeafe;
    color: #1e40af;
}

.tag-fixed {
    background: #fee2e2;
    color: #991b1b;
}



.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
}

.changelog-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
}

/* Mobile */
@media (max-width: 768px) {
    .doc-sidebar {
        display: none;
    }
    .doc-main {
        margin-left: 0;
        padding: 40px 24px;
    }
}

/* Changelog */
.doc-content .changelog-entry {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.doc-content .changelog-entry:last-child {
    border-bottom: none;
}

.doc-content .changelog-version {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.doc-content .changelog-date {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

.doc-content .changelog-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.doc-content .tag-new {
    background: #dcfce7;
    color: #166534;
}

.doc-content .tag-improved {
    background: #dbeafe;
    color: #1e40af;
}

.doc-content .tag-fixed {
    background: #fee2e2;
    color: #991b1b;
}

.doc-content .changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-content .changelog-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
}

.doc-content .changelog-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
}