/* 🔥 1. Floating chat container + toggle */
#lc-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#lc-chatbot-toggle img {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 0;
    filter: drop-shadow(2px 4px 4px grey);
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}
.lc-chatbot-label {
    position: absolute;
    right: 90px;
    bottom: 35px;
    background: #42a5f5;
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    animation: fadein 1s;
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 🔥 2. Chatbox styling */
#lc-chatbot-box {
    position: absolute;
    bottom: 100px;
    right: 0;
    width: 320px;
    height: 550px;
    background: linear-gradient(135deg, #f5faff, #ffffff);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: slideup 0.4s ease forwards;
}

@keyframes slideup {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🔥 3. Chat header */
.lc-chatbot-header {
    background: #002a4d;
    padding: 12px;
    display: flex;
    align-items: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    color: white;
}

.lc-chatbot-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid white;
}

.lc-chatbot-title {
    display: flex;
    flex-direction: column;
}

.lc-chatbot-name {
    font-weight: bold;
    font-size: 14px;
}

.lc-chatbot-status {
    font-size: 12px;
    opacity: 0.9;
}

/* 🔥 4. Chat window area */
.lc-chat-window {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 🔥 5. Messages */
.lc-chat-message {
    background: linear-gradient(135deg, #e3f2fd, #ffffff);
    color: #333;
    padding: 12px;
    border-radius: 15px;
    margin: 8px 0;
    font-size: 13px;
    position: relative;
    animation: fadein 0.5s;
}

.fade-in {
    animation: fadein 0.5s ease-in;
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🔥 6. Option buttons */
.lc-chat-options button {
    background: linear-gradient(135deg, #002a4d, #42a5f5);
    color: #fff;
    border: none;
    text-wrap: auto;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    margin-right: 2px;
    text-align: left;
    position: relative;
    width: auto;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.3s;
}.lc-chat-typing-bubble {
    background: #f0f0f0;
    color: #333;
    padding: 12px;
    border-radius: 15px;
    margin: 8px 0;
    max-width: 85%;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: fadein 0.5s;
}

.lc-chat-options button:hover {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
}.lc-chat-reset {
    position: absolute;
    right: 20px;
    color: black;
    background: white;
    top: 20px;
    border-radius: 20px;
    cursor: pointer;

    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lc-chat-window::-webkit-scrollbar {
    width: 2px;
}

.lc-chat-window::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.lc-chat-window::-webkit-scrollbar-thumb {
    background: #002a4d;
}

.lc-chat-window::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}.lc-chat-typing-bubble .dot {
    width: 5px;
    height: 5px;
    background-color: #002a4d;
    border-radius: 50%;
    animation: typing-bounce 1s infinite ease-in-out;
}

.lc-chat-typing-bubble .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.lc-chat-typing-bubble .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}
/* 🔥 7. Tag badge */
.lc-chat-tag {
    position: absolute;
    top: -7px;
    right: 6px;
    background: orange;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    color: black;

/* 🔥 8. Typing indicator */
.lc-chat-typing-bubble {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    padding: 10px;
    background: #f0f0f0;
    width: fit-content;
    border-radius: 20px;
    margin: 10px 0;
}

.lc-chat-typing-bubble .dot {
    width: 8px;
    height: 8px;
    background-color: #555;
    border-radius: 50%;
    animation: typing-bounce 1s infinite ease-in-out;
}

.lc-chat-typing-bubble .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.lc-chat-typing-bubble .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* 🔥 9. Reset icon */
.lc-chat-reset {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #fff;
}