#ai-chatbot {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999999;
    font-family: Arial, sans-serif;
}

/* Floating Button */
#chatbot-toggle {
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Chat Box */
#chatbot-box {
    display: none;
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 370px;
    height: 520px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    border: 1px solid #e5e5e5;
}

/* Header */
.chatbot-header {
    height: 65px;
    padding: 0 18px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header strong {
    display: block;
    font-size: 16px;
    color: #202124;
}

.chatbot-header small {
    display: block;
    margin-top: 4px;
    color: #777;
    font-size: 12px;
}

#chatbot-close {
    border: none;
    background: transparent;
    font-size: 28px;
    color: #777;
    cursor: pointer;
}

/* Messages */
#chatbot-messages {
    height: calc(100% - 135px);
    padding: 18px;
    overflow-y: auto;
    background: #fafafa;
}

.ai-message,
.user-message {
    max-width: 80%;
    padding: 11px 14px;
    margin-bottom: 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.ai-message {
    background: #fff;
    color: #333;
    border: 1px solid #eee;
    margin-right: auto;
}

.user-message {
    background: #1a73e8;
    color: #fff;
    margin-left: auto;
}

/* Input */
.chatbot-input {
    height: 70px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-top: 1px solid #eee;
}

#chatbot-input {
    flex: 1;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 24px;
    padding: 0 16px;
    outline: none;
    font-size: 14px;
}

#chatbot-input:focus {
    border-color: #1a73e8;
}

#chatbot-send {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* Mobile */
@media (max-width: 500px) {

    #ai-chatbot {
        right: 15px;
        bottom: 15px;
    }

    #chatbot-box {
        position: fixed;
        right: 10px;
        left: 10px;
        bottom: 80px;
        width: auto;
        height: 70vh;
        max-height: 600px;
    }

}
.typing-dots span {
    display: inline-block;
    animation: typingDot 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        opacity: 0.2;
    }

    30% {
        opacity: 1;
    }
}