* {
    box-sizing: border-box;
}

.App {
    min-height: 100vh;
}

/* Smooth transitions for interactive elements */
button {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

input, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--secondary));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--muted-foreground) / 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--muted-foreground) / 0.5);
}

/* Thin scrollbar for horizontal scrollable areas */
.scroll-area-thin ::-webkit-scrollbar {
    height: 6px;
}

.scroll-area-thin ::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-area-thin ::-webkit-scrollbar-thumb {
    background: hsl(var(--muted-foreground) / 0.2);
    border-radius: 3px;
}

.scroll-area-thin ::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--muted-foreground) / 0.4);
}

/* Markdown prose styles */
.prose {
    color: hsl(var(--foreground));
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: hsl(var(--foreground));
    font-weight: 600;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose h1 { font-size: 1.5em; }
.prose h2 { font-size: 1.25em; }
.prose h3 { font-size: 1.1em; }

.prose p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose strong {
    font-weight: 600;
    color: hsl(var(--foreground));
}

.prose em {
    font-style: italic;
}

.prose code {
    background: hsl(var(--muted));
    padding: 0.2em 0.4em;
    border-radius: 0.25em;
    font-size: 0.875em;
    font-family: ui-monospace, monospace;
}

.prose pre {
    background: hsl(var(--muted));
    padding: 0.75em;
    border-radius: 0.5em;
    overflow-x: auto;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose pre code {
    background: transparent;
    padding: 0;
}

.prose a {
    color: hsl(var(--primary));
    text-decoration: underline;
}

.prose ul, .prose ol {
    padding-left: 1.5em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose li {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.prose blockquote {
    border-left: 3px solid hsl(var(--border));
    padding-left: 1em;
    margin-left: 0;
    font-style: italic;
    color: hsl(var(--muted-foreground));
}

.prose hr {
    border-color: hsl(var(--border));
    margin-top: 1em;
    margin-bottom: 1em;
}
