* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo-mini {
    width: 32px;
    height: 32px;
    background: #1a1a1a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-left:hover {
    opacity: 0.8;
}

.brand {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-link.login-btn {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.nav-link.login-btn:hover {
    background: #f5f5f5;
    border-color: #1a1a1a;
}

.nav-link.signup-btn {
    padding: 8px 16px;
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    text-decoration: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.nav-link.signup-btn:hover {
    background: #333333;
    border-color: #333333;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #666666;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #1a1a1a;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #1a1a1a;
}

.nav-link.active::after {
    width: 100%;
}

/* Main Content Layout */
.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 73px);
}

.docs-sidebar {
    background: #f9f9f9;
    border-right: 1px solid #e5e5e5;
    padding: 32px 0;
    max-height: calc(100vh - 73px);
    overflow-y: auto;
    position: sticky;
    top: 73px;
}

.docs-sidebar-content {
    padding: 0 20px;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999999;
    margin-bottom: 12px;
    padding-left: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
    color: #666666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.sidebar-link:hover {
    background: #e5e5e5;
    color: #1a1a1a;
}

.sidebar-link.active {
    background: #1a1a1a;
    color: #ffffff;
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Main Content */
.docs-main {
    padding: 60px;
    background: #ffffff;
    max-width: 900px;
}

.docs-main h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.docs-main > p:first-of-type {
    font-size: 17px;
    color: #666666;
    margin-bottom: 40px;
    line-height: 1.7;
}

.docs-main h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #1a1a1a;
    scroll-margin-top: 100px;
    letter-spacing: -0.3px;
}

.docs-main h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #1a1a1a;
    scroll-margin-top: 100px;
}

.docs-main p {
    font-size: 15px;
    color: #666666;
    margin-bottom: 16px;
    line-height: 1.8;
}

.docs-main ul,
.docs-main ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

.docs-main li {
    font-size: 15px;
    color: #666666;
    margin-bottom: 12px;
    line-height: 1.8;
}

.docs-main a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 2px solid #e5e5e5;
    transition: border-color 0.2s;
    font-weight: 500;
}

.docs-main a:hover {
    border-bottom-color: #1a1a1a;
}

.code-block {
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.6;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.feature-item {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s;
}

.feature-item:hover {
    border-color: #1a1a1a;
    background: #ffffff;
}

.feature-item-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
}

.feature-item-icon svg {
    width: 100%;
    height: 100%;
    stroke: #1a1a1a;
    stroke-width: 2;
    fill: none;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.feature-item p {
    font-size: 14px;
    color: #999999;
    margin: 0;
}

.section-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 50px 0;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 40px 24px;
    border-top: 1px solid #333333;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link {
    color: #999999;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 24px;
    text-align: center;
    color: #999999;
    font-size: 13px;
}

/* Table of Contents */
.docs-toc {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin: 32px 0;
}

.docs-toc h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.docs-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-toc li {
    margin-bottom: 8px;
}

.docs-toc a {
    color: #666666;
    font-size: 14px;
    border: none;
    transition: color 0.2s;
}

.docs-toc a:hover {
    color: #1a1a1a;
}

/* Mobile sidebar toggle button */
.mobile-nav-bar {
    display: none;
}

.mobile-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.mobile-sidebar-toggle:hover {
    background: #ebebeb;
}

.mobile-sidebar-toggle .chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.mobile-sidebar-toggle.open .chevron {
    transform: rotate(180deg);
}

/* Scrollbar Styling */
.docs-sidebar::-webkit-scrollbar {
    width: 8px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-container { grid-template-columns: 240px 1fr; }
    .docs-main { padding: 40px 32px; }
}

@media (max-width: 768px) {
    .mobile-nav-bar {
        display: block;
        padding: 10px 16px;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
        position: sticky;
        top: 73px;
        z-index: 10;
    }

    .docs-container { grid-template-columns: 1fr; }

    .docs-sidebar {
        display: none;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        position: static;
        max-height: 280px;
        overflow-y: auto;
        padding: 8px 0;
    }

    .docs-sidebar.mobile-open {
        display: block;
    }

    .docs-main { padding: 32px 20px; }
    .docs-main h1 { font-size: 32px; }
    .docs-main h2 { font-size: 24px; }
    .feature-list { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 24px; }
    .section-title { font-size: 22px; margin-top: 36px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 480px) {
    .docs-main { padding: 24px 16px; }
    .page-header h1 { font-size: 20px; }
    .section-title { font-size: 18px; }
    .footer-grid { grid-template-columns: 1fr; }
}
