/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Smooth scroll for chat */
#chat-messages {
    scroll-behavior: smooth;
}

/* Textarea */
textarea {
    resize: none;
}

/* Message content styling */
.msg-content p {
    margin-bottom: 0.5rem;
}
.msg-content p:last-child {
    margin-bottom: 0;
}
.msg-content pre {
    background: #0f172a;
    padding: 1rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 0.75rem 0;
    border: 1px solid #1e293b;
}
.msg-content code {
    font-size: 0.8125rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.msg-content :not(pre) > code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}
.msg-content ul, .msg-content ol {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}
.msg-content li {
    margin-bottom: 0.25rem;
}
.msg-content blockquote {
    border-left: 3px solid #3b82f6;
    padding-left: 1rem;
    margin: 0.75rem 0;
    color: #94a3b8;
}

/* Thinking dots animation */
@keyframes thinking-dots {
    0%, 20% { opacity: 0.2; }
    50% { opacity: 1; }
    80%, 100% { opacity: 0.2; }
}
.thinking-dot {
    animation: thinking-dots 1.4s infinite;
}
.thinking-dot:nth-child(2) {
    animation-delay: 0.2s;
}
.thinking-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Sidebar session hover */
.session-item {
    transition: all 0.15s ease;
}
.session-item:hover .session-delete {
    opacity: 1;
}
.session-delete {
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* Send button */
.send-btn {
    transition: all 0.2s ease;
}
.send-btn:hover {
    transform: scale(1.05);
}
.send-btn:active {
    transform: scale(0.95);
}
