﻿/**/
html {
    /*overflow: hidden;*/
}

.custom-dropdown-container {
    position: relative;
}


    .custom-dropdown-container ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        position: relative;
    }

    .custom-dropdown-container .custom-dropdown {
        position: absolute;
        background: white;
        right: 0;
        top: 20px;
        padding: 16px 8px;
        z-index: 10;
        border-radius: 4px;
        box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
        width: auto;
        font-size: .75em;
    }

.custom-dropdown {
    display: none;
    text-align: left;
    min-width: 160px !important;
    padding: 8px 12px;
    border: 1px solid rgba(100,100,100,.2);
}

    .custom-dropdown.open {
        display: block;
    }

    .custom-dropdown ul li {
        display: block;
        white-space: nowrap;
        padding: 2px 8px;
    }

        .custom-dropdown ul li:hover {
            color: black;
        }

.close-custom-dropdown-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: .75em;
    opacity: .7;
    padding: 4px;
    cursor: pointer;
}

    .close-custom-dropdown-btn:hover {
        opacity: 1;
    }

    #dropdownFilters {
        min-width:160px !important;
        padding: 8px 12px;
        border:1px solid rgba(100,100,100,.2);
    }

    #dropdownFilters h5 {
        font-size: 12px;
        color:black;
        font-weight:bold;
        text-transform:none;
        text-decoration:none !important;
        text-align:center;
        margin-bottom:4px;
    }

    #dropdownFilters li {
        /*border:1px solid rgba(200,200,200,.4);*/
        padding: 6px 4px;
    }

    #dropdownFilters ul {
        margin-bottom:6px;
        border:2px solid rgba(200,200,200,.1);
    }
     
    #dropdownFilters .filter-button {
        margin:2px 0 !important;
        font-size:10px !important;
    }

#dropdownFilters ul > li:nth-child(odd) {
    background:rgba(230,230,230,.2) !important;
}

#filterChatForm {
}


.user-messages.show-options .message-actions {
    max-height: 200px;
}

.message-options-container .custom-dropdown {
    display: none;
}


#chat-system-container {
    display: none;
}

    #chat-system-container.show {
        display: block !important;
    }

#chat-container {
    width: 800px;
    max-width: 100vw;
    display: flex;
    flex-direction: row;
    height: 600px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    margin: 12px;
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 200;
    font-size: 110%;
    background:white !important;
}

.chat-left-container {
    flex: 3;
    background: #fbfbfb;
    min-width: 320px;
    /* box-shadow: rgba(60, 64, 67, 0.15) 4px 0px 6px 2px; */
    position: relative;
    border-right: 1px solid rgba(100,100,100,.2);
    display: flex;
    flex-direction: column;
}

.search-bar-header {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #eeeeee;
    /* height: 60px !important; */
    padding: 12px 8px;
    border-right: 2px solid #eeeeee;
}

.chat-search-container {
    position: relative;
    background: #fff;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid #eeeeee;
    font-size: 1em;
    flex-grow: 1;
    margin: 0 12px;
    display: flex;
    margin-right: 8px;
}


    .chat-search-container input {
        font-size: 1em;
        color: rgba(0,0,0,.4);
        width: 100%;
    }

    .chat-search-container i {
        padding: 4px 8px;
        box-sizing: border-box;
        color: #aeaeae;
    }

.chat-search-input {
    box-sizing: border-box;
    border: none;
    outline: none;
}

.chat-settings-button {
    text-align: center;
    justify-content: end;
    align-items: center;
    display: flex;
    padding: 4px !important;
    padding: 0 8px !important;
    font-size: 1.25em;
}



    .chat-settings-button .fa-times {
    }

    .chat-settings-button i {
        opacity: .5;
        cursor: pointer;
    }

        .chat-settings-button i:hover {
            opacity: 1;
        }

#chat-users-container {
    display: flex;
    width: 100%;
    flex-direction: column;
    box-shadow: rgba(60, 64, 67, 0.1) 2px 0px 2px 0px, rgba(60, 64, 67, 0.1) 2px 0px 6px 2px;
    height: 100%;
    /*height: 60px;*/
    max-height: 100%;
    overflow-y: auto;
    flex-grow: 1;
}

.chat-user {
    display: flex;
    flex-direction: row;
    border-bottom: 2px solid #eeeeee;
    color: #888;
    cursor: pointer;
    background-color: #fbfbfb;
}

    .chat-user:hover {
        background-color: #ffffff;
    }

    .chat-user.selected {
        border-right: 4px solid #6246ea;
    }

    .chat-user .chat-favorite-icon {
        display: none;
    }

    .chat-user.favorite .chat-favorite-icon {
        display: block;
    }

.chat-user-pic-container {
    padding: 12px;
    box-sizing: border-box;
}

.chat-user-pic {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    background-size: cover;
    border-radius: 50%;
    text-align: center;
    margin: 0 auto;
    background-color: gray;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    position: relative
}

    .chat-user-pic .chat-favorite-icon {
        color: gold;
        text-shadow: 1px solid gray;
        position: absolute;
        bottom: 0;
        right: 0;
        font-size: .75em;
    }

.chat-user-letter {
    box-sizing: border-box;
    width: 38px;
    height: 38px;
    background-size: cover;
    border-radius: 50%;
    text-align: center;
    margin: 0 auto;
    background-color: gray;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    color: white;
    background: #232526; /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #414345, #232526); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #414345, #232526); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    cursor: pointer;
}

.user .chat-user-letter {
    background: #00B4DB; /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #0083B0, #00B4DB); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #0083B0, #00B4DB); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    color: white;
}

.chat-user-text-container {
    flex: 4;
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .chat-user-text-container div {
        text-align: left;
    }

    .chat-user-text-container h5 {
        font-weight: normal;
        margin: 0;
        margin-bottom: 6px;
        font-size: .75em;
    }

    .chat-user-text-container p {
        margin: 0;
        font-size: .75em;
        letter-spacing: .75px;
    }

.chat-user-recent-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 16px;
}

    .chat-user-recent-container span {
        width: auto;
        font-size: .5em;
        padding: 3px 4px;
        border: 1px solid #ddd;
        border-radius: 8px;
        color: #ccc;
    }

.unviewed .chat-user-recent-container span {
    border: none;
    color: white;
    background: #43cea2; /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #185a9d, #43cea2); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #185a9d, #43cea2); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.user-favorite-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    font-size: .75em;
}

.chat-right-container {
    flex: 7;
    background: #ffffff;
    position: relative;
    max-width: 450px;
    overflow: auto;
}

