* {
    /* -webkit-touch-callout: none; */ /* Disabilita il menu contestuale */
    /* -webkit-user-select: none; */ /* Evita la selezione di testo */
    /* user-select: none; */
}
#send_voice_message{
    touch-action: none;
}
#debug_logn_press{
    touch-action: none;
}
.chat-body{
    background-color: white;
    padding: 3%;
    /* overflow-y:auto !important;
    scroll-behavior: smooth; */
}
.chat-header{
    box-shadow: 0px 1px 7px #0000005e;
    position: -webkit-fixed;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
    /* position: absolute;
    left:0;
    right: 0; */
}
.chat-header-ios{
    top:200px !important;
}

.chat-header p{
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 600;
    line-height: 30px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: rgba(32, 35, 41, 1);
}
.chat-header i{
    color: rgba(32, 35, 41, 1);
}
.chat-header a{
    color: rgb(0, 0, 0) !important;
}
.space-before-input{
    height: 80px;
}
.input-box{
    position: fixed;
    bottom: 0;
    width: 100%;
    min-height: 80px;
    background: white;
}
.input-text{
    border: 1px solid rgba(227, 231, 235, 1);
    border-radius: 8px;
    width: 100%;
    padding: 2%;
    min-height: 45px;
    max-height: 20vh;
}
.send-button{
    border: none;
    background: rgba(32, 25, 87, 1);
    border-radius: 8px;
    width: 45px;
    height: 45px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.send-button i{
    color: white;
}
/* Messages box */
.messages{
    overflow-y:auto !important;
    scroll-behavior: smooth;
}
/* Message */
.message-box{
    border-radius: 16px;
    padding: 10px;
    max-width: 80%;
    width: fit-content;
    margin-top: 1rem !important;
}
.inbound-message{
    background: rgba(247, 247, 249, 1);
}
.outbound-message{
    background: rgba(71, 161, 178, 1);
    margin-right: 0 !important;
    margin-left: auto !important;
}
.message-box .time{
    font-family: Open Sans;
    font-size: 12px;
    font-weight: 400;
    line-height: 23px;
    letter-spacing: -0.01em;
    text-align: right;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: rgba(126, 132, 139, 1);
}
.message-box .time{
    font-family: Open Sans;
    font-size: 12px;
    font-weight: 400;
    line-height: 23px;
    letter-spacing: -0.01em;
    text-align: right;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}
.message-box .message{
    font-family: Open Sans;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}
.message-box .name{
    font-size: 10px;
}
.outbound-message .icon{
    color: rgba(250, 250, 252, 1);
}
.outbound-message button{
    color: rgba(71, 161, 178, 1);
    background: white;
    border: none;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.outbound-message .name{
    color: rgba(250, 250, 252, 1);
}
.outbound-message .message{
    color: white;
    overflow-wrap: break-word;
}
.outbound-message .time{
    color: rgba(250, 250, 252, 1);
}
.inbound-message .icon{
    color: rgba(126, 132, 139, 1);
}
.inbound-message button{
    color: white;
    background: rgba(126, 132, 139, 1);;
    border: none;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.inbound-message .name{
    color: rgba(126, 132, 139, 1);
}
.inbound-message .message{
    color: rgba(69, 77, 85, 1);
    overflow-wrap: break-word;
}
.inbound-message .time{
    color: rgba(126, 132, 139, 1);
}
/* Date */
.message-date{
    justify-content: center;
}
.message-date p{
    width: fit-content !important;
    background: rgba(126, 132, 139, 1);
    border-radius: 15px;
    padding: 5px;
    font-size: 10px;
    color: white;
}
.input-container{
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-container button{
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);

    border: none;
    background-color: transparent;
    color: grey;
}
.upload-button{
    border-radius: 8px;
    /* width: 45px; */
    height: 45px;

    border: none;
    background-color: transparent;
    color: grey;
}
.message-preview-modal{
    display: none;
    position: fixed;
    bottom: -100vh;
    height: 100vh;
    background-color: black;
    z-index: 11;
    width: 100%;
    border-radius: 15px 15px 0 0;
    padding-bottom: 5%;
    padding-left: 5%;
    padding-right: 5%;

    overflow: auto;
}
/* AUDIO */
.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
}
.inbound-message .custom-audio-player {
    color: rgba(69, 77, 85, 1)
}
.outbound-message .custom-audio-player {
    color: white;
}
.custom-audio-player button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
.inbound-message .custom-audio-player button {
    color: rgba(69, 77, 85, 1)
}
.outbound-message .custom-audio-player button {
    color: white;
}
.custom-audio-player button:hover {
    color: #38bdf8; /* Cambia colore al passaggio del mouse */
}
.custom-audio-player .progress-bar-aidica {
    flex-grow: 1;
    height: 5px;
    background: white;
    border-radius: 5px;
    position: relative;
}
.inbound-message .custom-audio-player .progress-bar-aidica {
    background: rgba(69, 77, 85, 1)
}
.outbound-message .custom-audio-player .progress-bar-aidica {
    background: white;
}
.custom-audio-player .progress-bar-inside {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    /* transition: width 0.2s; */
}
.inbound-message .custom-audio-player .progress-bar-inside {
    background: white;
}
.outbound-message .custom-audio-player .progress-bar-inside {
    background: rgba(69, 77, 85, 1);
}

/* Modal */
.chat-info-modal{
    z-index: 100;
    display: none;
    position: fixed;
    bottom: -90vh;
    max-height: 90vh;
    background-color: white;
    z-index: 11;
    width: 100%;
    border-radius: 15px 15px 0 0;
    padding-bottom: 5%;
    padding-left: 5%;
    padding-right: 5%;

    overflow: auto;
}
.chat-info-modal>.row:first-of-type{
    position: sticky;
    top:0;
    background-color: white;
    padding-top: 5%;
}
.chat-info-modal .title{
    font-family: Open Sans;
    font-size: 18px;
    font-weight: 700;
    line-height: 25.2px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: rgba(32, 35, 41, 1);
}
.chat-info-modal .fa-xmark{
    cursor: pointer;
}
.chat-info-modal .info-box{
    background-color: rgba(250, 250, 252, 1);
    padding: 5%;
    border-radius: 15px;
}
.chat-info-modal .info-box .title{
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 600;
    line-height: 22.4px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: rgba(32, 35, 41, 1);
}
.chat-info-modal .info-box .content{
    font-family: Open Sans;
    font-size: 14px;
    font-weight: 400;
    line-height: 21.7px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: rgba(69, 77, 85, 1);
}
.blur{
    position: fixed;
    height: 0;
    width: 0;
    z-index: 9;
    background-color: black;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 50%;
}
.input-container .upload-file{
    position: absolute;
    right: 30px;
}
.recording-status{
    background: lightgrey;
    min-height: 45px;
    border-radius: 10px;
}

@media (min-width: 1024px) {
    .inbound-message {
        max-width: 400px;
    }
    .outbound-message {
        max-width: 400px;
    }
    .primary-btn-large{
        padding: 1%;
    }
    .chat-info-modal .info-box{
        padding: 1%;
    }
}