:root {
    --sidebar-width: 280px;
    --header-height: 56px;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-page: #ffffff;
    --bg-sidebar: #f8fafc;
    --bg-dark: #1e293b;
    --bg-light: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #f1f5f9;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --radius-sm: 4px;
    --radius-md: 6px;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-mono: 'Monaco', 'Menlo', monospace;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    font-size: var(--font-size-md);
    line-height: 1.5;
}
button {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
button:disabled { cursor: not-allowed; opacity: 0.5; }
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg);
    z-index: 100;
}
.header-title { font-size: var(--font-size-xl); font-weight: 600; color: var(--text-primary); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: var(--space-md); }
.api-key-input {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    width: 300px;
}
.api-key-input::placeholder { color: var(--text-secondary); }
.sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 1.5rem 0;
}
.search-box {
    width: calc(100% - 2rem);
    margin: 0 1rem 1.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
}
.nav-section { margin-bottom: 1.5rem; }
.nav-section-title {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}
.nav-links { display: flex; flex-direction: column; }
.nav-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
    border-left: 3px solid transparent;
}
.nav-link:hover { background: #f1f5f9; }
.nav-link.active {
    background: #e0f2fe;
    color: var(--primary-color);
    font-weight: 500;
    border-left-color: var(--primary-color);
}
.main {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 2rem 3rem;
    max-width: 1200px;
}
.model-header { margin-bottom: 2rem; }
.model-title { font-size: 2rem; font-weight: 600; margin: 0 0 0.5rem 0; }
.model-description { color: var(--text-secondary); margin: 0; }
.endpoint-section { margin-bottom: 4rem; }
.http-method {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}
.http-method.get { background: #dbeafe; color: #1e40af; }
.http-method.post { background: #d1fae5; color: #065f46; }
.http-method.put { background: #fef3c7; color: #92400e; }
.http-method.delete { background: #fee2e2; color: #991b1b; }
.try-it-panel {
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-md);
}
.try-it-button { background: var(--primary-color); color: white; }
.try-it-button:hover { background: var(--primary-hover); }
.try-it-toggle { background: var(--primary-color); color: white; }
.try-it-toggle:hover { background: var(--primary-hover); }
.response-preview {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    overflow-x: auto;
    margin-top: var(--space-md);
    white-space: pre;
}
.request-preview {
    background: var(--bg-sidebar);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
}
.status-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}
.status-success { background: #d1fae5; color: #065f46; }
.status-error { background: #fee2e2; color: #991b1b; }
.fields-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.fields-table th, .fields-table td { padding: 0.75rem; text-align: left; border: 1px solid var(--border-color); }
.fields-table th { background: var(--bg-sidebar); font-weight: 600; font-size: 0.875rem; color: var(--text-secondary); }
.fields-table tbody tr:nth-child(even) { background: var(--bg-light); }
.fields-table td { font-size: 0.875rem; }
.type-badge { background: #f1f5f9; padding: 0.25rem 0.5rem; border-radius: 4px; font-family: var(--font-mono); font-size: 0.75rem; }
.loading { color: var(--text-secondary); font-style: italic; }
.hidden { display: none; }

/* Dynamic content styles */
.endpoint-summary { font-size: 1.5rem; font-weight: 600; margin: 1.5rem 0 0.5rem 0; }
.endpoint-bar { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 6px; padding: 0.75rem 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
.endpoint-path { flex: 1; font-size: 0.9rem; }
.fields-title { margin-top: 3rem; }
.form-group { margin-bottom: 1rem; }
.form-group-sm { margin-bottom: 0.5rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.form-input { width: 100%; padding: 0.5rem; border: 1px solid var(--border-color); border-radius: 4px; }
.form-textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 4px; font-family: var(--font-mono); font-size: 0.875rem; resize: vertical; }

/* Intro page styles */
.intro-section-title { margin: 2rem 0 0.5rem 0; font-size: 1.1rem; }
.intro-text { margin: 0 0 1.5rem 0; color: var(--text-secondary); line-height: 1.6; }
.intro-code { background: var(--bg-light); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85rem; }
.intro-pre { background: var(--bg-sidebar); border: 1px solid var(--border-color); padding: 1rem; border-radius: 6px; margin: 0 0 1.5rem 0; font-size: 0.85rem; overflow-x: auto; }
.intro-terms-title { margin: 0 0 0.5rem 0; font-size: 1.1rem; color: var(--text-secondary); }
.intro-terms-text { margin: 0 0 0.5rem 0; color: var(--text-secondary); line-height: 1.6; font-size: 0.875rem; }
.tenant-input { width: 200px; }
