/* AI Subpage Layout */
.ai-subpage-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
}

.ai-nav {
    position: sticky;
    top: 6rem; /* Adjust based on header height */
    height: calc(100vh - 8rem); /* Adjust based on header/footer height */
    overflow-y: auto;
}

.ai-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #9ca3af; /* gray-400 */
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.ai-nav-link:hover {
    background-color: #374151; /* gray-700 */
    color: #ffffff; /* white */
}

.ai-nav-link.active {
    background-color: #3b82f6; /* blue-500 */
    color: #ffffff; /* white */
    font-weight: 600;
}

.ai-content {
    max-width: 100%;
    overflow-x: auto;
}

/* Custom Terminal Style for Code Blocks */
pre[class*="language-"]::after {
    content: ' ';
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #ef4444; /* red-500 */
    box-shadow: 1.25rem 0 0 #f59e0b, 2.5rem 0 0 #10b981; /* amber-500, green-500 */
}
pre[class*="language-"] code {
    display: block;
    padding: 0 1.5rem 1.5rem;
    color: #e2e8f0; /* gray-200 */
}
