.nx-api-container {
    display: flex;
    flex-direction: column;
    max-width: 1440px;
    margin: 0 auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #0A192F;
}

@media (min-width: 768px) {
    .nx-api-container {
        flex-direction: row;
    }
}

.nx-api-sidebar {
    flex: 0 0 280px;
    padding: 2rem 1.5rem;
    border-right: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

@media (min-width: 768px) {
    .nx-api-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }
}

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

.nx-api-sidebar-nav li {
    margin-bottom: 0.5rem;
}

.nx-api-sidebar-nav a {
    text-decoration: none;
    color: #475569;
    font-size: 0.95rem;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.nx-api-sidebar-nav a:hover,
.nx-api-sidebar-nav a.active {
    color: #0066FF;
    font-weight: 500;
}

.nx-api-sidebar-nav .nx-api-subnav {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.25rem;
    border-left: 1px solid #cbd5e1;
    margin-left: 0.25rem;
}

.nx-api-content {
    flex: 1;
    padding: 2rem 1.5rem;
    min-width: 0;
}

@media (min-width: 768px) {
    .nx-api-content {
        padding: 3rem 4rem;
    }
}

.nx-api-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 2rem;
}

.nx-api-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #0A192F;
}

.nx-api-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #eff6ff;
    color: #0066FF;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.nx-api-callout {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    background-color: #fffbeb;
    border-left: 4px solid #3b82f6;
}

.nx-api-callout.warning {
    background-color: #fffbeb;
    border-left-color: #f59e0b;
}

.nx-api-callout-title {
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1e293b;
}

.nx-api-callout p {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
}

.nx-api-section {
    margin-bottom: 4rem;
}

.nx-api-section h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.nx-api-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.nx-api-section p {
    line-height: 1.6;
    color: #334155;
    margin-bottom: 1.5rem;
}

.nx-api-endpoint {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nx-api-endpoint-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nx-api-method {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.nx-api-method.get { background: #dcfce7; color: #059669; }
.nx-api-method.post { background: #dbeafe; color: #2563eb; }
.nx-api-method.delete { background: #fee2e2; color: #dc2626; }
.nx-api-method.put { background: #fef3c7; color: #d97706; }

.nx-api-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.125rem;
    color: #0f172a;
    font-weight: 600;
}

.nx-api-code-block {
    background: #0f172a;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    overflow: hidden;
}

.nx-api-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

.nx-api-code-tabs {
    display: flex;
    gap: 1rem;
}

.nx-api-code-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem;
}

.nx-api-code-tab.active {
    color: #f8fafc;
    border-bottom: 2px solid #38bdf8;
}

.nx-api-copy-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nx-api-copy-btn:hover {
    color: #f8fafc;
}

.nx-api-code-content {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
}

.nx-api-code-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #e2e8f0;
    line-height: 1.5;
}

.nx-api-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.nx-api-table th,
.nx-api-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.nx-api-table th {
    font-weight: 600;
    color: #475569;
    background-color: #f8fafc;
}

.nx-api-table code {
    font-family: 'JetBrains Mono', monospace;
    background-color: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #0f172a;
}

.nx-api-cta {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #0A192F 0%, #0f2a52 100%);
    border-radius: 1rem;
    text-align: center;
    color: white;
}

.nx-api-cta h2 {
    color: white;
    border: none;
    margin-bottom: 1rem;
}

.nx-api-cta p {
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.nx-api-button {
    display: inline-block;
    background-color: #0066FF;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.nx-api-button:hover {
    background-color: #0052cc;
}
