/* 
    Chatbot Interface
*/
.ndb-chat-container {
    background-color: #e5ddd5;
    /* WhatsApp default bg color */
    /* border-radius: 5px; */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 68vh;
    overflow: hidden;
    position: relative;
    background-image: url("/img/backgrounds/doodles.jpg");
    background-repeat: repeat;
    background-size: cover;

    --ndb-chat-font-size: 15px;
    --ndb-chat-line-height: 18px;
}

.ndb-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ndb-chat-status-message {
    align-self: center;
    background-color: #e1f3fb;
    /* Light blue system message, or yellowish #fff4b8 */
    color: #555;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.ndb-chat-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 7.5px;
    font-size: var(--ndb-chat-font-size);
    line-height: var(--ndb-chat-line-height);
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
    word-wrap: break-word;
}

.ndb-chat-message p {
    font-size: var(--ndb-chat-font-size);
}

.ndb-chat-message h3 {
    font-size: 1em;
}

.ndb-chat-message code {
    font-size: 100%;
}

.ndb-chat-message ul,
.ndb-chat-message ol {
    margin: 5px 0;
    padding-left: 25px;
    line-height: calc(var(--ndb-chat-line-height) + 6px);
    color: #777777;
}

.ndb-chat-message ul li,
.ndb-chat-message ol li {
    font-size: var(--ndb-chat-font-size);
}

.ndb-chat-message ul li::marker {
    color: var(--color-milocal-secundario);
    font-weight: bold;
}

.ndb-chat-message p {
    margin: 5px 0;
}

.ndb-chat-message strong {
    color: var(--color-milocal-secundario);
}

.ndb-chat-message.user {
    align-self: flex-end;
    background-color: #dcf8c6;
    border-top-right-radius: 0;
}

.ndb-chat-message.model {
    align-self: flex-start;
    background-color: #ffffff;
    border-top-left-radius: 0;
}

.ndb-chat-message-author {
    font-size: 14px !important;
    color: #999 !important;
    margin-bottom: 2px;
    display: block;
}

.ndb-chat-input-area {
    background-color: #f0f0f0;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ndb-chat-input-area input {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 15px;
    outline: none;
    background-color: #ffffff;
}

.ndb-chat-input-area button {
    background-color: #0088cc;
    /* WhatsApp-like send button color or similar */
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
}

.ndb-chat-input-area button:hover {
    background-color: #0077b3;
}

.ndb-chat-input-area button:disabled {
    background-color: #cccccc;
    cursor: default;
}

/* Scrollbar customization for webkit */
.ndb-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.ndb-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.ndb-chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}
