/* Open Brain — Custom styles beyond Tailwind */

/* Smooth transitions for all interactive elements */
a, button {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

/* Code block scrollbar styling */
pre::-webkit-scrollbar {
    height: 6px;
}
pre::-webkit-scrollbar-track {
    background: transparent;
}
pre::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}

/* Docs page prose styling */
.prose h2 {
    scroll-margin-top: 5rem;
}

.prose pre {
    background: #111827;
    color: #d1d5db;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    font-size: 0.8125rem;
    line-height: 1.7;
}

.prose code:not(pre code) {
    font-size: 0.8125rem;
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.prose table th {
    text-align: left;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e5e7eb;
    color: #374151;
}

.prose table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
}

.prose table tr:hover td {
    background: #faf5ff08;
}

/* Sidebar active state */
.sidebar-link.active {
    color: #7e22ce;
    font-weight: 600;
    border-left-color: #7e22ce;
}
