﻿.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
}

.chatbot-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .chatbot-bubble:hover {
        transform: scale(1.1);
        box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.2);
    }

.chat-window {
    position: absolute;
    bottom: calc(100% + 1rem); /* Position above the bubble */
    right: 0;
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

    .chat-window.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-message {
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    max-width: 80%;
    line-height: 1.4;
}

.bot-message {
    background-color: #e9ecef;
    color: #212529;
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
}

.user-message {
    background-color: var(--bs-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
}

    .chat-input-area .form-control {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .chat-input-area .btn {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
.chat-suggestions {
    padding: 0.5rem 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-chip {
    background-color: transparent;
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .suggestion-chip:hover {
        background-color: var(--bs-primary);
        color: white;
    }