.chat-messages {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chat-messages-header {
    border-bottom: 2px solid #eeeeee;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: #aeaeae;
    background-color: white;
}



.chat-header-back-button {
    margin-right: 20px;
    cursor: pointer;
    opacity: .7;
    display: none !important;
}

    .chat-header-back-button:hover {
        opacity: 1;
    }


.header-user-pic {
    width: 36px;
    height: 36px;
    background-size: contain;
    border-radius: 100%;
    margin-right: 12px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}

.chat-messages-header > div {
    height: 100%;
    display: flex;
    align-items: center;
}

.chat-messages-header .chat-name-and-image {
    flex: 5;
    flex-grow: 1;
    width: 100%;
    display: flex;
}

.chat-name-and-image svg {
    fill: #ddd;
    margin-right: 8px;
}

.name-and-info h5 {
    font-size:.7em !important;
    font-weight:bold !important;
    
}

.name-and-info div {
    margin-top: 2px;
    font-size: .5em;
}

.chat-messages-header .profile-pic {
    width: 34px !important;
    height: 34px !important;
    margin-right: 8px;
    background-size: cover;
    background-position: center center;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}



.chat-messages .settings-button {
    flex: 1;
    width: 100%;
    justify-content: end;
    font-size: .75em;
    cursor: pointer;
}

.chat-messages .settings-button > div {
    width: 34px;
    text-align:right !important;
    padding:0;
}

    .chat-messages .settings-button i {
        font-size: .9em;
    }

.chat-messages-header h5 {
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    font-size: .8em;
}

    .chat-messages-header h5 i {
        padding-right: 12px;
    }

.chat-messages-header.favorite .chat-favorite-icon {
    color: gold;
}


.favorited-chat-icon-container .chat-favorite-icon {
    color: rgba(200,200,200,.1);
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgba(0,0,0,.3);
}



#chat-input-section {
    color: #aaa;
    border-top: 2px solid #eeeeee;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
}

#chat-buttons {
    flex: 0 0 100%;
    width: 100%;
    /* height: 0;
    overflow: hidden; */
    max-width: 100%;
    box-sizing: border-box;
    background-color: #fbfbfb;
    transition: all 1s ease-in-out;
    padding: 4px;
    border-bottom: 2px solid rgba(180,180,180,.1);
}

#chat-input-section.show-loading #chat-input-loading {
    display: flex !important;
}

#chat-input-loading {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    display: none;
    z-index: 2;
}

    #chat-input-loading .loading-icon-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        background: rgba(0,0,0,.2);
    }

    #chat-input-loading .spinner-border {
        color: white;
    }



#chat-buttons * {
    padding: 4px 12px;
    font-size: .8em;
    cursor: pointer;
}

    #chat-buttons *:hover {
        color: black;
        background: rgba(200,200,200,.2);
    }

.chat-input-main {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

.sched-audio #chat-system-text-input {
    display: none !important;
}

.sched-audio {
}

#chat-system-sched-audio-date-input {
    display: none;
}

    #chat-system-sched-audio-date-input.active {
        display: flex;
        padding: 8px;
    }

    #chat-system-sched-audio-date-input span {
        font-size: 12px;
        width: 100px;
        justify-content: center;
        align-content: center;
        display: flex;
        flex-wrap: wrap;
        color: black;
        font-weight: bold;
    }
/*SEND BUTTONS*/
.message-send-button-container {
    z-index: 2;
    margin-top: -20px;
}



.message-send-button {
    padding: 18px;
    background: #6246ea;
    text-align: center;
    font-size: 16px;
    border-radius: 100%;
    color: white;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    cursor: pointer;
    margin-left: 8px;
}



#text-send-button-container {
    display: none;
}

    #text-send-button-container .message-send-button {
        background: #40e0d0;
        color: black;
    }

/*AUDIO BUTTON*/

.fa-play.audio-played {
    color: lightgreen;
}

.fa-play.audio-in-progress {
    color: rgba(200,200,200,.4);
}

#chat-input-main.typing #audio-button-container {
    display: none;
}

#chat-input-main.typing #text-send-button-container {
    display: block;
}

#audio-button-container {
}

.audio-button {
}

    .audio-button .audio-button:hover {
        box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset, rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
    }





#chat-container.recording ..audio-button audio-button {
    animation: pulse 1s infinite;
    background: #32de84;
    border: 2px solid #17B169;
    z-index: 50;
}

#chat-text-input:disabled {
    animation: message_sending 2s infinite;
    white-space: normal;
    text-align: justify;
    -moz-text-align-last: center; /* Firefox 12+ */
    text-align-last: center;
}

@keyframes message_sending {
    0% {
        letter-spacing: .8px;
        color: rgba(0,0,0,0);
    }

    50% {
        letter-spacing: 3px;
        color: rgba(0,0,0,.8);
    }

    100% {
        letter-spacing: .8px;
        color: rgba(0,0,0,0);
    }
}

.record-time {
    display: none;
    position: absolute;
    top: 0;
    right: 75px;
    background: white;
    border-radius: 4px;
}

#chat-container.recording .record-time {
    display: block;
    color: black;
    border: 1px solid rgba(200,200,200,.8);
    padding: 4px 8px;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

#chat-container.recording {
}

    #chat-container.recording #chat-cover {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        background-color: rgba(100,100,100,.2);
        z-index: 0;
        backdrop-filter: blur(1px);
        transition:.5s ease all;
    }

#chat-cover {
    display: none;
}


/*********/


/*Chat Modal*/
#chat-modal {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8;
    padding: 0 14px;
    background-color: rgba(150,150,150,.4);
    display: none;
}

    #chat-modal .chat-modal-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        max-width: 80%;
        width: 400px;
    }

    #chat-modal.open {
        display: block;
    }

#chat-modal-alert {
    display: none;
}

#chat-modal.chat-modal-alert #chat-modal-alert {
    display: block;
}

#chat-modal-alert {
    background-color: #EFF;
    border: 1px solid #DEE;
    color: black;
    border-radius: 8px;
    padding: 16px;
    border: none;
    text-align: center;
    font-size: .8em;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
}

#chat-modal.chat-modal-alert {
    background-color: rgba(200,200,200,.3);
}

    #chat-modal.chat-modal-alert .close-modal-button {
        display: none;
    }

/*************/

/*Schedule Message*/

#chat-modal.open.schedule-message .schedule-message-content {
    display: block;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
    padding: 20px;
    border-radius: 4px;
}

.schedule-message-content {
    display: none;
    color: #232526;
    background: white;
}

    .schedule-message-content textarea {
        margin: 8px 0;
    }

    .schedule-message-content label {
        font-size: .8em;
    }

    .schedule-message-content * {
        font-size: .9em;
    }

.close-modal-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: .8em;
    opacity: .7;
    cursor: pointer;
}

    .close-modal-button:hover {
        opacity: 1;
    }

#select-sched-message-buttons {
    display: flex;
    justify-content: center;
    column-gap: 8px;
    width: 100%;
}

    #select-sched-message-buttons .btn {
        font-size: .8em;
        margin-bottom: 8px;
        min-width: 80px;
        padding: 2px;
    }


