﻿
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.chatbot-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.chatbot-windows {
    position: absolute;
    bottom: 0;
    right: 70px; 
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chatbot-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
}

    .chatbot-btn:hover {
        transform: scale(1.1);
    }

.whatsapp-btn {
    background-color: #25D366;
}

.faq-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
}

.chatbot-window {
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
}

    .chatbot-window.active {
        display: block;
        transform: translateY(0);
        opacity: 1;
    }





.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

    .chatbot-header h3 {
        font-size: 1rem;
        margin: 0;
        padding-left: 30px;
    }

.chatbot-logo {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .chatbot-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.close-chatbot {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chatbot-body {
    height: calc(100% - 120px);
    padding: 1rem;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 1rem;
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message {
    background-color: #f1f1f1;
    border-top-left-radius: 0;
    margin-right: auto;
    animation: fadeIn 0.3s ease-out;
}

.user-message {
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    color: white;
    border-top-right-radius: 0;
    margin-left: auto;
    animation: fadeIn 0.3s ease-out;
}

.faq-question-button {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    background-color: #f1f1f1;
    border: none;
    border-radius: 0.5rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .faq-question-button:hover {
        background-color: #e0e0e0;
    }

.chatbot-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #eee;
}

    .chatbot-input input {
        flex: 1;
        padding: 0.8rem;
        border: 1px solid #ddd;
        border-radius: 2rem;
        outline: none;
    }

    .chatbot-input button {
        background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-left: 0.5rem;
        cursor: pointer;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .chatbot-container {
        bottom: 1rem;
        right: 1rem;
    }

    .chatbot-window {
        width: 300px;
        height: 400px;
    }
}
