.box-shadow {
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    margin-bottom: 1rem;
}

#group-chat-modal.modernizing_modal .modal-body,
#group-chat-modal .modal-content {
    border-radius: 14px;
    border: none;
}

.card {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 0 solid rgba(0, 0, 0, .125);
    border-radius: 14px;
}

.card-header {
    justify-content: space-between;
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    padding: .75rem 1.25rem;
    position: relative;
    border-radius: 14px 14px 0 0;
}

.card-body {
    overflow-x: hidden;
    padding: 0;
    position: relative;
}

.card-footer {
    padding: .75rem 1.25rem;
    background-color: rgba(0, 0, 0, .03);
    border-top: 0 solid rgba(0, 0, 0, .125);
    border-radius: 0 0 14px 14px;
}

.card-title {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
}

.badge {
    display: inline-block;
    padding: .25em .4em;

    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-tool {
    background-color: transparent;
    color: #adb5bd;

    margin: -.75rem 0;
    padding: .25rem .5rem;
}

.direct-chat-messages {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
    height: 400px;
    overflow: auto;
    padding: 10px;
}

.direct-chat-msg {
    margin-bottom: 10px;
    position: relative;
}

.left .direct-chat-infos {
    justify-content: flex-start;
    margin-bottom: 4px;
}

.right .direct-chat-infos {
    justify-content: flex-end;
    margin-bottom: 4px;
}

.direct-chat-name {
    font-weight: 600;
}

.float-left {
    float: left !important;
}

.direct-chat-timestamp {
    color: var(--color-disable);
    font-size: 12px;
    letter-spacing: var(--main-txt-spacing);
}

.float-right {
    float: right !important;
}

.direct-chat-img {
    object-fit: cover;
    border-radius: 50%;
    float: left;
    height: 40px;
    width: 40px;
}

.clearfix::after {
    display: block;
    clear: both;
    content: "";
}

img {
    vertical-align: middle;
    border-style: none;
}

.direct-chat-text {
    width: calc(100% - 50px);
    background-color: #d2d6de;
    letter-spacing: var(--main-txt-spacing);
    border: none;
    color: #444;
    margin: 0 0 0 30px;
    padding: 5px 10px;
    border-radius: 8px;
    display: block;
    position: relative;
}

.right .direct-chat-img {
    float: right;
}

.chat-user-section.flex-box {
    align-items: flex-start;
}

.left .direct-chat-text {
    margin-right: 0px;
    margin-left: 10px;
}

.right .direct-chat-text {
    margin-left: 0;
    margin-right: 10px;
    background-color: var(--bg-color);
    color: var(--font-color);
}

.direct-chat-text::after {
    border-width: 5px !important;
    margin-top: -5px;
}

.direct-chat-text::after,
.direct-chat-text::before {
    border: solid transparent;
    content: " ";
    height: 0;
    pointer-events: none;
    position: absolute;
    top: 15px;
    width: 0;
}

.left .direct-chat-text::after,
.left .direct-chat-text::before {
    right: 100%;
    border-right-color: #d2d6de;
}


.right .direct-chat-text::after,
.right .direct-chat-text::before {
    left: 100%;
    right: auto;
    border-left-color: var(--bg-color);
}

.chat-container {
    display: flex;
    align-items: center;
    /* Align items at the start */
    justify-content: center;
    width: 100%;
    padding: 10px;
}

.chat-editor {
    display: flex;
    align-items: center;
    width: 60%;
    min-height: 40px;
    border: 2px solid #d8dfe7;
    border-radius: 12px;
    padding: 0 10px;
    box-sizing: border-box;
    position: relative;
}

.editable-div {
    flex-grow: 1;
    /* Allows the div to grow as needed */
    min-height: 100%;
    width: 100%;
    /* Adjust width to fill the container */
    border: none;
    /* padding-left: 30px; */
    /* Space for the icon */
    outline: none;
    overflow-y: auto;
    /* Handles vertical overflow */
}

.chat-icon {
    /* position: absolute; */
    /* left: 10px; */
    /* top: 50%; */
    /* transform: translateY(-50%); */
    font-size: 20px;
    /* Specify icon size */
    color: #555;
    /* Icon color */
}

.chat-icon emoji-picker {
    z-index: 3;
    display: none !important;
    transition: all 0.3s;
}

.chat-icon emoji-picker.show-emojis {
    z-index: 3;
    position: absolute;
    display: inline !important;
    transition: all 0.3s;
}

.chat-icon button.emoji-btn {
    color: #ffffff;
    border: none;
    background-color: var(--color-disable);
    border-radius: 30px;
    margin-right: 6px;
    text-align: center;
    font-size: 22px;
    padding: 0;
    display: block;
    width: 35px;
    height: 35px;
    transition: all 0.3s;
}

.chat-icon button.emoji-btn:hover {
    background-color: var(--color-blue-new);
    transition: all 0.3s;
}


.send-button {
    background-color: var(--bg-color);
    color: var(--font-color);
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-left: 10px;
}

emoji-picker {
    display: none;
}

.user-chat-section {
    display: flex;
}

.chat-groups {
    width: 200px;
    /* background-color: var(--color-dark-new);
    color: #ffffff; */
    background-color: var(--color-disable);
    color: var(--color-dark-new);
    height: 400px;
    overflow-y: scroll;
}

.chat-group {
    display: flex;
    border-bottom: 2px solid #ffffff;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    position: relative;
}

.chat-group.active {
    background-color: var(--bg-color);
    color: var(--font-color)
}

.chat-user-name {
    margin-left: 10px;

}

.direct-chat-msg.right {
    float: right;
    clear: both;
}

.direct-chat-msg.left {
    float: left;
    clear: both;
}

.direct-chat-msg.left .direct-chat-name {
    margin-right: 10px;
}

.direct-chat-msg.right .direct-chat-name {
    margin-left: 10px;
}

.no-chats-info {
    display: none;
    justify-content: center;
    align-items: center;
}

.no-chats .no-chats-info {
    display: flex;
    padding: 50px 0px;
}

.no-chats .card {
    display: none;
}

.chat-unread-count {
    position: absolute;
    right: 0;
    top: 30%;
    
}

/* .chat-unread-count span{
        background-color: green;
        color: #ffffff;
        border-radius: 20px;
        padding: 3px;
        font-size: 10px;
} */
.chat-close {
    font-size: 18px;
    cursor: pointer;
    color: #ff0000;
}
.adv-chat-badge{
    left: 30%;
    top: 0px;
}

@media(max-width:767px) {
.adv-chat-badge {
        left: 50%;
        top: 0px;
    }
}


.chat-options{
    position: absolute;
    width: 200px;
    z-index: 99;
    border-radius: 10px;
    bottom: 0;
    display: none;
}

.chat-options ul{
    padding: 0;
}

.direct-chat-msg.left .chat-options{
    right: 0;
    left: 100%;
}

.direct-chat-msg.right .chat-options {
    /* left: 0; */
    right: 100%;
}
.chat-options li{
    list-style: none;
    padding: 3px 10px;
}

.chat-options li.divider{
    padding: 0px;
}

.chat-options hr{
    width: 100%;
    margin: 0px;
    height: 1px;
       
border-bottom: 1px solid;
        
}

.chat-options .delete-chat{
    cursor: pointer;
    font-size: 12px;
}

.chat-options .mdi-delete{
    font-size: 18px;
}

.direct-chat-text.deleted{
    background-color: #d2d6de;
        border: none;
        color: #444;
        font-size: 10px;
        font-style: italic;
}

.delete-all-btn{
    width: 30px;
        margin-right: 30px;
        color: tomato;
        border-radius: 10px;
        text-decoration: none !important;
        font-size: 22px;
        border: 1px solid red;
        text-align: center;
        display: inline-block;
}