/* Launcher Knop met zweef-animatie */
#chat-launcher {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    border: none;
    border-radius: 50%;
    font-size: 30px;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    z-index: 1001;
    animation: floatCloud 4s ease-in-out infinite;
}

/* Het Chat Scherm (De Grote Wolk) */
#chat-container.cloud-style {
    display: none;
    flex-direction: column;
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Glass effect */
    border-radius: 30px 30px 5px 30px; /* Wolk vorm */
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1000;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    animation: fadeIn 0.3s ease-out;
}

/* Header */
#chat-header {
    background: linear-gradient(to right, #74ebd5, #acb6e5);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Berichten Gebied */
#messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(240, 248, 255, 0.5);
}

/* Berichtwolkjes */
.msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.bot-msg {
    align-self: flex-start;
    background: white;
    color: #444;
    border-bottom-left-radius: 2px;
}

.user-msg {
    align-self: flex-end;
    background: #74ebd5;
    color: white;
    border-bottom-right-radius: 2px;
}

/* Input Area */
#input-area {
    padding: 15px;
    display: flex;
    background: white;
    gap: 10px;
}

#user-input {
    flex: 1;
    border: 2px solid #f0f0f0;
    padding: 10px 15px;
    border-radius: 25px;
    outline: none;
    transition: border 0.3s;
}

#user-input:focus {
    border-color: #74ebd5;
}

#send-btn {
    background: #74ebd5;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* Animaties */
@keyframes floatCloud {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar styling */
#messages::-webkit-scrollbar {
    width: 5px;
}
#messages::-webkit-scrollbar-thumb {
    background: #d1d8e0;
    border-radius: 10px;
}
