.api-docs {
    width: 100%;
    padding: 24px;
}

.code-block {
    background-color: #f8f8f8;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
    text-align: left;
}

.code-block pre {
    margin: 0;
    white-space: pre;
    font-family: 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.code-block code {
    font-family: 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    text-align: left;
}

/* API Tester Styles */
.api-tester {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.api-tester h3 {
    margin-top: 0;
    color: #1e40af;
    font-size: 1.5rem;
}

.tester-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    align-items: start;
}

.form-label {
    font-weight: 600;
    color: #374151;
    padding-top: 8px;
}

.form-control {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    background: white;
}

.json-editor {
    min-height: 200px;
    resize: vertical;
}

.test-button {
    background: linear-gradient(135deg, #d79c2c 0%, #d34873 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.test-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
}

.test-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.response-section {
    margin-top: 20px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-success {
    background: #dcfce7;
    color: #166534;
}

.status-error {
    background: #fef2f2;
    color: #dc2626;
}

.response-time {
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.full-width {
    width: 100%;
}

.method-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 8px;
    color: white;
}

.method-post {
    background-color: #49cc90;
}

.param-name {
    font-weight: bold;
    color: #0066cc;
}

.param-required {
    color: #e53935;
    font-size: 0.9em;
    margin-left: 4px;
}

.param-optional {
    color: #757575;
    font-size: 0.9em;
    margin-left: 4px;
}

.section-divider {
    margin: 40px 0 20px;
    border-top: 1px solid #eee;
}

table.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

table.param-table th, 
table.param-table td {
    padding: 8px 16px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table.param-table th {
    background-color: #f5f5f5;
}

.language-selector {
    margin-bottom: 10px;
}

.language-selector select {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 14px;
}

.code-example {
    display: none;
}

.code-example[data-language="python"] {
    display: block;
}

.code-examples-container {
    margin-top: 20px;
}

.api-description {
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Sidebar styles */
.api-docs-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.api-sidebar {
    width: 280px;
    padding: 24px;
    background-color: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.api-sidebar h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 16px;
    font-weight: 600;
}

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

.api-sidebar li {
    margin-bottom: 8px;
}

.api-sidebar a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.api-sidebar a:hover {
    background-color: #e3f2fd;
    color: #1976d2;
}

.api-sidebar a.active {
    background-color: #1976d2;
    color: white;
}

.api-content {
    flex: 1;
    padding: 0;
    background-color: #ffffff;
}

/* Header styles */
.api-header {
    background: linear-gradient(171deg, #bf7d30 0%, #c83660 100%);
    color: white;
    padding: 60px 40px;
    margin: -40px -40px 40px -40px;
    border-radius: 12px 12px 0 0;
}

.api-header h1 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.api-header p {
    margin: 0;
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Section styles */
.api-section {
    margin-bottom: 48px;
    padding: 24px;
    background-color: #ffffff;
}

.api-section h2 {
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.api-section h3 {
    color: #555;
    margin-top: 32px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .api-docs-container {
        flex-direction: column;
    }
    
    .api-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
}