* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    border: none;
    list-style: none;
}
body {
    background: #f5f5f5;
    overflow-y: hidden;
}
#sidebar .aside {
    position: fixed;
    top: 0;
    width: 120px;
    height: 100%;
    background: #000;
}
#sidebar .aside .logo {
    padding: 5px 8px 0px 5px;
    border-bottom: 1px solid #efefef3a;
    text-align: center;
}
#sidebar .aside .logo img {
    width: 80px;
    margin: 10px auto;
}
#sidebar .aside .logo h2 {
    font-size: 20px;
    color: #fff;
    padding: 10px;
}
#sidebar .aside .logo h2 span {
    color: #ffd700;
}
#sidebar .aside .sidemenu {
    position: relative;
    margin-top: 10px;
}
#sidebar .aside .sidemenu ul {
    position: relative;
    text-align: center;
    height: 100%;
    padding: 0px 0 150px 0!important;
}
#sidebar .aside .sidemenu ul::-webkit-scrollbar {
    display: none;
}
#sidebar .aside .sidemenu ul li {
    position: relative;
    text-align: center;
    display: block;
    margin-top: 20px;
    padding-top: 10px;
    transition: 0.8s ease-in-out;
}
#sidebar .aside .sidemenu ul li:hover {
    background: #007bff;
}
#sidebar .aside .sidemenu ul li:last-child:hover {
    background: transparent;
}
#sidebar .aside .sidemenu ul li i {
    color: #fff;
    font-size: 25px;
}
#sidebar .aside .sidemenu ul li p {
    font-size: 15px;
    color: #efefef6b;
}
#sidebar .aside .sidemenu ul .logout {
    position: fixed;
    bottom: 0;
    text-align: center;
    width: 120px;
    padding: 5px;
}
#sidebar .aside .sidemenu ul .logout:hover {
    background: #007bff;
}
#chat {
    position: fixed;
    top: 0;
    left: 120px;
    width: calc(100% - 60%);
    height: 100%;
    transition: all 0.5s ease;
    background: #fff;
