/* Floating container */
#umroh-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
}

/* Toggle button */
#umroh-chatbot-toggle {
    width: 60px;
    height: 60px;
    background: #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

#umroh-chatbot-toggle.active { transform: rotate(45deg); }

/* Chatbox */
#umroh-chatbot {
    width: 360px;
    max-width: 90vw;
    background: #f7f8fa;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    margin-top: 10px;
}

/* Hidden */
#umroh-chatbot.hidden { display: none; }

/* Header */
#chat-header { background: #ff0000; color: #fff; padding: 12px; font-weight: bold; text-align: center; }

/* Chat Window */
#chat-window { height: 380px; overflow-y: auto; padding: 16px; background: #fff; }
#chat-messages { display: flex; flex-direction: column; gap: 8px; }

/* Messages */
.user-message, .bot-message { padding: 10px 14px; border-radius: 14px; max-width: 80%; word-wrap: break-word; line-height: 1.4; animation: fadeIn 0.3s ease-in-out; }
.user-message { align-self: flex-end; background: #007bff; color: #fff; border-bottom-right-radius: 4px; }
.bot-message { align-self: flex-start; background: #e9ecef; color: #212529; border-bottom-left-radius: 4px; }

/* Typing indicator */
.typing { display: flex; align-items: center; gap: 4px; }
.dot { width: 8px; height: 8px; background-color: #999; border-radius: 50%; animation: blink 1.4s infinite both; }
.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

#chat-input-area { display: flex; border-top: 1px solid #ddd; padding: 10px; background: #fafafa; }
#chat-input { flex-grow: 1; padding: 8px 12px; border: 1px solid #ccc; border-radius: 20px; outline: none; font-size: 14px; }
#chat-send { margin-left: 8px; background: #ff0000; color: white; border: none; padding: 8px 16px; border-radius: 20px; cursor: pointer; transition: background 0.3s ease; }
#chat-send:hover { background: #940202; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Scrollbar minimal */
#chat-window::-webkit-scrollbar { width: 6px; }
#chat-window::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* Media query mobile */
@media screen and (max-width: 480px) {
    #umroh-chatbot { width: 90vw; height: 70vh; max-height: 70vh; }
    #chat-window { height: calc(100% - 120px); }
    #chat-input-area { flex-direction: column; gap: 8px; }
    #chat-send { width: 100%; }
}