#sched-message-text, #sched-message-audio {
    display: none !important;
}

    #sched-message-text.show, #sched-message-audio.show {
        display: flex !important;
    }

#sched-message-audio {
    width: 100%;
    justify-content: center !important;
}


/*********************/

/*
.show-buttons-container, .chat-send-button-container {
    flex: 1;
    font-size: 20px;
    box-sizing: border-box;
    max-width: 60px;
    text-align: center;
    cursor: pointer;
}
*/
.chat-input-container {
    padding: 4px;
}

.chat-input-container-text {
    flex-grow: 1;
    width: 100%;
    padding: 4PX 6px;
}

.chat-input-container-send {
    flex-grow: 1;
    display: flex;
    align-content: center;
    justify-content: center;
    padding: 4PX 12PX;
    width: 60px;
}

.show-buttons-container {
    display: none;
}


.chat-send-button-container {
    text-align: right;
    display: flex;
}

.circle-icon-container {
    text-align: center;
    width: 45px;
    height: 45px;
    border-radius: 100%;
    cursor: pointer;
}

.purple-button {
    background-color: #6246ea;
    color: rgba(255,255,255,1);
}

.gray-button {
    background-color: lightgreen;
    color: white;
}

.circle-icon-container i {
    font-size: 14px !important;
    line-height: 45px;
}

#chat-input-button-container .audio-button {
    display: block !important;
}

#chat-input-button-container.typing .text-button {
    display: block !important;
}

#chat-input-button-container .text-button {
    display: none !important;
}

#chat-input-button-container.typing .audio-button {
    display: none !important;
}

.chat-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: .8em;
    font-weight: lighter;
    resize: vertical;
    padding: 8px;
    margin: 2px 8px !important;
    background: rgba(100,100,100,.1);
    border-radius: 4px;
    width: 100%;
}

.messages-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow-y: scroll;
    position: relative;
    flex-grow: 1;
    max-height: 100%;
    overflow-y: auto;
}

#messages-container::-webkit-scrollbar {
    width: 4px
}

#messages-container::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

#messages-container::-webkit-scrollbar-thumb {
    background-color: rgba(100,100,100,1);
    outline: 1px solid gray;
}

body *::-webkit-scrollbar {
    width: 4px
}

body *::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

body *::-webkit-scrollbar-thumb {
    background-color: rgba(100,100,100,1);
    outline: 1px solid gray;
}


#messages-container.load {
    overflow: hidden;
}

    #messages-container.load .loading {
        display: flex;
    }

.loading {
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

#messages-loading-div {
    position: absolute;
    background: white;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    opacity:.9;
}

#chat-right-container.show-loading #inner-messages {
    overflow-y: hidden;
    
}

#chat-right-container.show-loading #messages-loading-div {
    display:flex;
}

.main-chat-loading {
    display: flex;
    justify-content: center;
    align-content: center;
    background: rgb(240,240,240);
    height: 100% !important;
    flex-grow: 1;
    flex-wrap: wrap;
}

.loading div {
    position: absolute;
    left: 50%;
    top: 50%;
}

.global-body > .loading {
    height: 200px;
}


#messages-container.loading .loading {
    display: flex;
}

#messages-container.loading #inner-messages {
    display: none;
}

#inner-messages {
    position: relative;
}

    #inner-messages > .alert {
        position: absolute !important;
        top: 0;
        bottom: 20px;
    }

.user-messages {
    display: flex;
    flex-direction: row;
    margin: 8px 0 8px 0;
}

    .user-messages.user {
        flex-direction: row-reverse;
    }

    .user-messages .user-image {
        display: flex;
        width: 60px;
        height: auto;
        justify-content: center;
        align-items: center;
        background: none;
        border-radius: 0;
    }




.messages {
    flex-grow: 1;
    margin-top: 2px;
}

.user-messages.user .messages {
    margin-right: 0;
    display: flex;
    flex-direction: column;
}

.user-messages.user .message {
    flex: 0 1 auto;
    background: #e3efff;
}

.message-container {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
}

.user-messages.user .message-container {
    flex-direction: row-reverse;
}

.message {
    display: inline-block !important;
    font-size: .75em;
    line-height: 14px;
    color: #444;
    background: #f6f6f6;
    padding: 12px 10px;
    border-radius: 8px;
    flex-grow: 1;
    max-width: 240px;
    min-width: 120px !important;
    position: relative;
    padding: 8px !important;
    margin-top: 0px !important;
    min-height: 40px !important;
}

    .message .deleted {
        background: pink;
        opacity: 1 !important;
    }

    .message.deleted {
        line-height: 2em;
    }

.user-messages.deleted .message-fav-icon, .user-messages.deleted .message-like-icon, .user-messages.deleted .edit-tags-button, .user-messages.deleted .forward-message-button, .user-messages.deleted .delete-message-button {
    display: none !important;
}

.user-messages.deleted .undo-delete-message-button {
    display: block !important;
}

.undo-delete-message-button {
    display: none !important;
}



.icons .delete-message-button {
    color: #fd5c63 !important;
    opacity: 1 !important;
}

.edit-tags-button {
    color: #6699CC !important;
    opacity: 1 !important;
}

.user-messages .icons {
    flex-grow: 1;
    text-align: center;
    justify-content: center;
    display: flex;
    justify-content: start;
}

.user-messages.user .messages .message-container .icons {
    justify-content: end;
}

.user-messages .icons i {
    padding: 20px;
    font-size: .75em;
    color: gray;
    text-align: left;
    cursor: pointer;
    opacity: .3;
    min-width: 50px;
}

    .user-messages .icons i span {
        font-size: 8px;
    }

.user-messages.liked .message-like-icon {
    position: relative;
    opacity: 1;
    color: red;
}

    .user-messages.liked .message-like-icon span {
        opacity: 1;
    }

.message-like-icon {
    position: relative;
}

.user .message-like-icon span {
    right: 20px;
    color: #666666 !important;
    font-weight: normal;
}



.user-messages .message-like-icon span {
    color: black;
    opacity: .5;
    position: absolute;
    left: 12px;
}



.user-messages.favorite .message-fav-icon {
    opacity: 1;
    color: gold;
    border-radius: 8px;
}

.user-messages.favorite .message-fav-icon, .user-messages.liked .message-like-icon {
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgba(0,0,0,.1);
    border-radius: 2px;
    animation: breathe 1s normal !important;
}

.user .messages-sub {
}

.user-messages.user.edit .messages-sub {
    display: block;
}

.user-messages.user .messages-sub {
    text-align: right;
}

.user-messages.viewed .message-viewed {
    display: inline;
}

.user-messages.viewed .message-not-viewed {
    display: none;
}

