﻿/* components.css ā€“ legacy AI sidebar styles removed, handled in style.css */

/* ā”€ā”€ Chat messages (generated by ai-chat.js) ā”€ā”€ */
.chat-message {
    display: flex;
    gap: 10px;
    animation: messageSlide 0.25s ease;
    max-width: 90%;
}
.chat-message.user {
    flex-direction: row-reverse;
    align-self: flex-end;
    margin-left: auto;
}
.chat-message.ai {
    align-self: flex-start;
}

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B9EFF, #A678FF);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.message-content {
    background: var(--surface-2, #202028);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    color: var(--text, #F0F0F5);
    padding: 10px 14px;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
}
.chat-message.user .message-content {
    background: var(--primary, #3B9EFF);
    color: #fff;
    border-color: transparent;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 4px;
}
.message-content p { margin: 0 0 6px 0; }
.message-content p:last-child { margin-bottom: 0; }
.message-content ul { padding-left: 18px; margin: 6px 0; }
.message-content li { margin: 2px 0; }

/* Typing indicator */
.typing-dots {
    display: flex;
    gap: 5px;
    padding: 4px 0;
}
.typing-dots span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--primary, #3B9EFF);
    opacity: 0.4;
    animation: typingBounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%,80%,100% { opacity: 0.3; transform: translateY(0); }
    40%          { opacity: 1;   transform: translateY(-6px); }
}

/* Quick reply buttons inside chat */
.quick-replies {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}
.quick-reply {
    background: none;
    border: 1px solid var(--primary, #3B9EFF);
    color: var(--primary, #3B9EFF);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}
.quick-reply:hover {
    background: var(--primary, #3B9EFF);
    color: #fff;
}

/* Inline/small buttons from ai responses */
.btn-small {
    background: var(--primary, #3B9EFF);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 6px;
}
.btn-inline {
    background: none;
    border: none;
    color: var(--primary, #3B9EFF);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

    min-height: 600px;
}

