.chatbot-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    z-index: 1050;
    animation: pulse-animation 2s infinite;
}

.chatbot-fab .bi {
    font-size: 1.8rem;
    line-height: 1;
}

.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    z-index: 1049;
    display: none;
    flex-direction: column;
    border: 0;
    border-radius: 0.75rem;
}

.chat-widget .card-body {
    flex-grow: 1;
    overflow-y: auto;
    background-color: var(--bs-light-subtle, #f8f9fa);
}

[data-bs-theme="dark"] .chat-widget .card-body {
    background-color: var(--bs-dark-subtle, #212529);
}

.chat-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.4;
}

.user-bubble {
    background-color: var(--bs-primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 3px;
}

.bot-bubble {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    margin-right: auto;
    border-bottom-left-radius: 3px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

.typing-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bs-secondary);
    margin: 0 2px;
    animation: bounce 1.4s infinite both;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: -0.8s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}