:root {
    --docs-bg: #050508;
    --docs-sidebar: #0A0A0D;
    --docs-text: #A1A1AA;
    --docs-primary: #DC2626;
    --docs-primary-hover: #F87171;
    --docs-border: rgba(255, 255, 255, 0.05);
    --docs-code-bg: #121214;
}

body.docs-page {
    background-color: var(--docs-bg);
    color: var(--docs-text);
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.docs-container {
    display: flex;
    flex: 1;
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

.docs-sidebar {
    width: 300px;
    background-color: transparent;
    border-right: 1px solid var(--docs-border);
    height: calc(100vh - 100px);
    position: sticky;
    top: 100px;
    left: 0;
    overflow-y: auto;
    padding: 2.5rem 2rem;
    z-index: 50;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.docs-sidebar::-webkit-scrollbar {
    display: none;
}

.docs-sidebar h3 {
    color: #E4E4E7;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
    margin-top: 2rem;
    opacity: 0.8;
    font-weight: 700;
}
.docs-sidebar h3:first-child { margin-top: 0; }

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

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

.docs-sidebar a {
    color: #71717A;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.docs-sidebar a:hover {
    color: #E4E4E7;
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(4px);
}

.docs-sidebar a.active {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0) 100%);
    color: #FFFFFF;
    border-left: 2px solid var(--docs-primary);
    font-weight: 600;
    transform: translateX(6px);
    box-shadow: -2px 0 10px rgba(220, 38, 38, 0.2);
}

.docs-content {
    flex: 1;
    padding: 4rem 6rem 8rem;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.docs-content-inner {
    max-width: 850px;
    margin: 0 auto;
}

.docs-section {
    padding-bottom: 5rem;
    margin-bottom: 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    scroll-margin-top: 100px;
}

.docs-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}



.docs-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.docs-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.docs-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #E4E4E7;
}

.docs-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #A1A1AA;
    font-size: 1.1rem;
}

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

.docs-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: #A1A1AA;
    font-size: 1.05rem;
}

.docs-content li strong {
    color: #E4E4E7;
}

.docs-content code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    background-color: var(--docs-code-bg);
    color: var(--docs-primary-hover);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85em;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.docs-content pre {
    background-color: var(--docs-code-bg);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.docs-content pre code {
    background-color: transparent;
    color: #abb2bf;
    padding: 0;
    font-size: 0.9em;
    border: none;
    box-shadow: none;
}

.docs-note {
    background: rgba(220, 38, 38, 0.05);
    border-left: 3px solid var(--docs-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.docs-note p {
    margin: 0;
    color: #E4E4E7;
    font-size: 1.05rem;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.docs-table th, .docs-table td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--docs-border);
    text-align: left;
    color: #A1A1AA;
}

.docs-table th {
    color: #E4E4E7;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.docs-table tr:last-child td {
    border-bottom: none;
}

.docs-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--docs-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4);
    z-index: 100;
    cursor: pointer;
    font-size: 1.2rem;
}

@media (max-width: 1024px) {
    .docs-sidebar {
        transform: translateX(-100%);
        background: rgba(10, 10, 13, 0.95);
        backdrop-filter: blur(20px);
        box-shadow: 10px 0 30px rgba(0,0,0,0.8);
    }
    
    .docs-sidebar.open {
        transform: translateX(0);
    }
    
    .docs-content {
        margin-left: 0;
        padding: 2rem 2rem 5rem;
    }
    
    .docs-section {
        padding: 2rem;
    }
    
    .docs-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Scroll Animations */
.docs-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.docs-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
