/* Chatbot CSS */
#mesadoko-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: 'Inter', sans-serif;
}

#mesadoko-chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1A73E8, #0052CC);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#mesadoko-chatbot-toggle:hover {
    transform: scale(1.05);
}

#mesadoko-chatbot-toggle img {
    width: 35px;
    height: 35px;
}

#mesadoko-chatbot-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

#mesadoko-chatbot-header {
    background: linear-gradient(135deg, #1A73E8, #0052CC);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

#mesadoko-chatbot-close {
    cursor: pointer;
    font-size: 20px;
    opacity: 0.8;
    transition: transform 0.2s, opacity 0.2s;
}
#mesadoko-chatbot-close:hover { opacity: 1; transform: rotate(90deg); }

#mesadoko-chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f4f7f6;
    scroll-behavior: smooth;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.chat-message.bot {
    background: white;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid #eee;
}

.chat-message.user {
    background: linear-gradient(135deg, #1A73E8, #0052CC);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Quick Replies Animation */
.quick-replies {
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: left bottom;
}
.quick-reply-btn:active {
    transform: scale(0.95);
}
