/* ========================================
   KYC Genie API Documentation Styles
   ======================================== */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary: #165BCB;
    --primary-dark: #165BCB;
    --primary-light: #3b77d8;
    --secondary: #10B981;
    --accent: #F59E0B;
    --error: #EF4444;
    
    /* Neutral colors */
    --text: #1F2937;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --bg: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    
    /* Code colors */
    --code-bg: #1E293B;
    --code-border: #334155;
    
    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.api-docs {
    font-family: var(--font-sans);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Alpine.js x-cloak */
[x-cloak] {
    display: none !important;
}

/* ===== Top Navigation ===== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.2s;
}

.brand:hover {
    opacity: 0.8;
}

.brand img {
    width: 32px;
    height: 32px;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

/*
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.875rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}
*/

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-light);
    font-family: var(--font-sans);
    transition: all 0.2s;
}

.search-btn:hover {
    border-color: var(--primary);
    background: var(--bg);
    color: var(--text);
}

.search-btn kbd {
    padding: 0.125rem 0.375rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    background: var(--bg);
}

.mobile-menu-toggle {
    display: none;
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: var(--spacing-md);
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.mobile-nav-link {
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-link:hover {
    background: var(--bg-secondary);
}

/* ===== Hero Section ===== */
.docs-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
    padding: var(--spacing-3xl) var(--spacing-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.docs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.docs-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn-primary, .btn-primary-large {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover, .btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-primary-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===== Code Examples ===== */
.hero-code {
    max-width: 800px;
    margin: 0 auto;
    background: var(--code-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    text-align: left;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0F172A;
    border-bottom: 1px solid var(--code-border);
    padding: 0.75rem 1rem;
}

.code-title {
    color: #94A3B8;
    font-size: 0.875rem;
}

.code-content pre {
    margin: 0;
    padding: 1.5rem;
    background: var(--code-bg);
    overflow-x: auto;
}

.code-content code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ===== Features Section ===== */
.docs-features {
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: var(--bg-secondary);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--text);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    padding: var(--spacing-xl);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.feature-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s;
}

.feature-link:hover {
    gap: 0.5rem;
}

/* ===== Quick Links Section ===== */
.docs-quicklinks {
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: var(--bg);
}

.quicklinks-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
}

.quicklinks-column h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quicklinks-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quicklink-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.quicklink-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.http-method {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    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;
}

kbd {
    color: var(--primary);
}

/* ===== CTA Section ===== */
.docs-cta {
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.docs-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.docs-cta p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: var(--spacing-xl);
}

.gradient-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); 
    padding: 30px; 
    border-radius: 12px; 
    margin: 30px 0;
}

/* ===== Search Modal ===== */
.search-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 1rem 1rem;
    backdrop-filter: blur(4px);
}

.search-modal {
    width: 100%;
    max-width: 640px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.search-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.search-header i {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--text);
}

.search-close {
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.search-close:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.search-empty, .search-loading {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
}

.search-empty i, .search-loading i {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
}

.search-suggestions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.search-tag {
    padding: 0.375rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-item {
    padding: var(--spacing-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.search-result-item:hover,
.search-result-item.selected {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.search-result-item.selected {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.search-result-title {
    font-weight: 600;
    color: var(--text);
}

.search-result-category {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
}

.search-result-excerpt {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
}

.search-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-bottom: var(--spacing-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-loading p {
    margin: 0;
    font-size: 0.875rem;
}

/* ===== Three-Column Documentation Layout ===== */
.docs-container {
    display: grid;
    grid-template-columns: 250px minmax(0, 1200px) 400px;
    justify-content: space-between;
    gap: var(--spacing-2xl);
    padding: 1rem;
    min-height: calc(100vh - 70px);
}

/* Left Sidebar Navigation */
.docs-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.sidebar-content {
    padding: var(--spacing-lg) 0;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-md);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.sidebar-nav .nav-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

.sidebar-nav .nav-link.active {
    color: var(--primary);
    background: rgba(22, 91, 203, 0.1);
    border-left-color: var(--primary);
    font-weight: 500;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

/* Subsection links (indented anchor links on current page) */
.nav-subsection {
    padding-left: var(--spacing-lg);
}

.nav-subsection .nav-link {
    font-size: 0.8125rem;
    padding: 0.375rem var(--spacing-md);
}

/* Main Documentation Content */
.docs-main {
    min-width: 0;
    display: flex;
    justify-content: center;
}

.docs-content {
    max-width: 800px;
}

.doc-section {
    margin-bottom: var(--spacing-3xl);
}

.doc-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.doc-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border);
}

.doc-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.doc-section h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.doc-section p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.doc-section .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: var(--spacing-xl);
}

.doc-section ul,
.doc-section ol {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
}

.doc-section li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.75;
    color: var(--text-light);
}

.doc-section code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    border-radius: var(--radius-sm);
    color: var(--primary-dark);
}

/* Inline code with background */
code.inline-code {
    background: var(--bg-tertiary);
    padding: 0.125rem 0.375rem;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.875em;
    border-radius: var(--radius-sm);
    color: var(--primary-dark);
    white-space: nowrap;
}

/* Info and Warning Boxes */
.info-box,
.warning-box {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.info-box {
    background: rgba(22, 91, 203, 0.1);
    border-left: 3px solid var(--primary);
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--accent);
}

.info-box i,
.warning-box i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-box i {
    color: var(--primary);
}

.warning-box i {
    color: var(--accent);
}

.info-box strong,
.warning-box strong {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text);
}

.info-box p,
.warning-box p {
    margin: 0;
    font-size: 0.875rem;
}

/* Endpoint Badge */
.endpoint-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
    font-family: var(--font-mono);
}

.endpoint-badge .method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.endpoint-badge .method.get {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.endpoint-badge .method.post {
    background: rgba(22, 91, 203, 0.1);
    color: var(--primary-dark);
}

.endpoint-badge .method.put,
.endpoint-badge .method.patch {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
}

.endpoint-badge .method.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

.endpoint-badge code {
    background: transparent;
    padding: 0;
    color: var(--text);
    font-size: 0.875rem;
}

/* Parameters Table */
.params-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    font-size: 0.875rem;
}

.params-table thead {
    background: var(--bg-secondary);
}

.params-table th {
    text-align: left;
    padding: var(--spacing-md);
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

.params-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    vertical-align: top;
}

.params-table code {
    font-size: 0.8125rem;
}

/* Comparison Table */
.comparison-table {
    margin: var(--spacing-xl) 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg);
}

