/* assets/css/atria-chat.css */

#atria-chat-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e117ba;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 9998;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#atria-chat-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

#atria-chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 360px;
    max-height: 70vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#atria-chat-box.open {
    display: flex;
}

.atria-chat-header {
    background: #e117ba;
    color: #fff;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.atria-chat-header small {
    opacity: 0.85;
}

.atria-chat-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.atria-chat-messages {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    background: #f5f7fb;
}

.atria-chat-message {
    margin-bottom: 8px;
    display: flex;
}

.atria-chat-message.user {
    justify-content: flex-end;
}

.atria-chat-message.assistant {
    justify-content: flex-start;
}

.atria-chat-message .bubble {
    max-width: 80%;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.atria-chat-message.user .bubble {
    background: #e117ba;
    color: #fff;
    border-bottom-right-radius: 2px;
}

.atria-chat-message.assistant .bubble {
    background: #ffffff;
    color: #222;
    border-bottom-left-radius: 2px;
    border: 1px solid #dde3f0;
}

.atria-chat-typing .bubble {
    background: #ffffff;
    color: #666;
    border-radius: 10px;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px dashed #d0d7ea;
    max-width: 80%;
}

.atria-chat-form {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-top: 1px solid #dde3f0;
    background: #f9fafc;
}

.atria-chat-input {
    flex: 1;
    resize: none;
    border-radius: 8px;
    border: 1px solid #c5cde0;
    padding: 6px 8px;
    font-size: 14px;
    font-family: inherit;
	height: 50px;
}

.atria-chat-input:focus {
    outline: none;
    border-color: #e117ba;
}

.atria-chat-send {
    border: none;
    background: #e117ba;
    color: #fff;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.atria-chat-send:hover {
    background: #003f99;
}

/* Mobile */
@media (max-width: 480px) {
    #atria-chat-box {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 80px;
    }
}
