:root {
    --message-max-width: 70%;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Custom scrollbar */
#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

/* Message bubbles */
.message {
    max-width: var(--message-max-width);
    animation: fadeIn 0.3s ease-out;
}

.user-message {
    margin-left: auto;
    background: linear-gradient(to right, #3B82F6, #8B5CF6);
    color: white;
    border-radius: 16px 16px 4px 16px;
}

.bot-message {
    margin-right: auto;
    background: white;
    border: 1px solid #E2E8F0;
    color: #1E293B;
    border-radius: 16px 16px 16px 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #CBD5E1;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}