﻿#chatContainer, .chat-box-wrapper {
    position:absolute;
    top:0px;
    left:0px;
    right:0px;
    bottom:0px;
}
@media (max-width: 480px)
{
    .chat-box-wrapper {
        /*margin-bottom: 32px;*/
    }
}

.chat-box-wrapper{
     background: rgb(29, 33, 39);
     background: linear-gradient(135deg, rgba(150,221,223,1) 20%, rgba(226,148,191,1) 80%); 
     background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%); 
     background-image: linear-gradient(to right bottom, #a818a8, #b20092, #b7007d, #b80069, #b50758, #b0296c, #a83d7c, #9f4d8a, #826ca8, #6c83b0, #7194aa, #8d9fa3);
}
.chat-box-content-wrapper{
    position: absolute;
    width: 100%;
    height: 100%;
    transition: width cubic-bezier(0.18, 0.89, 0.32, 1.28) 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.chat-box-content-wrapper.with-sidebar{
    width: calc(100% - 250px);
}
.chat-box-sidebar-wrapper{
    position: absolute;
    width: 250px;
    height: 100%;
    left: 0px;
    background-color: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    overflow: hidden;
    transition: width cubic-bezier(0.18, 0.89, 0.32, 1.28) 0.4s;
    border-right: solid 1px rgba(255,255,255,0.2);
}
.chat-box-sidebar-wrapper .slimScrollDiv,.chat-box-sidebar-wrapper .chat-box-sidebar-content{
    height:100% !important;
}


.chat-box-wrapper .chat-box-header .sidebar-toggler {
    display:none;
}
@media (max-width: 767px) {
    .chat-box-wrapper .chat-box-header .sidebar-toggler {
        display:inline-block;
    }
    .chat-box-content-wrapper{
        width:100%;
    }
    .chat-box-sidebar-wrapper{
        width:0px;
        z-index: 200;
    }
    .chat-box-wrapper.chat-sidebar-open .chat-box-sidebar-wrapper{
        width:250px;
        box-shadow: 0px 0px 15px -9px #000;
    }
}

.chat-box-header{
    padding: 15px;
    background-color: rgba(255,255,255,0.1);
    height: 60px;
    width: 100%;
    flex: 0 auto;
    z-index:100;
    text-align: left;
}

.chat-box-body{
    flex: 1 0;
    position:relative;
    overflow: hidden;
}
.chat-content-loading{
    text-align:center;
    margin-bottom: -20px;
}
.chat-content-loading img{
    width:20px;
}
.chat-box-body-content{
    position:absolute;
    width:100%;
    height:100%;
    direction: ltr;
}

.chat-box-send-wrapper{
    height: 100px;
    width: 100%;
    background-color: rgba(255,255,255,0.1);
    flex: 0 auto;
}
.chat-box-send-wrapper .chat-box-send{
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    margin: 10px;
    border: solid 1px rgba(255,255,255,0.5);
    background-color: rgba(255,255,255,0.1);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.chat-box-send-wrapper .chat-box-send .chat-box-input{
    display: inline-block;
    width: 100%;
    height: 100%;
}
.chat-box-send-wrapper .chat-box-send .chat-box-input textarea{
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 5px;
    color: #FFF;
    font-weight:100;
}
.chat-box-send-wrapper .chat-box-send .chat-box-btn{
    width: 50px;
    text-align: center;
}

.chat-box-wrapper .chat-box-header .sidebar-toggler:focus {
    background-color: transparent !important;
    color: #FFF !important;
}
.chat-box-wrapper .chat-box-header .person-name {
    display: inline-block;
    margin: 0px 5px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    max-width: calc(100% - 150px);
    vertical-align: top;
}
.chat-box-wrapper .chat-box-header .person-image, 
.chat-box-wrapper .chat-box-sidebar-wrapper .person-image {
    height: 50px;
    border-radius: 50% !important;
    padding: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border: solid 1px rgba(255, 255, 255, 0.8);
}
.chat-box-wrapper .chat-box-header .person-image{
    float: left;
    margin-top: -10px;
    height: 75px;
    border-radius: 100px 100px 100px 0px !important;
    border: unset;
}
.chat-box-wrapper .chat-box-sidebar-wrapper .person-image {
}
.chat-box-wrapper .chat-box-sidebar-wrapper .person-name {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.chat-box-wrapper .chat-box-sidebar-wrapper .conversation-item{
    padding:5px 10px;
    min-width: 250px;
    border-bottom:solid 1px rgba(255,255,255,0.4);
    cursor:pointer;
}
.chat-box-wrapper .chat-box-sidebar-wrapper .conversation-item:hover{
    background-color: rgba(255,255,255, 0.2);
}
.chat-box-wrapper .chat-box-sidebar-wrapper .conversation-item.selected {
    background-color: rgba(54, 198, 211, 0.25);
}
.chat-box-wrapper .chat-box-sidebar-wrapper .conversation-item a{
    color: #FFF;
    font-size:16px;
    font-weight:500;
    text-decoration:none;
}
.chat-box-wrapper .chat-box-sidebar-wrapper .conversation-item .badge{
    float:left;
    margin-top: 15px;
}


.chat-box-body .chat-item-wrapper {
    position: relative;
    margin-left: 15px;
    margin-right: 10px;
    border-left: solid 4px rgba(255,255,255,0.15);
}
.chat-box-body .chat-item-wrapper.my-message {
    text-align:right;
}
.chat-box-body .chat-item-wrapper.others-message {
    text-align:left;
}

.chat-box-body .chat-item-wrapper .chat-item-box {
    position: relative;
    display: inline-block;
    padding: 10px;
    border-radius: 10px !important;
    margin: 5px 10px;
    margin-top: 10px;
    color: #FFF;
    background-color: rgba(255, 255, 255, 0.15);
    max-width:70%;
}

.chat-box-body .chat-item-wrapper .chat-item-box:after{
    content: '';
    position: absolute;
    width: 0px;
    height: 0px;
    border: solid 10px transparent;
    top: 19px;
}
.chat-box-body .chat-item-wrapper.my-message .chat-item-box:after{
    border-left-color: rgba(255, 255, 255, 0.15);
    right:-20px;
}
.chat-box-body .chat-item-wrapper.others-message .chat-item-box:after{
    border-right-color: rgba(255, 255, 255, 0.15);
    left: -20px;
}


.chat-box-body .chat-item-wrapper .chat-item-box .chat-text-container{
    direction:rtl;
    text-align:right;
    font-weight: 100;
}
.chat-box-body .chat-item-wrapper .chat-item-box .chat-text-container.ltr{
    direction:ltr;
    text-align:left;
}

.chat-box-body .chat-item-wrapper .chat-item-box .chat-date-container{
    font-size:11px;
    color: rgba(255,255,255,0.6);
    font-weight: 100;
    text-align:left;
}
.chat-box-body .chat-item-wrapper.my-message .chat-item-box .chat-date-container{
    text-align:right;
}
.chat-box-body .chat-item-wrapper .chat-item-box .chat-date-container div{
    margin-top:10px;
    margin-bottom:-10px;
}

.show-new-chats {
    position: absolute;
    bottom: -50px;
    width: 100%;
    text-align: center;
    height: 0px;
    transition: bottom linear 100ms;
}

.show-new-chats.show{
    bottom: 0px;
    transition: bottom linear 100ms;
}

.show-new-chats button,
.show-new-chats button:hover,
.show-new-chats button:active{
    background-color: rgba(0,0,0,0.5) !important;
    color: #FFF !important;
}
.show-new-chats button {
    margin-top: -70px;
}