* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    border: none;
    list-style: none;
}
body {
    background: #f5f5f5;
    overflow-y: hidden;
}
#header .sidebar .aside {
    position: fixed;
    top: 0;
    width: 120px;
    height: 100%;
    background: #f5f5f5;
}
#header .sidebar .aside .logo {
    padding: 5px 8px 0px 5px;
    border-bottom: 1px solid #efefef3a;
    text-align: center;
}
#header .sidebar .aside .logo img {
    width: 80px;
    margin: 10px auto;
}
#header .sidebar .aside .logo h2 {
    font-size: 20px;
    color: #333;
    padding: 10px;
}
#header .sidebar .aside .logo h2 span {
    color: #ffd700;
}
#header .sidebar .aside .sidemenu {
    position: relative;
    margin-top: 10px;
}
#header .sidebar .aside .sidemenu ul {
    position: relative;
    text-align: center;
    height: 100%;
    padding: 0px 0 150px 0!important;
}
#header .sidebar .aside .sidemenu ul::-webkit-scrollbar {
    display: none;
}
#header .sidebar .aside .sidemenu ul li {
    position: relative;
    text-align: center;
    display: block;
    margin-top: 20px;
    padding-top: 10px;
    transition: 0.8s ease-in-out;
}
#header .sidebar .aside .sidemenu ul li.active,
#header .sidebar .aside .sidemenu ul li:active {
    box-shadow: inset 0 0 0px 1px rgba(0,0,0,0.1);
}
#header .sidebar .aside .sidemenu ul li:hover {
    background: #007bff;
}
#header .sidebar .aside .sidemenu ul li:last-child:hover {
    background: transparent;
}
#header .sidebar .aside .sidemenu ul li i {
    color: #333;
    font-size: 25px;
}
#header .sidebar .aside .sidemenu ul li p {
    font-size: 15px;
    /* color: #efefef6b; */
    color: #333;
}
#header .sidebar .aside .sidemenu ul .logout {
    position: fixed;
    bottom: 0;
    text-align: center;
    width: 120px;
    padding: 5px;
}
#header .sidebar .aside .sidemenu ul .logout:hover {
    background: #007bff;
}
#header .menu-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: auto;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 100;
    /* padding: 5px; */
    display: none;
}
#header .menu-bar ul {
    text-align: center;
    margin: 0 auto;
    /* margin-left: -50px; */
}
#header .menu-bar ul li {
    display: inline-block;
    text-align: center;
    padding: 5px 12px 5px 20px;
    margin: 0 5px 10px 15px;
}
#header .menu-bar ul li a i{
    font-size: 25px;
    color: #333;
    padding: 10px;
}
#header .menu-bar ul li.active a i {
    background: #ccc;
    border-radius: 50%;
}
#header .menu-bar ul li a p {
    /* display: none; */
    color: #333;
}
#chat {
    position: fixed;
    top: 0;
    left: 120px;
    width: calc(100% - 60%);
    height: 100%;
    transition: all 0.5s ease;
    background: #fff;
    /* padding: 10px; */
    overflow-y: scroll;
    margin: 0;
    padding: 0;
}
/*#chat:focus{
    overflow-y: scroll;
}*/
#chat::-webkit-scrollbar {
    width: 6px;
}
#chat::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 20px;
    cursor: pointer;
}
#chat .chatbox .chat-head {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    margin-bottom: 10px;
    background: #fff;
    z-index: 50;
    padding: 10px;
    transition: 0.5s ease-in-out;
}
#chat .chatbox .chat-head.active {
/*    background: #007bff;*/
background: #fff;
}
#chat .chatbox .chat-head .chat-info {
    display: flex;
    justify-content: space-between;
}
#chat .chatbox .chat-head .chat-info h2 {
    font-size: 25px;
    padding: 15px 8px 10px 15px;
    font-weight: 600;
}
#chat .chatbox .chat-head .chat-info .chat-menu {
    display: none;
}
#chat .chatbox .chat-head .chat-info .chat-menu .chat-menu-btn {
    position: relative;
    width: 5px;
    height: 5px;
    background: #ccc;
    border-radius: 50%;
    margin: 20px;
    cursor: pointer;
}
#chat .chatbox .chat-head .chat-info .chat-menu .chat-menu-btn::before,
#chat .chatbox .chat-head .chat-info .chat-menu .chat-menu-btn::after {
    position: absolute;
    content: '';
    width: 5px;
    height: 5px;
    background: #ccc;
    border-radius: 50%;
}
#chat .chatbox .chat-head .chat-info .chat-menu .chat-menu-btn::before {
    top: -10px;
}
#chat .chatbox .chat-head .chat-info .chat-menu .chat-menu-btn::after {
    top: 10px;
}
#chat .chatbox .chat-head .chat-info .chat-menu .chat-menu-items {
    position: absolute;
    top: 60px;
    right: 25px;
    display: block;
    padding: 10px;
    background: #f5f5f5;
    z-index: 10;
    transform: scale(0);
    transition: 0.2s ease-in-out;
}
#chat .chatbox .chat-head .chat-info .chat-menu .chat-menu-items.active {
    transform: scale(1);
}
#chat .chatbox .chat-head .chat-info .chat-menu .chat-menu-items ul li {
    margin-left: -25px;
    padding: 15px 0px 10px 5px;
}
#chat .chatbox .chat-head .chat-info .chat-menu .chat-menu-items ul li a {
    color: #333;
}
#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;
    cursor: pointer;
}
/*#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;
    padding: 10px 5px 0px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.1s ease-in-out;
}
#chat .chatbox .chats .chatlog:active {
    background: #f5f5f5;
}
#chat .chatbox .chats .chatlog:hover {
    background: #f5f5f5;
}
#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;
    height: 100%;
    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%; */
    height: auto;
    padding: 8px;
    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;
    height: 100%;
}
#chatsystem .container .chat-page .msg-inbox {
    border: 1px solid #ccc;
    overflow: hidden;
    padding-bottom: 30px;
    height: calc(100% - 70px);
}
#chatsystem .container .chat-page .msg-inbox .chats {
    padding: 10px 10px 0 20px;
    height: 100%;
}
#chatsystem .container .chat-page .msg-inbox .chats .msg-page {
    /* height: 516px; */
    padding-top: 10px;
    height: 100%;
    overflow: auto;
}
#chatsystem .container .chat-page .msg-inbox .chats .msg-page::-webkit-scrollbar {
    width: 5px;
}
#chatsystem .container .chat-page .msg-inbox .chats .msg-page::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 20px;
    cursor: pointer;
}
#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: 19px 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: -1%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    width: 96.5%;
    height: auto;
    max-width: 500!important;
    background: #f5f5f5;
    padding: 5px 8px 20px 10px;
    z-index: 20;
    /* 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;
    cursor: pointer;
}
#chatsystem .container .chat-page .msg-bottom .input-group .form-control:focus {
    outline: 1px solid #007bff !important;
    box-shadow: none !important;
    border-radius: 20px;
}
@media (max-width: 1282px) {
    #chat .chatbox .chat-head .other-chat-head form input {
        width: 400px;
    }
}
@media (max-width: 1254px) {
    #chatsystem .container .chat-page .msg-bottom {
        padding-left: 5px;
    }
    #chatsystem .container .chat-page .msg-bottom .input-group .form-control {
        width: 350px;
    }
}
@media (max-width: 1150px) {
    #chat .chatbox .chat-head .other-chat-head form input {
        width: 360px;
    }
    #chatsystem .container .chat-page .msg-bottom .bottom-icons {
        margin-left: 0px;
    }
}
@media (max-width: 1106px) {
    #chatsystem {
        display: none;
    }
    #chat {
        width: calc(100% - 120px);
    }
    #chat .chatbox .chat-head .other-chat-head form input {
        width: 500px;
    }
    #chat .chatbox .chat-head .chat-info .chat-menu {
        display: block;
    }
}
@media (max-width: 708px) {
    #chat .chatbox .chat-head .other-chat-head form input {
        width: 400px;
    }   
}
@media (max-width: 614px) {
    #header .sidebar {
        display: none;
    }
    #chat {
        left: 0;
        width: 100%;
    }
    #header .menu-bar {
        display: block;
    }
}
@media (max-width: 566px) {
    #header .menu-bar ul {
        margin-left: -30px;
    }
    #header .menu-bar ul li {
        margin: 10px 10px 0px 15px;
        padding: 15px 12px 10px 10px;
    }
}
@media (max-width: 474px) {
    #chat .chatbox .chat-head .other-chat-head form input {
        width: 350px;
    }
}
@media (max-width: 458px) {
    #header .menu-bar ul li {
        margin: 0 0 10px 5px;
        padding: 15px 12px 10px 5px;
    }
}
@media (max-width: 412px) {
    #chat .chatbox .chat-head .other-chat-head form input {
        width: 300px;
    }
    #chat .chatbox .chat-head .other-chat-head .new-msg i {
        width: 35px;
        height: 35px;
        line-height: 22px;
        margin-top: 8px;
        margin-right: 10px;
    }
}
@media (max-width: 366px) {
    #chat .chatbox .chat-head .other-chat-head form input {
        width: 250px;
    }
}
@media (max-width: 342px) {
    #header .menu-bar ul li {
        margin: 0 0 10px 0px;
        padding: 15px 8px 10px 2px;
    }
}
@media (max-width: 310px) {
    #chat .chatbox .chat-head .other-chat-head form input {
        width: 200px;
    }
}