.user-messages .message-viewed {
    display: none;
}

.user-messages .message-not-viewed {
    display: inline;
}

.user-messages .edit-message-button {
    display: none;
}

.user-messages.edit .edit-message-button {
    display: flex;
}

.user-messages .standard-button {
    display: flex;
}

.user-messages.edit .standard-button {
    display: none;
}

@keyframes breathe {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}
/*
.messages-sub {
    font-size: 8px;
    color: rgba(0,0,0,.3);
    font-weight: bold;
    padding: 2px 4px;
    margin-bottom: -4px;
}

    .messages-sub i {
        font-size: 8px;
    }*/

.user-messages.user .message-sub {
    text-align: right;
}

.message-actions.open {
    max-height: 200px !important;
    padding: 4px 0 !important;
}

.user-messages .message-actions {
    max-height: 0;
    overflow: hidden;
    padding: 0 !important;
}


.user-messages.user .message-actions {
    font-size: .75em;
    padding: 2px 4px;
}

.user-messages .message-actions i {
    font-size: 8px;
    margin-right: 1px;
}

.user-messages.user .message-actions {
    text-align: right;
}

.user-messages .message-actions .btn {
    font-size: 8px;
    padding: 4px !important;
    color: white;
    letter-spacing: .7px;
}

.delete-message-icon {
    color: red;
}

.user-messages .mark-read-btn {
    display: inline-block;
}

.user-messages .mark-unread-btn {
    display: none;
}

.user-messages.viewed .mark-read-btn {
    display: none;
}

.user-messages.viewed .mark-unread-btn {
    display: inline-block;
}


/* TAGS */
.edit .chat-message-tags {
    display: block;
}

.chat-message-tags {
    width: 100%;
    font-size: 8px;
    display: none;
    margin-top: 2px;
}

.chat-message-tag {
    display: inline-block;
    background: rgba(200,200,250,.2) !important;
    border: 1px solid rgba(200,200,200,.3) !important;
    margin: 0 2px;
    padding: 0 4px;
    border: 10px;
    color: rgba(0,0,0,.6);
    border-radius: 2px;
}

    .chat-message-tag > i {
        font-size: 6px !important;
    }


.user-messages.user .chat-message-tags {
    text-align: right;
}

#chat-tag-options-container {
    border-top: 2px solid rgba(100,100,100,.2);
    background: rgba(250,250,250,1);
    position: absolute;
    bottom: 0;
    max-height: 0;
    z-index: 50;
}

    #chat-tag-options-container.open {
        max-height: 1000px;
    }

.chat-tag-options {
    max-width: 100% !important;
    padding: 8px
}

.close-chat-tag-options-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    opacity: .4;
    cursor: pointer;
}

    .close-chat-tag-options-btn:hover {
        opacity: 1;
    }

.add-tags-container {
    padding: 8px;
}

    .add-tags-container label {
        margin-bottom: 4px;
    }

    .add-tags-container label, .add-tags-container input, .add-tags-container .btn {
        font-size: .75em;
    }

.selectable-tags {
    overflow-y: auto;
    border-top: 2px solid rgba(0,0,0,.1);
    padding: 12px;
}

.selectable-tag {
    display: inline-block;
}

    .selectable-tag.new {
        margin-left: 5px;
    }

    .selectable-tag label span {
        background: #f0f8ff;
        border: 1px solid rgba(0,0,0,.1);
        display: inline-block;
        border-radius: 4px;
        font-size: .75em;
        cursor: pointer;
        padding: 4px 8px;
    }

    .selectable-tag label {
        display: inline-block;
    }

        .selectable-tag label input {
            position: absolute;
            top: -20px;
            opacity: 0;
        }

            .selectable-tag label input:checked + span {
                background: #90ee90;
            }

#update-message-tags-form, #chat-select-users-form {
    border-top: 2px solid gray;
    padding: 12px;
}

    #chat-select-users-form label {
        margin-bottom: 8px;
        font-weight: bold;
    }

    #chat-select-users-form .input-group label {
        margin: 0 !important;
    }

    #chat-select-users-form * {
        font-size: .8em;
        !important;
    }

    #chat-select-users-form .small {
        font-size: .8em;
        !important;
        margin-bottom: 8px;
        opacity: .8;
        text-align: left;
        border: 1px solid rgba(200,200,200,.4);
        padding: 8px;
        border-radius: 8px;
        background: rgba(240,240,240,.8);
    }

    #chat-select-users-form .btn {
    }

.close-forward-form {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: .9em;
    cursor: pointer;
}


#update-message-tags-form.show {
    display: block;
}


#update-message-tags-form input[type=text] {
    font-size: .8em;
}

#update-message-tags-form .btn, {
    font-size: .75em;
    !important;
    line-height: 10px;
    padding: 0px 8px !important;
}

#update-message-tags-form label {
    margin-bottom: 4px;
    font-size: .8em;
    font-weight: bold !important;
    color: #333333;
    display: block !important;
    width: 100%;
    text-align: left;
}

#update-message-tags-form .input-group {
    border-bottom: 1px solid gray;
    padding: 8px;
    margin-bottom: 8px;
}


#selectable-tag-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    column-gap: 8px;
    row-gap: 4px;
    margin-top: 12px;
    border-top: 1px solid gray;
    padding-top: 12px;
    justify-content: left;
}

    #selectable-tag-list div input {
        display: none;
    }

        #selectable-tag-list div input + label {
            padding: 3px 8px;
            border-radius: 3px;
            font-size: .8em;
            cursor: pointer;
            transition: .25s ease-in all;
        }

        #selectable-tag-list div input:not(:checked) + label {
            color: rgba(0,0,0,.5);
            background: rgba(200,200,200,.4) !important;
        }

            #selectable-tag-list div input:not(:checked) + label:hover {
                color: rgba(0,0,0,.8);
            }

        #selectable-tag-list div input label:active, #selectable-tag-list div input:checked + label {
            background: green;
            color: white;
        }

.tag-id-list {
    display: none;
}


#update-message-tags-form, #chat-select-users-form {
    position: relative;
}

#close-chat-tag-form {
    position: absolute;
    right: 0;
    bottom: -14px;
    display: none;
    cursor: pointer;
    padding: 8px;
}

#update-message-tags-form, #chat-select-users-form {
    /* background: white !important;
    border: 2px solid gray;
    border-radius: 8px !important;*/
}

/* Floating Messages */
#floating-message-container {
    position: absolute;
    background: transparent;
    left: 20px;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    z-index: 200;
    background: white !important;
    border: 2px solid gray;
    border-radius: 8px !important;
}

    #floating-message-container .alert {
        border: none !important;
        background: white;
        font-size: .8em;
        margin: 0;
    }

        #floating-message-container .alert .close {
            display: none;
            position: absolute;
            right: 6px;
            top: 10px;
            transform: translateY(-50%);
            border: none;
            background: transparent;
            padding: 0;
            font-size: .9em;
            display: none;
        }

