/**
 * HLI Chatbot - Chat Messages & Bubbles
 */

/* Messages Container */
.hli-chatbot-messages {
    padding: 16px;
    min-height: 100%;
}

/* Message Row */
.hli-chat-message {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.hli-chat-message.user {
    align-items: flex-end;
}

.hli-chat-message.bot {
    align-items: flex-start;
}

/* Chat Bubble */
.hli-chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.hli-chat-message.user .hli-chat-bubble {
    background: #667eea;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.hli-chat-message.bot .hli-chat-bubble {
    background: #fff;
    color: #333;
    border: 1px solid #e5e5e5;
    border-bottom-left-radius: 4px;
}

/* Timestamp */
.hli-chat-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    padding: 0 4px;
}

/* Typing Indicator */
.hli-chat-typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
}

.hli-chat-typing span {
    width: 7px;
    height: 7px;
    background: #ccc;
    border-radius: 50%;
    animation: hli-typing 1.4s infinite both;
}

.hli-chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.hli-chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes hli-typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Scrollbar for messages */
.hli-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.hli-chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.hli-chatbot-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
