#bp-chat-sidebar{
    position: fixed;
    right: 0;
    top: 100px;
    width: 200px;
    background: #f1f1f1;
    border-left: 1px solid #ccc;
    padding: 10px;
    z-index: 9999;
}
#bp-chat-sidebar h4{ margin-top:0; font-size:16px; }
#bp-chat-sidebar ul{ list-style:none; padding:0; }
#bp-chat-sidebar li{ padding:5px; cursor:pointer; border-bottom:1px solid #ddd; }
#bp-chat-windows .chat-window{
    position: fixed;
    bottom: 0;
    right: 210px;
    width: 250px;
    background: #fff;
    border:1px solid #ccc;
    z-index: 10000;
    margin-right: 10px;
}
.chat-window h5{ background:#0073aa; color:#fff; margin:0; padding:5px; font-size:14px; }
.chat-window .messages{ height:300px; overflow-y:auto; padding:5px; background:#f9f9f9; }
.chat-window .chat-input{ width:100%; box-sizing:border-box; padding:5px; border:none; border-top:1px solid #ccc; }
.sent{ text-align:right; background:#d1ffd6; padding:3px; margin:2px 0; border-radius:4px; }
.received{ text-align:left; background:#eee; padding:3px; margin:2px 0; border-radius:4px; }
#bp-chat-windows .chat-window{
    position: fixed;
    bottom: 0;
    width: 250px;
    background: #fff;
    border:1px solid #ccc;
    z-index: 10000;
}
.chat-window h5{
    background:#0073aa;
    color:#fff;
    margin:0;
    padding:5px;
    font-size:14px;
    display:flex;
    justify-content: space-between;
    align-items: center;
}
.chat-window .close-chat{
    cursor:pointer;
    font-weight:bold;
}
.chat-window .messages{
    height:300px;
    overflow-y:auto;
    padding:5px;
    background:#f9f9f9;
}
.chat-window .chat-input{
    width:100%;
    box-sizing:border-box;
    padding:5px;
    border:none;
    border-top:1px solid #ccc;
}
.sent{
    text-align:right;
    background:#d1ffd6;
    padding:3px;
    margin:2px 0;
    border-radius:4px;
}
.received{
    text-align:left;
    background:#eee;
    padding:3px;
    margin:2px 0;
    border-radius:4px;
}

.unread{
    background: red;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    float: right;
    margin-left: 5px;
}
.chat-window.new-message h5{
    background: #d9534f; /* highlight color for new messages */
}


#chatSidebar {
      position: fixed;
      right: 0;
      bottom: 0;
      width: 250px;
      height: 400px;
      background: #fff;
      border-left: 1px solid #ccc;
      box-shadow: -2px 0 5px rgba(0,0,0,0.1);
      display: flex;
      flex-direction: column;
      z-index: 9999;
    }
    #chatSidebarHeader {
      background: #007bff;
      color: white;
      padding: 10px;
      cursor: pointer;
    }
    #chatUserList, #bp-online-users {
      flex: 1;
      overflow-y: auto;
      padding: 10px;
    }
    .chat-user {
      padding: 8px;
      cursor: pointer;
      border-bottom: 1px solid #eee;
    }
    .chat-user:hover {
      background: #f8f9fa;
    }

    /* Chatbox styles */
    .chatbox {
      position: fixed;
      bottom: 0;
      width: 300px;
      background: white;
      border: 1px solid #ccc;
      border-radius: 8px 8px 0 0;
      box-shadow: 0 0 10px rgba(0,0,0,0.15);
      display: flex;
      flex-direction: column;
      z-index: 9999;
    }
    .chatbox-header {
      background: #007bff;
      color: white;
      padding: 8px;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-radius: 6px 6px 0px 0px;
    }
    .chatbox-body {
      height: 200px;
      overflow-y: auto;
      padding: 10px;
    }
    .chatbox-footer {
      display: flex;
      border-top: 1px solid #ddd;
    }
    .chatbox-footer input {
      flex: 1;
      border: none;
      padding: 10px;
    }
    .chatbox-footer button {
      border: none;
      background: #007bff;
      color: white;
      padding: 10px 15px;
    }

    .hideContent {
    height: 45px !important;
}

.direct-chat .box-body {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    position: relative;
    overflow-x: hidden;
    padding: 0;
}
.direct-chat.chat-pane-open .direct-chat-contacts {
    -webkit-transform: translate(0,  0);
    -ms-transform: translate(0,  0);
    -o-transform: translate(0,  0);
    transform: translate(0,  0);
}
.direct-chat-messages {
    -webkit-transform: translate(0,  0);
    -ms-transform: translate(0,  0);
    -o-transform: translate(0,  0);
    transform: translate(0,  0);
    padding: 10px;
    height: 250px;
    overflow: auto;
}
.direct-chat-msg, .direct-chat-text {
    display: block;
}
.direct-chat-msg {
    margin-bottom: 10px;
}
.direct-chat-msg:before, .direct-chat-msg:after {
    content: " ";
    display: table;
}
.direct-chat-msg:after {
    clear: both;
}
.direct-chat-messages, .direct-chat-contacts {
    -webkit-transition: -webkit-transform .5s ease-in-out;
    -moz-transition: -moz-transform .5s ease-in-out;
    -o-transition: -o-transform .5s ease-in-out;
    transition: transform .5s ease-in-out;
}
.direct-chat-text {
    border-radius: 5px;
    position: relative;
    padding: 5px 10px;
    background: #d2d6de;
    border: 1px solid #d2d6de;
    margin: 5px 0 0 50px;
    color: #444;
    font-size: 14px;
}
.direct-chat-text:after, .direct-chat-text:before {
    position: absolute;
    right: 100%;
    top: 15px;
    border: solid transparent;
    border-right-color: #d2d6de;
    content: ' ';
    height: 0;
    width: 0;
    pointer-events: none;
}
.direct-chat-text:after {
    border-width: 5px;
    margin-top: -5px;
}
.direct-chat-text:before {
    border-width: 6px;
    margin-top: -6px;
}
.right .direct-chat-text {
    margin-right: 50px;
    margin-left: 0;
}
.right .direct-chat-text:after, .right .direct-chat-text:before {
    right: auto;
    left: 100%;
    border-right-color: transparent;
    border-left-color: #d2d6de;
}
.direct-chat-img {
    border-radius: 50%;
    float: left;
    width: 40px;
    height: 40px;
}
.right .direct-chat-img {
    float: right;
}
.direct-chat-info {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
}
.direct-chat-name {
    font-weight: 600;
}
.direct-chat-timestamp {
    color: #999;
}
.direct-chat-contacts-open .direct-chat-contacts {
    -webkit-transform: translate(0,  0);
    -ms-transform: translate(0,  0);
    -o-transform: translate(0,  0);
    transform: translate(0,  0);
}
.direct-chat-contacts {
    -webkit-transform: translate(101%,  0);
    -ms-transform: translate(101%,  0);
    -o-transform: translate(101%,  0);
    transform: translate(101%,  0);
    position: absolute;
    top: 0;
    bottom: 0;
    height: 250px;
    width: 100%;
    background: #222d32;
    color: #fff;
    overflow: auto;
}
.contacts-list>li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 10px;
    margin: 0;
}
.contacts-list>li:before, .contacts-list>li:after {
    content: " ";
    display: table;
}
.contacts-list>li:after {
    clear: both;
}
.contacts-list>li:last-of-type {
    border-bottom: none;
}
.contacts-list-img {
    border-radius: 50%;
    width: 40px;
    float: left;
}
.contacts-list-info {
    margin-left: 45px;
    color: #fff;
}
.contacts-list-name, .contacts-list-status {
    display: block;
}
.contacts-list-name {
    font-weight: 600;
}
.contacts-list-status {
    font-size: 12px;
}
.contacts-list-date {
    color: #aaa;
    font-weight: normal;
}
.contacts-list-msg {
    color: #999;
}
.direct-chat-danger .right>.direct-chat-text {
    background: #dd4b39;
    border-color: #dd4b39;
    color: #fff;
}
.direct-chat-danger .right>.direct-chat-text:after, .direct-chat-danger .right>.direct-chat-text:before {
    border-left-color: #dd4b39;
}
.direct-chat-primary .right>.direct-chat-text {
    background: #3c8dbc;
    border-color: #3c8dbc;
    color: #fff;
}
.direct-chat-primary .right>.direct-chat-text:after, .direct-chat-primary .right>.direct-chat-text:before {
    border-left-color: #3c8dbc;
}
.direct-chat-warning .right>.direct-chat-text {
    background: #f39c12;
    border-color: #f39c12;
    color: #fff;
}
.direct-chat-warning .right>.direct-chat-text:after, .direct-chat-warning .right>.direct-chat-text:before {
    border-left-color: #f39c12;
}
.direct-chat-info .right>.direct-chat-text {
    background: #00c0ef;
    border-color: #00c0ef;
    color: #fff;
}
.direct-chat-info .right>.direct-chat-text:after, .direct-chat-info .right>.direct-chat-text:before {
    border-left-color: #00c0ef;
}
.direct-chat-success .right>.direct-chat-text {
    background: #00a65a;
    border-color: #00a65a;
    color: #fff;
}
.direct-chat-success .right>.direct-chat-text:after, .direct-chat-success .right>.direct-chat-text:before {
    border-left-color: #00a65a;
}
