/* Custom Styles */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Sidebar scrollbar */
.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}
.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* Prose styles for page content */
.prose h1 { font-size: 2.25rem; margin-bottom: 1rem; }
.prose h2 { font-size: 1.75rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1.5rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-bottom: 0.25rem; }
.prose a { color: var(--primary); transition: color 0.2s; }
.prose a:hover { color: var(--primary-dark); text-decoration: underline; }
.prose img { max-width: 100%; height: auto; border-radius: 1rem; margin: 1.5rem 0; }
.prose blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8fafc;
    border-radius: 0 0.75rem 0.75rem 0;
    color: #475569;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.prose th, .prose td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}
.prose th { background: #f8fafc; font-weight: 600; }
.prose code {
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}
.prose pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Selection color */
::selection {
    background-color: rgba(59, 130, 246, 0.2);
    color: inherit;
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Print */
@media print {
    header, footer, .no-print { display: none !important; }
    body { background: white !important; }
}