#close-floating-message-container {
    border-top: 1px solid rgba(0,0,0,.2);
    padding: 4px 4px;
    text-align: right;
    background: rgba(200,200,200,.1);
}

    #close-floating-message-container .btn {
        font-size: .75em;
        !important;
        padding: 4px;
        margin-right: 4px;
    }

/* IMAGE MESSAGE */

.message.image {
    margin-top: 4px;
    width: auto;
    text-align: center;
}

    .message.image img {
        max-width: 100%;
        max-height: 400px;
        margin: 0 auto;
    }

/* AUDIO MESSAGE */

.message.audio {
    /*background-color: transparent !important;*/
    margin: 0;
    padding: 0 !important;
    margin-top: 4px;
}

.user-messages audio {
    max-width: 100%;
    font-size: .75em;
}

.user-messages.user audio::-webkit-media-controls-panel {
    background-color: #e3efff;
}

.user-messages audio::-webkit-media-controls-volume-slider {
    background-color: #B1D4E0;
    border-radius: 25px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: .75em;
    !important;
}

.user-messages audio {
    height: 40px;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    font-size: .75em;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* GIF */
#chat-system-gif-search {
    display: none;
    box-sizing: border-box;
    padding: 6px 14px 12px;
}

#chat-system-gif-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: .8em;
    font-weight: lighter;
    resize: vertical;
    padding: 8px;
    background: rgba(100,100,100,.1);
    border-radius: 4px;
    box-sizing: border-box;
}

#chat-input-main.gif #chat-system-gif-search {
    display: block;
}


#chat-input-main.gif #chat-system-text-input, #chat-input-main.gif .chat-input-container-send {
    display: none;
}

#chat-input-main.sched #chat-system-text-input, #chat-input-main.sched .chat-input-container-send, #chat-input-main.sched-audio #chat-system-text-input, #chat-input-main.sched-audio .chat-input-container-send {
    display: none !important;
}

#gifContainer-chat-system {
    padding:0;
}

#gifContainer-chat-system:has(div) {
    background: rgb(244,244,244);
    border-top: 1px solid rgb(200,200,200);
    padding: 0;
    min-height: 300px;
    max-height: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    overflow-y: scroll;
}

#gifContainer-chat-system .photos {
    margin-top: 0 !important;
    width: 25%;
}

#chat-system-gif-button.active {
    background: rgba(220,220,220,5);
    border-radius: 4px;
    color: black;
}

#selectedGifContainer-chat-system {
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 2px;
    column-gap: 2px;
}

    #selectedGifContainer-chat-system .btn {
        width: 48% !important;
        box-sizing: border-box;
    }



/**** SCHEDULE MESSAGE  ****/

.coach-admin .scheduled-message-icon {
    display: none;
}

.scheduled-message-icon {
    display: none;
    position: absolute;
    font-size: .75em;
    right: 15px;
    bottom: 2px;
    padding: 8px !important;
    color: magenta;
    padding: 1px;
    background: white;
    border-radius: 50%;
}

#chat-system-schedule-message, #chat-system-schedule-audio-message-container {
    padding: 6px;
    background: rgba(250,250,250);
    display: none;
    width: 100%;
    box-sizing: border-box;
    /*border-top: 1px solid rgba(0,0,0,.2);
    margin-top: 4px;*/
}

    #chat-system-schedule-message.active, #chat-system-schedule-audio-message-container.active {
        display: block !important;
    }

#schedule-message-textarea-container {
    margin-bottom: 8px;
    padding: 0 4px 4px 4px;
}

.scheduled-message .content {
    padding: 8px;
}

#chat-system-schedule-message label:first-child {
    display: block;
    text-align: center;
    margin-bottom: 4px;
}

#chat-system-schedule-message textarea {
    font-size: .9em;
}

#chat-system-schedule-message .input-group, #schedule-audio-message-form .input-group {
    padding: 4px !important;
    font-size: .9em;
    !important;
    width: 100% !important;
    display: flex;
}

    #chat-system-schedule-message .input-group *, #schedule-audio-message-form .input-group * {
        font-size: .9em;
    }

    #chat-system-schedule-message .input-group i, #schedule-audio-message-form .input-group i {
        font-size: .8em;
        width: 28px;
        display: block;
    }

#chat-system-schedule-audio-message-container, #chat-system-schedule-message {
    background: white;
}

#chat-system-schedule-message-form, #chat-system-schedule-audio-message-container {
}



#schedule-audio-message-form label, #chat-system-schedule-message label:first-child {
    display: block;
    text-align: center;
    margin: 8px 0 !important;
    font-size: .8em;
}

.audio-record-group {
    justify-content: center;
}

    .audio-record-group .input-group-text {
        flex-grow: 1;
        max-width: 80%;
        padding: 0;
        border: 1px solid gray;
        position: relative;
    }

    .audio-record-group audio {
        padding: 0 !important;
    }

    .audio-record-group .btn {
    }

    .audio-record-group audio::-webkit-media-controls-panel {
        background: #e9ecef;
    }

    .audio-record-group::-webkit-media-controls-volume-slider {
        border-radius: 25px;
        padding-left: 8px;
        padding-right: 8px;
        font-size: .75em;
        !important;
    }

    .audio-record-group audio {
        height: 40px;
    }

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    font-size: .75em;
}

#scheduling-recorder-counter {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.6);
    text-align: right;
    padding: 10px;
    display: none;
}

    #scheduling-recorder-counter.active {
        display: block;
        z-index: 200;
    }

    #scheduling-recorder-counter div {
        font-weight: bold;
        color: white;
    }


#chat-system-schedule-message-button.active {
    background: rgba(220,220,220,5);
    border-radius: 4px;
    color: black;
}

#chat-system-schedule-audio-message-button.active {
    background: rgba(220,220,220,5);
    border-radius: 4px;
    color: black;
}

/***********/

/*ChAT SETTINGS*/
.chat-settings {
}

.chat-settings-header {
    display: flex;
    flex-direction: row;
    width: 100%;
    border-bottom: 2px solid rgb(0,0,0,.1);
}

.close-chat-settings-button {
    /*padding: 20px;
    cursor: pointer;
    opacity: .7;
    border-right: 2px solid rgb(0,0,0,.1);
    min-width: 60px;
    text-align: right;*/
    margin-right: 20px;
    cursor: pointer;
    opacity: .7;
    display: none !important;
}

.chat-settings-header h5:last-child {
    flex-grow: 0;
}

.chat-settings-header h5:first-child {
    flex-grow: 1;
}

.chat-settings h5 {
    background: rgba(160,160,160,.1);
    margin-bottom: 0;
    padding: 14px 24px;
}

