:root {
    --primary: #2d4a4a;
    --accent: #5bb5b5;
    --accent-light: #7fd4d4;
    --accent-dark: #3a9494;
    
    --bg: #f5f7f9;
    --bg-secondary: #e8ecf0;
    --card-bg: #ffffff;
    --text: #1a2b3c;
    --text-secondary: #4a5f7f;
    --text-muted: #6b7f99;
    --border: #d4dce6;
    --shadow: 0 2px 8px rgba(45, 74, 74, 0.08);
    --gradient: linear-gradient(135deg, #5bb5b5 0%, #3a9494 100%);
    
    --code-bg: #f6f8fa;
    --code-border: #e1e4e8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.docs-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.docs-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.back-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent-dark);
}

/* Main Content */
.docs-main {
    padding-top: 80px;
    min-height: 80vh;
}

.docs-main .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    padding: 40px 20px;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-header {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 12px;
    border-left: 2px solid transparent;
    transition: all 0.3s;
    font-size: 14px;
}

.sidebar-nav a:hover {
    color: var(--accent);
    border-left-color: var(--accent);
    background: rgba(91, 181, 181, 0.05);
}

.sidebar-nav a.active {
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

/* Documentation Content */
.docs-content {
    max-width: 900px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px 50px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.loading {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

/* Markdown Styles */
.docs-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.2;
}

.docs-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.docs-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--text);
}

.docs-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.docs-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
}

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

.docs-content li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.docs-content strong {
    color: var(--text);
    font-weight: 600;
}

.docs-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

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

.docs-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

/* Code Blocks */
.docs-content code {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 14px;
    color: #e83e8c;
}

.docs-content pre {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.docs-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;
}

/* Tables */
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 14px;
}

.docs-content th {
    background: var(--bg-secondary);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border);
}

.docs-content td {
    padding: 12px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.docs-content tr:nth-child(even) {
    background: var(--bg);
}

/* Blockquotes */
.docs-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 15px 20px;
    margin: 25px 0;
    background: rgba(91, 181, 181, 0.05);
    color: var(--text-secondary);
}

/* CTA Section */
.docs-cta {
    background: var(--bg-secondary);
    padding: 60px 20px;
    text-align: center;
}

.docs-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text);
}

.docs-cta p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(91, 181, 181, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 181, 181, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer */
.docs-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.docs-footer a {
    color: var(--accent);
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 968px) {
    .docs-main .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .docs-sidebar {
        position: static;
        max-height: none;
        background: var(--card-bg);
        padding: 20px;
        border-radius: 8px;
        box-shadow: var(--shadow);
    }
    
    .docs-content {
        padding: 30px 20px;
    }
    
    .docs-content h1 {
        font-size: 32px;
    }
    
    .docs-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .docs-content {
        padding: 20px 15px;
    }
    
    .docs-content table {
        font-size: 12px;
    }
    
    .docs-content th,
    .docs-content td {
        padding: 8px;
    }
}
