/* Index input wrapper */
.index-input-wrapper {
    margin-top: 20px;
}


/* Update userdata wrapper */
.updateuserdata-bewerk-wrapper {
    margin-top: 20px;
}

/* Validation message */
.field-validation-error.help-block {
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #f93d3d;
    background-color: #ffdada;
    padding: 5px 10px;
    font-size: 14px;
    border: 1px solid #f93d3d;
}


/* panels */
#ActivatieLogin, #ActivatieInfo {
    margin: 10px;
}

.panel, .panel panel-default {
    margin: 15px;
}

/* Chat Module Styles */
:root {
    --primary: #00B0F0;
    --secondary: #CCCC00;
    --chat-bg: #f7fafd;
    --bot-bg: #fffbe6;
    --user-bg: var(--primary);
    --user-text: #fff;
    --bot-text: #333;
}

.chat-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--chat-bg);
    border-radius: 5px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 0 0 10px 0;
    /*margin: 30px auto;*/
    min-height: 400px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9e9e9;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 16px 8px 16px;
    background: transparent;
    max-height: 400px;
}

.message {
    margin-bottom: 18px;
    max-width: 80%;
    word-break: break-word;
    animation: fadeIn 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-radius: 5px;
}

.own-message {
    margin-left: auto;
    background: var(--user-bg);
    color: var(--user-text);
    border-bottom-right-radius: 4px;
}

    .own-message .message-content {
        background: transparent;
        color: var(--user-text);
    }

.other-message {
    margin-right: auto;
    background-color: #6fc9e926;
    color: var(--bot-text);
    border-bottom-left-radius: 4px;
    border: 1px solid #dcdcdc;
}

    .other-message .message-content {
        background: transparent;
        color: var(--bot-text);
    }

.message-header {
    font-size: 0.8em;
    font-weight: 500;
    margin-bottom: 2px;
    opacity: 0.7;
    padding: 10px 10px 10px 20px;
}

.message-content {
    padding: 20px 20px 20px 20px;
    font-size: 1em;
    border-radius: 2px;
}

.message-feedback {
    margin: 4px 0 0 8px;
    display: flex;
    gap: 4px;
}

.btn-feedback {
    background: none;
    border: none;
    color: #85855c;
    font-size: 1.1em;
    cursor: pointer;
    transition: color 0.2s;
    min-width: 10px !important;
    padding: 11px 15px !important;
}

    .btn-feedback.active {
        color: var(--primary);
    }

.chat-input {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 12px 16px 8px 16px;
    border-radius: 0 0 18px 18px;
}

    .chat-input .form-control {
        padding: 10px 20px;
        border: 1px solid #ced4da;
        height: 50px;
        font-size: 15px;
    }

    .chat-input .btn-primary {
        padding: 10px 24px;
        background-color: var(--secondary) !important;
        border: none;
        color: #fff;
        font-weight: 600;
        transition: background 0.2s;
        border-radius: 4px;
        float: right;
        margin-top: 20px;
        border-bottom: unset !important;
    }

        .chat-input .btn-primary:hover {
            background: #0090c0;
        }

.typing-indicator {
    display: flex;
    align-items: center;
    margin: 0 0 0 20px;
    height: 32px;
    margin-top: 15px;
}

    .typing-indicator .dot {
        height: 8px;
        width: 8px;
        margin: 0 2px;
        background-color: var(--secondary);
        border-radius: 50%;
        display: inline-block;
        animation: typing-bounce 1.2s infinite both;
    }

        .typing-indicator .dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-indicator .dot:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.7;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .chat-container {
        max-width: 100vw;
        min-height: 60vh;
        border-radius: 0;
    }

    .chat-messages {
        padding: 12px 4px 4px 4px;
    }

    .message {
        max-width: 95%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