#chat-settings-links {
    width: 100%;
    border-bottom: 3px solid rgba(0,0,0,.2);
    font-size: .9em;
}

.chat-settings-link {
    display: inline-block;
    text-decoration: none;
    color: #414345;
    padding: 14px 14px;
    font-weight: bold;
    margin-right: -4px;
    min-width: 100px;
    text-align: center;
}



    .chat-settings-link:hover, .chat-settings-link.selected {
        background: rgba(160,160,160,.1);
        border-bottom: 3px solid royalblue;
        margin-bottom: -3px;
    }

.close-chat-settings-button:hover {
    opacity: 1;
    background: rgba(160,160,160,.1);
}

#chat-settings-items-container {
    padding: 12px;
    max-height: 100%;
    overflow: auto;
    font-size: 1em;
}

.chat-settings-container * {
}

/*CHAT TAG SETTINGS*/
.chat-settings-tag-content label {
    margin-bottom: 4px;
}

.custom-inline-form {
    display: flex;
    flex-direction: c;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 22px;
}

    .custom-inline-form select {
        width: 60px;
    }

.custom-inine-form textarea {
    width: 100%;
    margin-bottom: 16px;
    flex-grow: 1;
}

#schedule-new-message-button, #create-new-tag-button {
    font-size: .8em;
    margin-bottom: 8px;
    border: 1px solid blue;
    border-radius: 8px;
    cursor: pointer;
}


.color-container {
    display: flex;
    overflow: hidden;
}

#tag-color-picker {
    width: 80px;
}

/* #tag-table tr td, #tag-table tr th {
     font-size: .8em;
    vertical-align: middle;
}

#tag-table tr td:first-child {
    width: 50px;
    
}

#tag-table tr th:first-child {
    text-align: center;
}

.tag-color-square {
    width: 20px;
    height: 20px;
    margin:0 auto;
    border-radius: 4px;
    background:green;
} */



.settings-title {
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,.2);
}

#editable-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.editable-tag {
    flex: 0 0 calc(50% - 16px);
    border: 1px solid rgba(100,100,100,.5);
    border-radius: 8px;
    position: relative;
    display: flex;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 12px;
    font-size: .75em;
    !important;
}

.tag-dot-container {
    display: flex;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-right: 8px;
    font-size: .9em;
}

.editable-tag-name {
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 4px 0;
    width: 100%;
}

    .editable-tag-name div:first-child {
        justify-content: space-between;
    }


.tag-message-count {
    font-size: .8em;
    padding: 8px;
    margin-left: 8px;
    border-left: 1px solid gray;
    opacity: .7;
    display: none;
}



.editable-tag-buttons {
    /*flex: 1;
    justify-content: end;
    align-items: center;*/
    border-left: 1px solid rgba(0,0,0,.2);
    display: flex;
}

.editable-tag:hover {
    background: rgba(240,240,240,.8);
}

    .editable-tag:hover .editable-tag-buttons {
        display: flex;
    }

.editable-tag-buttons span {
    margin-left: 12px;
    font-size: .75em;
    text-align: center;
}

.tag-button {
    padding: 4px;
    margin-left: 16px;
    color: gray;
    font-size: .75em !important;
}

    .tag-button:hover {
        background: rgba(240,240,240,.9);
    }

.edit-tag-button:hover {
    color: #0083B0;
}

.delete-tag-button:hover {
    color: red
}

/*Quick Responses*/

.quick-response {
    border: 1px solid rgba(100,100,100,.5);
    border-radius: 8px;
    padding: 4px 8px;
    position: relative;
    display: flex;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    cursor: pointer;
    margin-bottom: 4px;
}

.quick-response-name {
    flex: 4;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 4px 0;
}

.quick-number {
    font-size: .8em;
    padding: 8px;
    margin-right: 8px;
    border-right: 1px solid gray;
    ;
    opacity: .7;
    font-weight: bold;
}

.quick-response-buttons {
    flex: 1;
    justify-content: end;
    align-items: center;
    display: none;
}

.quick-response:hover {
    background: rgba(240,240,240,.8);
}

    .quick-response:hover .quick-response-buttons {
        display: flex;
    }

.quick-response-buttons span {
    margin-left: 8px;
    font-size: .9em;
    text-align: center;
    display: inline-block;
}


/* Scheduled Message */

#chat-settings-form-container form {
    padding: 12px;
    font-size: .85em;
}


    #chat-settings-form-container form textarea {
        margin-bottom: 14px;
        margin-top: -8px;
    }

    #chat-settings-form-container form .custom-inline-form select {
        width: 40%;
    }

    #chat-settings-form-container form input[type='datetime-local'] {
        width: 40%;
    }

.settings-title {
    font-size: 16px;
}

.scheduled-message {
    border: 1px solid rgba(100,100,100,.3);
    border-radius: 8px;
    margin-bottom: 4px;
}

    .scheduled-message .content {
        max-height: 100px;
        padding: 8px;
        background: rgba(220,220,220,.1);
        overflow-y: scroll;
    }

    .scheduled-message .sub-content {
        display: flex;
        flex-direction: row;
        padding: 4px;
        padding: 8px;
    }

        .scheduled-message .sub-content .date {
            flex: 2;
            font-size: .8em;
        }

        .scheduled-message .sub-content .scheduled-message-buttons {
            flex: 2;
            padding-right: 8px;
            text-align: right;
        }

.fbuttons span i {
    font-size: 11px !important;
}

.scheduled-message-buttons span {
    cursor: pointer;
}

/*#schedule-new-message-button, #create-new-tag-button {
    padding: 4px !important;
    margin-bottom: 8px;
    cursor: pointer;
     font-size: .8em;
}*/

#chat-settings-message-container {
    display: none;
    text-align: center;
    padding: 10px 8px;
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
    border-radius: 4px;
    margin-bottom: 10px;
}

    #chat-settings-message-container.show {
        display: block;
    }

/***************/

.messages-stats {
    display: none;
}

.sending-message-div {
    text-align: center;
    margin-bottom: 12px;
    justify-content: center;
    display: none;
}

#message-sending-div.active {
    display: flex !important;
}

