/* Documentation Styles - Refined White Theme */
:root {
    --primary-color: #000000;
    /* Black instead of Green */
    --text-color: #000000;
    --bg-color: #ffffff;
    --sidebar-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --code-bg: #f5f5f5;
    --link-color: #000000;
    --hover-color: #333333;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.docs-sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
}

.docs-logo {
    margin-bottom: 3rem;
    font-family: 'tachyon', sans-serif;
    /* Matches main site logo */
    font-size: 3rem;
    /* Adjusted size */
    font-weight: 400;
    color: #000;
    text-decoration: none;
    display: block;
    letter-spacing: -1px;
}

.docs-nav {
    flex-grow: 1;
}

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

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

.docs-nav a {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 0.75rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
}

.docs-nav a:hover,
.docs-nav a.active {
    color: #000;
    background-color: #e0e0e0;
}

.docs-copyright {
    margin-top: auto;
    font-size: 0.75rem;
    color: #888;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Main Content */
.docs-content {
    margin-left: 280px;
    padding: 6rem 4rem 4rem 6rem;
    /* Increased top/left padding */
    max-width: 900px;
    width: 100%;
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #000;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: #000;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 600;
}

p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.1rem;
}

ul,
ol {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.1rem;
}

li {
    margin-bottom: 0.5rem;
}

code {
    background-color: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    color: #000;
    border: 1px solid #e0e0e0;
}

pre {
    background-color: var(--code-bg);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
    border: none;
}

a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-thickness: 2px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: #000;
    font-weight: 600;
    background-color: #f9f9f9;
}

/* Alerts/Callouts */
.alert {
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    border-left: 4px solid #000;
    background: #f5f5f5;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #000;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.docs-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.docs-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
    .docs-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .docs-sidebar.open {
        transform: translateX(0);
    }

    .docs-content {
        margin-left: 0;
        padding: 4rem 2rem 2rem 2rem;
        /* Adjusted padding for mobile */
    }

    .mobile-menu-toggle {
        display: block;
    }
}