/* bammite/code/public/css/chatbot.css */
/******************* chatbotMini *******************/
.chatbot_icon{
    position: absolute;
    width: 50px;
    height: 50px;
    cursor: pointer;
    bottom: 3vw;
    right: 3vw;
    z-index: 10;
    overflow: hidden;
}

.chatbot_icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color); /* Mise à jour */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.chatbot_icon:hover {
    transform: scale(1.1);
}

.chatbot_icon img {
    width: 32px;
    height: 32px;
}

.chatbot-container {
    display: none; 
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 370px;
    max-width: 90vw;
    height: 500px;
    background-color: var(--accent-color); /* Mise à jour */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    font-family: var(--font-family); /* Mise à jour */
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}

.chatbot-container.active {
    display: flex;
    transform: scale(1);
}

.chatbot-header {
    background-color: var(--primary-color); /* Mise à jour */
    color: var(--light-color); /* Mise à jour */
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.close-chatbot {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-chatbot:hover {
    transform: scale(1.2);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: scroll;
    background-color: #f4f7f9; /* Gardé neutre pour la lisibilité */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-messages .message {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 80%;
    line-height: 1.4;
    font-size: 0.9rem;
}

.message.user {
    background-color: var(--primary-color); /* Mise à jour */
    color: var(--light-color); /* Mise à jour */
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message.bot {
    background-color: rgb(232, 232, 232); /* Gardé neutre pour le contraste */
    color: black; /* Mise à jour */
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.chatbot-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: var(--primary-color); /* Mise à jour */
    max-width: 100%;
    overflow: hidden;
    min-height: 40px;
}

#user-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 0.9rem;
    outline: none;
    color: var(--dark-color); /* Mise à jour */
    font-family: var(--font-family); /* Mise à jour */
    width: 70%;
    /* height: 40px; */
}

#send-btn {
    background-color: var(--light-color); /* Mise à jour */
    color: var(--primary-color); /* Mise à jour */
    border: none;
    padding: 0 15px;
    margin-left: 10px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-family); /* Mise à jour */
    transition: background-color 0.2s;
}

#send-btn:hover {
    background-color: rgb(194, 194, 194) /* Mise à jour */
}