.sending-message-div .content {
    display: flex;
    flex-direction: row;
    font-size: .8em;
    align-items: center;
    background: rgba(200,200,200,.3);
    padding: 8px 20px !important;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.sending-message-div .dots {
    display: flex;
    align-content: center;
    justify-content: center;
    margin-right: 8px;
}

.sending-message-div .content .spinner-grow {
    width: 6px;
    height: 6px;
    margin: 0 2px;
}
/*MOBILE*/
@media only screen and (max-width: 600px) {
    html, body {
        margin: 0;
        padding: 0;
    }

    html, body {
        height: 100%;
        
        min-height: -webkit-fill-available;
    }

    #chat-system-container {
        z-index: 200;
        top: 0;
        left: 0;
        right: 0;
        position: fixed;
        width: 100vw;
        height: 100%;
        min-height: -webkit-fill-available;
    }


    #chat-container {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        max-width: 100vw;
        margin: 0;
    }

    .chat-left-container {
        height: 100%;
        width: 100vw;
        display: none;
    }

    #chat-left-container, #chat-right-container {
        display: none;
    }

        #chat-left-container.active, #chat-right-container.active {
            display: block;
        }

    #chat-container.show-menu .chat-left-container {
        display: block;
    }

    #chat-container.show-menu .chat-right-container {
        display: none;
    }

    .chat-right-container {
        max-width: 600px !important;
    }

    .chat-header-back-button {
        display: flex !important;
    }

    .close-chat-settings-button {
        display: flex !important;
        margin-right: 0;
        color: #aeaeae;
    }

    body {
/*        height: 100%;
        position: fixed;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;*/
    }

    #sideNav-container.open {
        width: 100vw;
    }

    #sideNav {
        
        width: 100% !important
    }
}


/**EXTERNAL***/
.image-info-box {
    font-size: 1em;
}

    .image-info-box td {
        vertical-align: middle;
        padding: 0;
    }

    .image-info-box table {
        margin-bottom: 0;
    }

        .image-info-box table tr td {
            border: none;
        }



.user-image-container {
    width: 100px;
    padding: 0;
}

.user-image {
    width: 80px;
    height: 80px;
    background: orange;
    border-radius: 50%;
    max-width: 100%;
    display: block;
    background-size: contain;
}

.image-info-box .full-name {
    line-height: 14px;
    font-weight: bold;
}

.image-info-box .email {
    font-size: .8em;
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.image-info-box .user-score {
    font-size: 40px;
    text-align: center;
    font-weight: bold;
    line-height: 40px;
}

.user-score {
    background: #2e2e2e !important;
    color: white;
    width: 30%;
    font-size: 24px !important;
}

.xp-text {
    padding: 8px;
    font-size: .8em;
    line-height: 12px;
}

.last30Days h5, .scoresPast4Months h5 {
    text-align: center;
    margin-bottom: 4px;
    background: rgba(0,0,0,.1);
    padding: 4px;
}

.last30Days td i {
    font-size: 24px;
}

.last30Days td {
    font-size: .9em;
    font-weight: bold;
    color: #3e3e3e;
    text-align: center;
    padding: 8px;
}

.last30Days, .scoresPast4Months {
    padding: 0;
}

#seasonStats h1 {
    font-size: 24px;
}

#seasonStats h5 {
    font-size: .8em;
}

#seasonStats table {
    font-size: .75em;
    margin-bottom: 0;
}

#seasonStats td {
}

#seasonStats table tr td:nth-child(2) {
    text-align: right;
}

.starStats tr td:nth-child(2) {
    text-align: right;
}

.starMainText tr td {
    text-align: center;
    vertical-align: middle;
}

    .starMainText tr td:first-child {
        font-size: 24px;
    }

    .starMainText tr td:nth-child(2) {
        width: 90%;
        font-size: .9em;
    }

#interacting-container {
    transition: 2s ease-in-out all;
}

.user-interacting-div {
    font-size: .75em;
    background: rgb(230,230,230);
    display: flex;
    justify-content: center;
    align-content: center;
    padding: 12px 0;
}

    .user-interacting-div div {
        display: flex;
        justify-content: center;
        align-content: center;
        align-items: center;
    }

    .user-interacting-div .spinner-grow {
        width: 10px;
        height: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 6px;
    }



.user-messages.edit .forward-info, .user-messages.edit .scheduled-message-time-info {
    /*display:none;*/
}

.user .forward-info, .user .scheduled-message-time-info {
    text-align: right;
}

.forward-info, .scheduled-message-time-info, .messages-sub {
    font-size: .6em;
    color: rgba(0,0,0,.4) !important;
    /*    margin: -4px 0 0px 0 !important;*/
    width: 100%;
}

.scheduled-message-time-info, .forward-info {
    /*margin-top: -2px !important;*/
}

.messages-sub {
    opacity: .8;
}



.audio .forward-info {
}

.deleted .forward-info, .deleted .messages-sub, .messages.audio .forward-info, .messages.image .forward-info {
    margin-top: 0 !important;
}

.deleted .messages-sub {
    margin: 0 !important;
}

#chatMessages .carousel {
    width: 200px;
}

.message.text {
    padding: 16px 10px !important;
    min-width: 45% !important;
}

#globalModalBody .carousel-inner {
    height: 600px;
}


#globalModalBody img {
    max-width: 100%;
    max-height: 80vh;
}

#globalModalBody:has(img) {
    text-align: center;
}

.chat-settings .main-chat-loading {
    padding-top: 20px;
    padding-bottom: 20px !important;
    margin: 8px 0;
}

#floating-message-container {
    display: none;
}

    #floating-message-container.show {
        display: block;
    }

#userAndGroupSearchInput {
    margin-bottom: 12px;
}


#full-screen-chat-image-container {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 4px;
    background: rgba(0,0,0,.8);
    padding: 8px;
    display: none;
    opacity: 0;
    transform: scale(0);
}

    #full-screen-chat-image-container.show {
        display: flex;
        opacity: 1;
        transform: scale(1);
        z-index: 4000 !important;
        justify-content: center;
        align-content: center;
        max-width: 100vw;
        max-height: 100vh;
        padding: 8px;
    }

#full-screen-chat-image {
    width: 100%;
    display: block;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    max-width: 600px;
}

#close-full-screen-chat-image {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white !important;
    opacity: .7;
    cursor: pointer;
    font-size: 32px;
}

    #close-full-screen-chat-image:hover {
        opacity: 1;
    }

.image-buttons {
    display:flex;
    flex-direction:row;
    justify-content:space-between;
    font-size:12px;
    margin-top:8px;
}

.image-buttons i {
    
    color:rgba(0,0,0,.5);
}

.swiper-full-screen-button {
    margin-top: 4px;
}

.schedule-audio-record-button {
    font-size: 12px;
}

    .schedule-audio-record-button i {
        margin-left: 4px;
    }

#update-scheduled-message-form .audio-record-group {
    margin-bottom: 12px;
}

.scheduled-messages audio {
    width: 100% !important;
}

.two-button-flex {
    display: flex;
    flex-direction: row;
    column-gap: 8px;
}

    .two-button-flex .btn {
        width: 50%;
    }

#update-scheduled-message-audio-form {
    display: none;
}