/*    padding: 10px;*/
}
#chat:focus{
    overflow-y: scroll;
}
#chat .chatbox .chat-head {
    position: sticky;
    top: 0;
    left: 0;
    margin-bottom: 10px;
    z-index: 50;
    background: #fff;
    transition: 0.5s ease-in-out;
}
#chat .chatbox .chat-head.active {
    background: #007bff;
}
#chat .chatbox .chat-head h2 {
    font-size: 25px;
    padding: 15px 8px 10px 15px;
    font-weight: 600;
}
#chat .chatbox .chat-head .other-chat-head {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
#chat .chatbox .chat-head .other-chat-head form {
    position: relative;
    margin-top: 10px;
}
#chat .chatbox .chat-head .other-chat-head form input {
    /* position: relative; */
    width: 450px;
    padding: 8px;
    padding-left: 35px;
    border: 1px solid #33333348;
    border-radius: 20px;
    margin-left: 5px;
    margin-bottom: 10px;
}
#chat .chatbox .chat-head .other-chat-head form input::placeholder {
    color: #33333380;
    padding: 0;
}
#chat .chatbox .chat-head .other-chat-head form i {
    position: absolute;
    top: 12px;
    left: 15px;
    font-size: 18px;
    color: #33333380;
}
#chat .chatbox .chat-head .other-chat-head .new-msg {
    margin: 5px;
}
#chat .chatbox .chat-head .other-chat-head .new-msg i {
    width: 40px;
    height: 40px;
    border: 2px solid #007bff;
    border-radius: 50%;
    text-align: center;
    line-height: 25px;
    padding: 5px;
    font-size: 18px;
    color: #007bff;
    margin-top: 5px;
    margin-right: 10px;
}
#chat .chatbox .chat-head.active .other-chat-head .new-msg i {
    border: 2px solid #fff;
    color: #fff;
}
#chat .chatbox .chats {
    padding: 10px;
}
#chat .chatbox .chats .chatlog {
    width: 100%;
    display: flex;
    margin-top: 10px;
}
#chat .chatbox .chats .chatlog .chat-icon {
    position: relative;
}
#chat .chatbox .chats .chatlog .chat-icon img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
}
#chat .chatbox .chats .chatlog .chat-icon .online {
    position: absolute;
    top: 0;
    left: 40px;
    width: 10px;
    height: 10px;
    background: rgb(43, 221, 43);
    border-radius: 50%; 
}
#chat .chatbox .chats .chatlog .chat-info {
    width: 100%;
    margin-left: 5px;
}
#chat .chatbox .chats .chatlog .chat-info.active .recipient-info h2 {
    font-weight: 600;
}
#chat .chatbox .chats .chatlog .chat-info.active .recipient-info small {
    font-weight: 600;
}
#chat .chatbox .chats .chatlog .chat-info.active p {
    font-weight: 600;
}
#chat .chatbox .chats .chatlog .chat-info .recipient-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    width: 100%;
    margin-bottom: -8px;
    height: auto;
}
#chat .chatbox .chats .chatlog .chat-info .recipient-info h2 {
    font-size: 18px;
    color: #333;
    padding-bottom: 0px;
}
#chat .chatbox .chats .chatlog .chat-info {
    font-size: 15px;
}
#chatsystem {
    position: fixed;
    top: 0;
    left: calc(39.7% + 120px);
    width: calc(100% - 49%);
    height: 100%;
    transition: all 0.5s ease;
}
/*#chatsystem:focus{
    
}*/
#chatsystem .container {
    position: relative;
    width: 100%;
    max-width: 500 !important;
    /* margin: auto; */
    margin-top: 1%;
    font-family: sans-serif;
    letter-spacing: 0.5px;
}
#chatsystem .container img {
    max-width: 100%;
    border-radius: 50%;
}
#chatsystem .container .msg-header {
    border: 1px solid #ccc;
    width: 100%;
    height: 10%;
    border-bottom: none;
    display: inline-block;
    background: #007bff;
}
#chatsystem .container .msg-header .msg-header-img {
    border-radius: 50%;
    width: 40px;
    margin-left: 5%;
    margin-top: 12px;
    float: left;
}
#chatsystem .container .msg-header .active {
    width: 120px;
    float: left;
    margin-top: 10px;
}
#chatsystem .container .msg-header .active h4 {
    font-size: 20px;
    margin-left: 10px;
    color: #fff;
}
#chatsystem .container .msg-header .active h6 {
    font-size: 10px;
    margin-left: 10px;
    line-height: 2px;
    color: #fff;
}
#chatsystem .container .msg-header .header-icons {
    width: 120px;
    float: right;
    margin-top: 12px;
    margin-right: 10px;
}
#chatsystem .container .msg-header .header-icons .fa {
    color: #fff;
    cursor: pointer;
    margin: 5px;
}
#chatsystem .container .chat-page {
    padding: 0 0 50px 0;
}
#chatsystem .container .chat-page .msg-inbox {
    border: 1px solid #ccc;
    overflow: hidden;
    padding-bottom: 30px;
}
#chatsystem .container .chat-page .msg-inbox .chats {
    padding: 30px 15px 0 25px;
}
#chatsystem .container .chat-page .msg-inbox .chats .msg-page {
    height: 516px;
    overflow-y: auto;
}
#chatsystem .container .chat-page .msg-inbox .chats .msg-page .received-chats .received-chats-img {
    /* display: inline-block; */
    width: 20px;
    float: left;
}
#chatsystem .container .chat-page .msg-inbox .chats .msg-page .received-chats .received-msg {
    display: inline-block;
    padding: 0 0 0 10px;
    vertical-align: top;
    width: 92%;
}
#chatsystem .container .chat-page .msg-inbox .chats .msg-page .received-chats .received-msg .received-msg-inbox {
    width: 57%;
} 
#chatsystem .container .chat-page .msg-inbox .chats .msg-page .received-chats .received-msg .received-msg-inbox p {
    background: #efefef none repeat scroll 0 0;
    border-radius: 10px;
    color: #646464;
    font-size: 14px;
    margin: 0;
    padding: 5px 10px 5px 12px;
    width: 100%;
}
#chatsystem .container .chat-page .msg-inbox .chats .msg-page .received-chats .received-msg .received-msg-inbox .time {
    color: #777;
    display: block;
    font-size: 12px;
    margin: 8px 0 0;
}
#chatsystem .container .chat-page .msg-inbox .chats .msg-page .outgoing-chats {
    overflow: hidden;
    margin: 26px 20px;
}
#chatsystem .container .chat-page .msg-inbox .chats .msg-page .outgoing-chats .outgoing-chats-msg {
    float: left;
    width: 46%;
    margin-left: 45%;
}
#chatsystem .container .chat-page .msg-inbox .chats .msg-page .outgoing-chats .outgoing-chats-msg p {
    background: #007bff none repeat scroll 0 0;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    margin: 0;
    padding: 5px 10px 5px 12px;
    width: 100%;
}
#chatsystem .container .chat-page .msg-inbox .chats .msg-page .outgoing-chats .outgoing-chats-msg .time {
    color: #777;
    display: block;
    font-size: 12px;
    margin: 8px 0 0;
}
#chatsystem .container .chat-page .msg-inbox .chats .msg-page .outgoing-chats .outgoing-chats-img {
    /* display: inline-block; */
    width: 20px;
    float: right;
}
#chatsystem .container .chat-page .msg-bottom {
    position: absolute;
    bottom: 8%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    width: 96.5%;
    max-width: 500!important;
    /* height: 10%; */
    /* background: #007bff; */
}
#chatsystem .container .chat-page .msg-bottom .input-group {
    position: relative;
    float: right;
    margin-top: 13px;
    margin-right: 20px;
    outline: none !important;
    border-radius: 20px;
    /* width: 61% !important; */
    /* background: #fff; */
}
#chatsystem .container .chat-page .msg-bottom .input-group .form-control {
    width: 400px;
    border: none !important;
    border-radius: 20px !important;
    padding-right: 40px;
}
#chatsystem .container .chat-page .msg-bottom .input-group .input-group-append {
    background: transparent !important;
    border: none !important;
}
#chatsystem .container .chat-page .msg-bottom .input-group .input-group-append .input-group-text {
    background: transparent !important;
    border: none !important;
}
#chatsystem .container .chat-page .msg-bottom .input-group .fa {
    color: #007bff;
    cursor: pointer;
    /* float: right; */
}
#chatsystem .container .chat-page .msg-bottom .bottom-icons {
    float: left;
    margin-top: 17px;
    width: 30% !important;
    margin-left: 22px;
}
#chatsystem .container .chat-page .msg-bottom .bottom-icons .fa {
    color: #007bff;
    padding: 5px;
}
#chatsystem .container .chat-page .msg-bottom .input-group .form-control:focus {
    outline: 1px solid #007bff !important;
    box-shadow: none !important;
    border-radius: 20px;
}