.comparison-table thead {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border);
}

.comparison-table thead th {
    color: var(--text);
    text-align: center;
    padding: 0.875rem var(--spacing-md);
    font-weight: 600;
    font-size: 0.875rem;
}

.comparison-table thead th:first-child {
    text-align: left;
    padding-left: var(--spacing-lg);
}

.comparison-table tbody tr {
    transition: background-color 0.15s ease;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table tbody tr:hover {
    background: var(--bg-secondary);
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody td {
    padding: 0.875rem var(--spacing-md);
    vertical-align: middle;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.comparison-table tbody td:first-child {
    text-align: left;
    padding-left: var(--spacing-lg);
    font-weight: 500;
    color: var(--text);
}

.comparison-table code {
    background: var(--bg-tertiary);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.comparison-table .status-icon {
    font-size: 0.875rem;
    margin-right: 0.375rem;
    vertical-align: middle;
}

.comparison-table .status-icon.success {
    color: var(--secondary);
}

.comparison-table .status-icon.inactive {
    color: var(--text-muted);
}

/* Next Steps Cards */
.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.next-step-card {
    display: block;
    padding: var(--spacing-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}

.next-step-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.next-step-card .card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 91, 203, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.next-step-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 var(--spacing-sm) 0;
}

.next-step-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Right Sidebar - Code Examples */
.docs-code-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.code-sidebar-sticky {
    position: relative;
}

.code-examples {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.code-section {
    background: var(--code-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    padding: var(--spacing-md);
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
}

.code-section pre {
    margin: 0;
    padding: var(--spacing-lg);
    background: var(--code-bg);
}

.code-section code {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #c9d1d9; /* Default text color for code */
}

/* Prism Token Overrides (ensure syntax highlighting works) */
.code-section .token.comment,
.code-section .token.prolog,
.code-section .token.doctype,
.code-section .token.cdata {
    color: #8b949e;
}

.code-section .token.punctuation {
    color: #c9d1d9;
}

.code-section .token.property,
.code-section .token.tag,
.code-section .token.boolean,
.code-section .token.number,
.code-section .token.constant,
.code-section .token.symbol,
.code-section .token.deleted {
    color: #79c0ff;
}

.code-section .token.selector,
.code-section .token.attr-name,
.code-section .token.string,
.code-section .token.char,
.code-section .token.builtin,
.code-section .token.inserted {
    color: #a5d6ff;
}

.code-section .token.operator,
.code-section .token.entity,
.code-section .token.url,
.code-section .language-css .token.string,
.code-section .style .token.string {
    color: #ff7b72;
}

.code-section .token.atrule,
.code-section .token.attr-value,
.code-section .token.keyword {
    color: #ff7b72;
}

.code-section .token.function,
.code-section .token.class-name {
    color: #d2a8ff;
}

.code-section .token.regex,
.code-section .token.important,
.code-section .token.variable {
    color: #ffa657;
}

/* Code Tabs */
.code-tabs {
    display: flex;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-tabs button {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-tabs button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.code-tabs button.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.3);
}

/* ===== Responsive - Three Column Layout ===== */
@media (max-width: 1200px) {
    .docs-container {
        grid-template-columns: 200px 1fr 350px;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 1500px) {
    .docs-code-sidebar {
        display: none;
    }
    
    .docs-container {
        grid-template-columns: 250px 1fr;
    }
}

@media (max-width: 968px) {
    .docs-container {
        grid-template-columns: 1fr;
        padding: var(--spacing-lg);
    }
    
    .docs-sidebar,
    .docs-code-sidebar {
        display: none;
    }
    
    .next-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-section h1 {
        font-size: 2rem;
    }
    
    .doc-section h2 {
        font-size: 1.5rem;
    }
}

.search-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border);
}

.search-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-hint kbd {
    padding: 0.125rem 0.375rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-family: var(--font-mono);
}

.search-hint-divider {
    color: var(--border);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .docs-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .quicklinks-container {
        grid-template-columns: 1fr;
    }
    
    .docs-cta h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 968px) {
    .docs-container {
        grid-template-columns: 1fr;
        padding: var(--spacing-lg);
    }
    
    .docs-sidebar,
    .docs-code-sidebar {
        display: none;
    }
    
    .next-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-section h1 {
        font-size: 2rem;
    }
    
    .doc-section h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: flex !important;
    }
}

/* API Playground Specific Styles */
.copy-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1rem;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.copy-button:active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(1px);
}

.status-badge {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge.status-2xx {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.status-3xx {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.status-4xx {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge.status-5xx {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.duration-badge {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.9375rem;
    z-index: 9999;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-notification i {
    font-size: 1.25rem;
}

.toast-enter {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-enter-start {
    opacity: 0;
    transform: translateY(1rem) scale(0.9);
}

.toast-enter-end {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-leave {
    transition: all 0.2s ease-out;
}

.toast-leave-start {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-leave-end {
    opacity: 0;
    transform: translateY(-0.5rem) scale(0.95);
}
