:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --code-bg: #f8fafc;
    --border-color: #e5e7eb;
    --header-bg: #1e40af;
    --sidebar-width: 280px;
    --header-height: 64px;
    --section-spacing: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

/* Header Styles */
.header {
    background: var(--header-bg);
    color: white;
    padding: 0 2rem;
    position: fixed;
    width: 100%;
    height: var(--header-height);
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    top: var(--header-height);
    left: 0;
    background: var(--bg-color);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 2rem;
    transition: transform 0.3s ease;
}

ul {
    margin-left: 20px;
    margin-top: 16px;
    margin-bottom: 16px;
}
.sidebar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar nav ul li {
    margin: 0.5rem 0;
}

.sidebar nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.sidebar nav ul li a:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.sidebar nav ul li a.active {
    background: var(--primary-color);
    color: white;
}

/* Main Content Styles */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 2rem 3rem;
    max-width: 1200px;
}

/* Section Styles */
.section {
    margin-bottom: var(--section-spacing);
    padding-top: 4rem;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -3rem;
    right: -3rem;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--border-color) 15%,
        var(--border-color) 85%,
        transparent
    );
}

.section:first-child::before {
    display: none;
}

.section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

/* Endpoint Styles */
.endpoint {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.endpoint h3 {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.method {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    background: var(--primary-color);
    margin-right: 1rem;
    text-transform: uppercase;
}

/* Code Block Styles */
.code-block {
    background: var(--code-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: #f8fafc;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-required {
    background: #fee2e2;
    color: #dc2626;
}

.badge-optional {
    background: #f3f4f6;
    color: #6b7280;
}

/* Info Box Styles */
.info-box, .warning-box {
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

.warning-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

/* Tab Styles */
.tabs {
    margin: 2rem 0;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: #f3f4f6;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tab-button:hover {
    background: #e5e7eb;
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Support Section Styles */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.support-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.support-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.support-card ul {
    list-style: none;
    padding: 0;
}

.support-card ul li {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .section::before {
        left: -1.5rem;
        right: -1.5rem;
    }
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    position: relative;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    position: absolute;
    left: 4px;
    transition: all 0.3s ease;
}

.menu-toggle span {
    top: 15px;
}

.menu-toggle span::before {
    top: -8px;
}

.menu-toggle span::after {
    bottom: -8px;
}

.menu-toggle.active span {
    background: transparent;
}

.menu-toggle.active span::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active span::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Footer Styles */
.footer {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .footer {
        margin-left: 0;
    }
}



/* Code Block Styles */
.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid #2d2d2d;
}

.code-block pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-block code {
    display: block;
    white-space: pre;
}

/* Tab Styles */
.tabs {
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

.tab-button:hover {
    background: #e5e7eb;
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    padding: 0;
}

.tab-content.active {
    display: block;
}

.tab-content .code-block {
    margin: 0;
    border-radius: 0;
    border: none;
}

/* Syntax Highlighting (Basic) */
.code-block .keyword {
    color: #569cd6;
}

.code-block .string {
    color: #ce9178;
}

.code-block .comment {
    color: #6a9955;
}

.code-block .number {
    color: #b5cea8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-button {
        width: 100%;
        text-align: center;
    }
}



/* AI Variants Section Styles */
.variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.variant-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.variant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.variant-card h3 {
    background: var(--header-bg);
    color: white;
    margin: 0;
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
}

.variant-content {
    padding: 1.5rem;
}

.variant-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.models-list h4 {
    color: var(--text-color);
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.models-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.models-list li {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--code-bg);
    border-radius: 0.5rem;
}

.models-list li strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.models-list li p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.usage-example {
    margin-top: 1.5rem;
}

.usage-example h4 {
    color: var(--text-color);
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.usage-example pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.usage-example code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .variants-grid {
        grid-template-columns: 1fr;
    }

    .variant-card {
        margin-bottom: 1rem;
    }
}
