#chatbot-toggle {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 65px;
    height: 65px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 2000;
    transition: transform 0.2s ease;
}

#chatbot-toggle img {
    width: 55%;
    height: 55%;
    object-fit: contain;
    filter: invert(1);
}

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


#chatbot-box {
    position: fixed;
    bottom: 100px;
    right: 22px;
    width: 360px;
    max-height: 550px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatbotOpen 0.25s ease forwards;
    z-index: 3000;
}

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

.chatbot-header {
    background: #000;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    position: relative;
}

.chatbot-header-logo {
    width: 30px;
    height: 30px;
    filter: invert(1);
}

#chatbot-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
}


.chatbot-messages {
    padding: 18px;
    height: 350px;
    overflow-y: auto;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bot-msg, .user-msg {
    width: fit-content;       
    max-width: 75%;           
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.35;
    word-break: break-word;
    animation: bubbleFade 0.18s ease-in-out;
}

.bot-msg {
    background: #fff;
    border: 1px solid #ddd;
    color: #111;
    border-bottom-left-radius: 6px;
    margin-right: auto;
}

.user-msg {
    background: #000;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 6px;
}

@keyframes bubbleFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.typing-indicator {
    width: fit-content;
    background: #e5e5e5;
    padding: 6px 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
    margin-left: 4px;
}

.typing-indicator span {
    height: 6px;
    width: 6px;
    background-color: #777;
    border-radius: 50%;
    animation: typing 1.2s infinite ease-in-out;
    opacity: 0.6;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.chatbot-input {
    display: flex;
    border-top: 1px solid #ddd;
}

#chatbot-user-input {
    flex: 1;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 15px;
}

#chatbot-send {
    padding: 0 20px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-left: 1px solid #222;
}

#chatbot-send:hover {
    opacity: 0.85;
}
