/*geen mobiele toestellen */
@media (max-width: 768px) {
    #chatbox-container, #chatbox-icon {  /* Vervang #plugin-container-id door de ID of class van je plugin-container */
        display: none;
    }
}

/* Chatbox container */
.chatbox-container {
    position: fixed;
    bottom: 20px;
    width: 350px;  /* Breedte van de chatbox */
    min-height: 500px;  /* Minimale hoogte, dit kan verhoogd worden */
    max-height: 50vh;  /* Max hoogte op 90% van het scherm */
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999; /* Zorgt ervoor dat de chatbox bovenaan blijft */
    right: 120px; /* Pas deze waarde aan om de afstand van de rechterkant te wijzigen */
}

/* Header */
.chat-header {
    background-color: #036065;
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    width: 50px;
    height: 50px;
}

.chat-header .logo {
    width: 50px;
    height: 50px;
    background-color: white;  /* White background for the circle */
    border-radius: 50%;       /* Makes it a circle */
    display: inline-block;    /* Keeps it aligned with other elements */
    padding: 5px;             /* Adds padding inside the circle */
    margin-right: 10px;       /* Space between logo and title */
    box-sizing: border-box;
}



/* Icoon */
.chat-icon {
    position: fixed;
    right: 20px;
    bottom: 20px;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Berichten sectie */
.chat-messages {
    flex: 1;
    padding: 15px;  /* Ruimte rondom de berichten */
    overflow-y: auto;
    background-color: #f4f7f9;  /* Achtergrondkleur voor de berichten sectie */
}

/* Gebruikersbericht */
.user-message {
    background-color: #4a90e2;  /* Kleur van het gebruikersbericht */
    color: white;
    padding: 10px 15px;
    border-radius: 20px 20px 0 20px;
    margin: 8px 0 0 70px;
    text-align: right;
    max-width: 75%;
    align-self: flex-end;
    
}

/* Botbericht */
.bot-message {
    background-color: #e9eef3;  /* Kleur van het botbericht */
    color: #333;
    padding: 10px 15px;
    border-radius: 20px 20px 20px 0;
    margin: 8px 0;
    max-width: 70%;
    align-self: flex-start;
    text-align: left;
}

/* Invoerveld en verzendknop */
#chatbot-input-container {
    display: flex;
    align-items: center;
    width: 100%;
}

#chatbot-input {
    padding: 10px;
    border-top: 1px solid #ccc;
    width: calc(100% - 20px);  /* Vul de breedte goed op */
    box-sizing: border-box;  /* Zorg ervoor dat padding en border binnen de breedte vallen */
}

#send-button {
    background-color: #036065;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#send-button:hover {
    background-color: #024750;
}

#chatbot-send {
    width: 10%;
    padding: 10px;
    border: none;
    background-color: #036065;
    color: #fff;
    cursor: pointer;
}

/* Verberg chatbox */
.hidden {
    display: none;
}
.loading-dots {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #4a90e2;
    animation: bounce 0.6s infinite alternate;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}
/* Sluitingsicoon in de rechterbovenhoek */
.close-icon {
    position: absolute;
    top: -28px;
    right: -67px;
    background: none;
    border: none;
    font-size: 35px;
    color: white;
    cursor: pointer;
}
/* Algemene stijl voor iconen */
.user-icon, .bot-icon {
    width: 30px;
    height: 30px;
    margin: 0 8px;
}

/* Basisopmaak voor berichtenrij */
.message-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

/* Gebruiker rij, rechts uitgelijnd */
.user-row {
    justify-content: flex-end;
}

/* Bot rij, links uitgelijnd */
.bot-row {
    justify-content: flex-start;
}

/* Iconen */
.user-icon, .bot-icon {
    width: 30px;
    height: 30px;
    margin: 0 10px;
}

/* Gebruikersbericht stijl */
.user-row .message-content {
    background-color: #4a90e2;
    color: white;
    padding: 10px 15px;
    border-radius: 20px 20px 0 20px;
    max-width: 70%;
    text-align: left;
}

/* Botbericht stijl */
.bot-row .message-content {
    background-color: #e9eef3;
    color: #333;
    padding: 10px 15px;
    border-radius: 20px 20px 20px 0;
    max-width: 70%;
    text-align: left;
}
#chatbox-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 10000; /* Zorgt dat het boven andere elementen zichtbaar is */
}
/* extra buttons */
.chat-buttons {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.chat-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin: 5px 0;
    cursor: pointer;
    font-size: 14px;
}

.chat-button:hover {
    background-color: #45a049;
}

.chat__status {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
}
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: green;
    border-radius: 50%;
    margin-left: 10px;
}