﻿@charset "UTF-8";

.chat-new-messages {
    align-content: end;
    text-align: right;
    background: #c8d4030f;
    padding-bottom: 5px;
    position: absolute;
    left: 91.5%;
    margin-left: 10px;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 300px); /*345*/
    overflow: hidden;
    justify-content: space-between;
    background-color: #fff;
}
    .chat-container > form {
        background: #c8d4030f; /*#e8e8e8;*/
        padding: 5px;
        /*border-radius: 0px;
        border-top: 2px solid #ccc;*/
        background-image: url(../images/wa.png.png);
    }

h3.title-page {
    color: var(--Blue);
    text-align: center;
    font-family: "Kumbh Sans", sans-serif;
    font-size: 34px;
    font-weight: var(--font-weight-medium);
    line-height: normal;
    padding: 100px 0 30px 0;
}

.t2 h3.title-page {
    padding: 30px 0;
}

h3.title-page:has(+ .subtitle) {
    margin-bottom: 0;
    padding-bottom: 10px;
}

h3.title-page:has(+ .subtitle) {
    margin-bottom: 0;
    padding-bottom: 10px;
}

p.subtitle {
    color: #000;
    text-align: center;
    font-family: Nunito;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding-bottom: 40px;
}
.row.chat-messages-area {
    height: 90%;
    overflow-y: scroll;
    flex-direction: column-reverse;
    background: #c8d4030f;/*rgb(219 224 137);*/
    background-image: url(../images/wa.png.png);
    width: 100%;
    margin-left: 0px;
}

.chat-messages-area::-webkit-scrollbar {
    width: 5px;
    scrollbar-width: thin;
    scrollbar-color: #52ACE4 transparent;
}

.chat-box {
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 10px;
    /*height: 80vh;*/
    display: flex;
    flex-direction: column;
    /*margin: 0 auto;*/
    width: 122%;
    margin-left:20px;
}

.chat-message {
    display: flex;
    margin-bottom: 20px;
}

    .chat-message .avatar {
        width: 70px;
        height: auto;
    }

    .chat-message .message {
        margin-top: 5px;
        max-width: 75%;
        position: relative;
        filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.05));
        color: #ffffff;
        font-family: var(--Nunito);
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 26px;
        letter-spacing: 0.1px;
        border-radius: 0px 8px 8px 8px;
        padding: 15px 24px 40px 20px;
        width: 70%;
        background: rgb(26,73,96);
        background: linear-gradient(180deg, rgba(26,73,96,1) 0%, rgba(0,16,23,1) 97%);
    }

    .chat-message.user {
        flex-direction: row;
        justify-content: flex-end;
    }

        .chat-message.user .message {
            border-radius: 5px 5px 0px 5px;
            background: #ffffff;
            color: #000;
            border: 1px solid #bf0b4d;
        }

    .chat-message .dropdown .btn {
        color: #333;
        background-color: transparent;
    }

    .chat-message.user .dropdown .btn {
        filter: brightness(0) saturate(100%) invert(100%) sepia(4%) saturate(7476%) hue-rotate(61deg) brightness(120%) contrast(100%);
    }

    .chat-message .options {
        right: 0;
        position: relative;
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        margin-left: -42px;
        margin-bottom: 0px;
    }

        .chat-message .options.new-chat {
            position: absolute;
        }

        .chat-message .options .dropdown-toggle::after {
            display: none;
        }
.chat-input #audioIcon {
    font-size: 19px;
    border: none;
}
:not(.btn-check) + .btn#fileIcon:active,
:not(.btn-check) + .btn#audioIcon:active {
    border: none !important;
}
.chat-input #fileIcon {
    font-size: 18px;
    transform: rotate(28deg);
    cursor: pointer;
    border: none;
}

:not(.btn-check) + .btn#fileIcon:active,
:not(.btn-check) + .btn#audioIcon:active {
    border: none !important;
}
.chat-input {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin-right: 15px;
    margin-left: 15px !important
}

    .chat-input input[type="text"],
    .chat-input textarea {
        min-height: 78px;
        flex: 1;
        padding-right: 60px;
        border-radius: 5px;
        border: 1px solid #acacac;
        background: #fafafa;
        color: var(--Blue, #00354e);
        font-family: Nunito;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }
        .chat-input textarea::placeholder,
        .chat-input textarea#chatInputText::placeholder {
            color: var(--Blue, #00354e);
            font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif
        }

        .emoji-picker {
            position: absolute;
            bottom: 100%;
            right: 0;
            width: 200px;
            background: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 10px;
            max-height: 150px;
            overflow-y: auto;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
        }

    .emoji-picker span {
        font-size: 20px;
        cursor: pointer;
        padding: 5px;
    }

        .emoji-picker span:hover {
            background: #ddd;
            border-radius: 5px;
        }
button.emoji-button {
    background: #fff;
    border-radius: 2px;
    border: 1px solid #00354e;
    height: 28px;
}


.chat-container .btn-secondary.disabled, .btn-secondary:disabled {
    color: #fff;
    background-color: #00354eba;
    border-color: #00354e;
}
.chat-container .btn-secondary {
    color: #FFFFFF;
    background-color: #00354e;
    border-color: #00354e;
    padding: 7px 10px;
}

.scroll-button-chat {
    background: #bf0b4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
}

.chat-message.user .data-messaggio {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    color: #777;
}

.chat-message.bot .data-messaggio {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    color: #ccc;
}

.plus-messaggio {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 12px;
    cursor: pointer;
}

.chat-message .message {
    position: relative;
}

.chat-message.bot {
    position: relative;
}




.chatWA-container {
    display: flex;
    height: 80vh;
    width: 100%;
}

.contactsWA {
    width: 40%;
    background: #f7f7f7;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    padding: 10px;
}

.contact-itemWA {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

    .contact-itemWA:hover {
        background: #e0e0e0;
    }

    .contact-itemWA.selected {
        background: #cce5ff;
    }

.chatWA {
    width: 60%;
    padding: 15px;
}

.no-chatWA-selected {
    text-align: center;
    color: gray;
    margin-top: 20px;
}


.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; /* Puoi regolare la larghezza in base al layout */
    display: block;
}

.notification-dot {
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
}
.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-container {
    width: 20px; /* Mantiene l'icona all'estrema destra */
    display: flex;
    justify-content: flex-end;
}

.block-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: red;
    margin-right: 10px;
    display: flex;
    width: 20px;
    z-index: 1000;
}

.block-button:hover {
    color: darkred;
}
.logo-whatsapp{
    height: 25px;
    width: 25px;
}
div.ricerca-chat {
    background-color: #112e40;
    padding-top: 20px;
}