#create-chat-button {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 11px;
    background: #6246ea;
    padding: 12px 12px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

    #create-chat-button.expand i {
        margin-right: 4px;
        transition: .5s ease-in-out all;
    }

    #create-chat-button.expand span {
        max-width: 300px;
    }

    #create-chat-button span {
        max-width: 0;
        overflow: hidden;
        transition: .5s ease-in-out all;
        white-space: nowrap;
    }



#create-new-chat-container {
    background: #41295a; /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #2F0743, #41295a); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #2F0743, #41295a); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    font-size: 18px;
    height: 100%;
    color: white;
    display:flex;
    flex-direction:column !important;

}

    #create-new-chat-container h2 {
        font-size: 18px;
        font-weight: bold;
    }

.chat-right-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 12px;
    background:rgba(255,255,255,.1);
    padding: 14px 10px 10px 10px;
}

.chat-right-header div:first-child {
    cursor:pointer;
}

.chat-right-header div:first-child:hover {
    opacity:.8;
}


#create-new-chat-content-container {
    padding: 12px;
}

#create-new-chat-container .search-user-row {
    background: rgba(255,255,255,.1);
    width: 100%;
    display: flex;
    flex-direction: row;
    font-size:14px;;
    justify-content: center;
    align-items: center;
    padding: 8px;
  
}

    #create-new-chat-container .search-user-row label {
        width: 10%;
    }

#create-chat-search-user-input {
    width: 90%;
    background: transparent;
    border: none;
    outline: none;
    color: white !important;
}

    #create-chat-search-user-input::placeholder {
        color: white;
        opacity: .5;
    }

    #create-solo-chat-list {
        display:flex;
        flex-direction:column;
        padding: 8px 0 !important; 
        overflow:scroll;
        max-width:100%;
    }

    #create-solo-chat-list:empty {
        overflow:hidden !important;
    }

.user-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 8px !important;
    cursor: pointer;
    padding: 12px 12px;
    opacity: .8;
    max-width:100%;
}

    .user-item:hover {
        opacity:1;
        background:
    }

    .circle-initial {
        width: 36px;
        height:36px;
        font-size:17px;
        text-align:center;
        border-radius:50%;
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
    }

    .icon-container{
        
    }

.user-item:first-child div span {
    font-size: 12px;
    line-height: 10px;
    padding: 0;
    margin: 0;
}

.info-container {
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.info-container div {
    font-size:16px;
    line-height:18px;
    margin-bottom:4px;
}

.info-container span {
    font-size:10px !important;
    line-height:12px;
    letter-spacing:1px;
}

.new-chat-user-buttons {
    display:flex;
    width: 100%;
    justify-content:right !important;
    align-items:center;
}

.new-chat-user-button {
    font-size:11px;
    padding: 4px 12px;
    border-radius:16px;
}

.new-chat-user-button.add {
    background:rgba(20,255,20,.5);
}

.new-chat-user-button.remove {
    background:rgba(255,20,20,.5);
}

#create-new-group-chat-items {
    overflow-y:scroll;
}

#create-new-group-chat-items .new-chat-user-button.remove {
    display:none !important;
}

#create-group-chat-list {
    overflow-y:scroll;
}

.create-chat-button-row {
    flex-shrink:0;
    display:flex;
    flex-direction:row;
    
    justify-content:left;

}

.group-button {
    width:100%;
    display:block;
    padding: 6px;
}

    .group-button label {
        width: auto !important;
    }

        .group-button label span {
            cursor: pointer;
            text-align: center;
            border: 1px solid rgba(0,0,0,.6);
            display: block !important;
            width: 100% !important;
            padding: 4px 20px;
            border-radius: 18px;
            font-size: 12px;
            background: rgba(0,0,0,.5);
            opacity:.5;
        }

.group-button label input {
    position:absolute;
    display:none;
}

.group-button input:checked + span {
    opacity:1;
}

#create-group-chat-list {
    display:none !important;
}

#create-solo-chat-lsit {
    display:block !important;
}

#create-new-chat-container.group #create-group-chat-list {
    display:flex !important;
} 

#create-new-chat-container.group #create-solo-chat-list {
    display:none !important;
}

#create-group-chat-list {
    width: 100%;
    flex-direction:column;
    
}

#create-group-chat-list input {
    font-size:12px;
}

#create-group-chat-list input {
    
    background:transparent;
    border: none;
    outline: none;
    color: white !important;
    padding:12px;
    width:100%;
    font-size:14px;
}

#create-group-chat-list input::placeholder {
    color: white;
    opacity: .5;
}
    
#selected-create-new-chat-items {
    display: flex;
    flex-direction: row;
    padding: 6px;
    column-gap: 4px;
    flex-wrap: wrap;
    max-width: 100%;
    row-gap: 4px;
    background: rgba(255,2555,255,.1);
    border-top: 2px solid rgba(0,0,0,.2) !important;
}

#selected-create-new-chat-items .user-item {
    display:flex;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    border: 2px solid rgba(0,0,0,.2);
    padding:6px 4px;
    border-radius:8px;
    background: #6246ea;
}

#selected-create-new-chat-items .user-item .info-container div {
    font-size:12px;
    white-space:nowrap;
    margin:0 !important;
    max-width:80px;
    overflow:hidden;
    
}

    #selected-create-new-chat-items .user-item .info-container span, #selected-create-new-chat-items .add, #selected-create-new-chat-items .icon-container {
        display: none;
    }

#selected-create-new-chat-items .remove {
    background:transparent;
    padding:0;
}

.group-name-row {
    display: flex;
    flex-direction: row;
    font-size: 14px;
    background: rgba(255,255,255,.1);
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    border-top: 2px solid rgba(0,0,0,.2) !important;
}

.group-name-row div:first-child {
    display:flex;
    flex-direction:row;
    align-items:center;
}

    .group-name-row .create-button {
        cursor: pointer;
        text-align: center;
        border: 1px solid rgba(0,0,0,.6);
        display: block !important;
        width: 100% !important;
        padding: 4px 20px;
        border-radius: 18px;
        font-size: 12px;
        background: rgba(33,255,33,.5);
        color:white;    
    }

group-name-row .create-button i {
    padding:8px;
}    

#selected-users-list-message {
    background:rgba(0,0,0,.2);
    font-size:14px;
    padding:12px;
    color:rgba(255,20,20,1);
}

#selected-users-list-message:empty {
    padding:0 !important;;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}


.message-title-form {
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    box-sizing:border-box;
}

.message-title-form  i{
    min-width:30px;
    cursor:pointer;
    opacity:.7;
}

.audio-message-title-input {
    border: none;
    
    padding: 8px;
    box-sizing: border-box;
    background:transparent;
    flex:1;
}

    .audio-message-title-input:focus {
        border: none !important;
        outline: none !important;
        background: rgba(255,255,255,.5);
    }

.audio-message-title {
    width:100%; 
    display:block;
    padding:8px;
    font-size:10px;
    user-select:none;
}