/* assets/chatbot.css */
#chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

#chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0288D1;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: transform 0.3s ease;
}

#chatbot-button:hover {
    transform: scale(1.1);
}

#chatbot-window {
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#chatbot-window.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#chatbot-header {
    background-color: #0288D1;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-header .title {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#chatbot-header .status {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
}

#chatbot-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}

#chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f9f9fc;
}

.chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message.user {
    align-self: flex-end;
    background-color: #0288D1;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-message.bot {
    align-self: flex-start;
    background-color: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

#chatbot-typing {
    display: none;
    align-self: flex-start;
    background-color: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

#chatbot-typing.active {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

#chatbot-quick-replies {
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #eee;
    white-space: nowrap;
}

#chatbot-quick-replies::-webkit-scrollbar {
    height: 4px;
}

#chatbot-quick-replies::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.quick-reply-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #333;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-reply-btn:hover {
    background: #e4e4e4;
}

#chatbot-input-area {
    display: flex;
    padding: 10px 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

#chatbot-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
}

#chatbot-input:focus {
    border-color: #0288D1;
}

#chatbot-send {
    background: none;
    border: none;
    color: #0288D1;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
