/**
  * Copyright VOIP Awesome Inc.
  * VOIP Awesome Chrome Extension
  * 
  **/

.chats-menu {
    background-color: #2d3033;
}
.chats-list-col {
    height: calc(100%);
    width: 170px;
    position: absolute;
    display: inline-block;
    overflow-x: hidden;
    overflow-y: hidden;
    top: 0px;
    left: 0px;
    padding: 0px;
}
.chats-new-message {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 31px;
    padding: 0px;
}
.chats-new-message-btn {
    width: 100%;
    margin: 12px 10px 0px 0px;
    border: 0px;
    text-align: center;
}
.chats-list-search {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 31px;
    padding: 0px;
}
.chats-list-search-btn-div {
    width: 25px;
}
.chats-list-search-btn {
    width: 100%;
    margin: 12px 10px 0px 0px;
    border: 0px;
}
.chats-list-search-input-div {
    width: calc(100% - 35px);
}
.chats-list-search-input.text-input-color {
    width: 100%;
    margin: 10px 0px 0px 10px;
    border: 0px;
}
.chats-list-search-spin-div {
    width: 25px;
}
.chats-list-search-spin {
    width: 100%;
    margin: 12px 10px 0px 0px;
    border: 0px;
}
.chats-list {
    position: relative;
    display: inline-block;
    width: 100%;
    height: calc(100vh - 98px);
    margin: 0px;
    padding: 0px;
}
.chats-list-color {
    color: #fefefe;
    background-color: #2d3033;
}
.chats-list-scroll-div {
    height: calc(100%);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0px;
    padding: 0px;
    padding-top: 10px;
    padding-bottom: 15px;
}
.chat-selected-active { background-color: #025cd2; }
.chat-selected-inactive { background-color: #4b4b4b; }
.chat-list-item {
    position:relative;
    display: inline-block;
    width: 100%;
    height: 50px;
    padding: 0px;
    padding-top: 5px;
    margin: 0px;
    margin-bottom: 2px;
}
.chat-list-item-left {
    position: absolute;
    display: inline-block;
    text-align: right;
    padding-right: 2px;
    top: 5px;
    left: 0px;
    width: 30px;
}
.chat-list-item-right { 
    position: absolute;
    display: inline-block;
    text-align: left;
    padding-left: 2px;
    overflow-x: hidden;
    top: 5px;
    right: 5px;
    width: calc(100% - 35px);
}
.chat-list-item-delete-btn {
    display: none;
    position: absolute;
    z-index: 10;
    top: 15px;
    right: 5px;
    width: 20px;
    height: 20px;
    font-size: 12px;
    color: #fff;
    padding: 1px 1px 0px 0px;
    border-radius: 4px;
    vertical-align: center;
    text-align: center;
}
.chat-list-item-delete-btn:active {
    top: 16px;
    right: 4px;
}
.chat-list-item:hover .chat-list-item-delete-btn {
    display: inline-block;
}
.chat-list-item-badge {
    position: absolute;
    z-index: 10;
    top: 5px;
    left: 5px;
    min-width: 24px;
    color: #fff;
    padding: 1px 3px 1px 3px;
    border-radius: 3px;
    background-color: #ff5b57;
    text-align: center;
}
.chat-list-item-contacts {
    white-space: nowrap;
    word-wrap: normal;
}
.chat-list-item-preview {
    color: #969696;
}
.messages-list-footer {
    position: absolute;
    bottom: 0px;
    right: 0px;
    height: 50px;
    width: calc(100%);
    padding-top: 4px;
    padding-right: 10px;
    padding-left: 10px;
    background-color: #333;
}
.messages-send-msg-btn {
    position: absolute;
    top: 4px;
    right: 8px;
    text-align: center;
    vertical-align: center;
    width: 50px;
    min-height: 42px;
    height: calc(100% - 8px);
    max-height: 100px;
    border-radius:12px;
    display:inline-block;
    cursor:pointer;
    padding:10px 0px;
    text-decoration:none;
}
.send-msg-btn {
    box-shadow: 0px 1px 2px 0px #005b3a;
    background-color:#00b471;
    border:1px solid #006b44;
    color:#fefefe;
    text-shadow:0px 1px 0px #006b44;
}
.send-msg-btn:hover {
    background-color:#008655;
    text-shadow:0px 1px 0px #005b3a;
}
.send-msg-btn:active {
    top: 5px;
}
.send-msg-btn-disabled {
    background-color:#919191;
    border:1px solid #757575;
    color:#b0b0b0;
    text-shadow:0px 1px 0px #5c5c5c;
}
.send-msg-btn-disabled:hover {
    background-color:#919191;
}
.text-input-color:focus {
    outline: none !important;
}
.text-input-color:active {
    outline: none !important;
}
.text-input-color::-moz-focus-inner {
   border: 0;
}
.messages-text-input {
    resize: none;
    position: absolute;
    top: 4px;
    left: 8px;
    display: inline-block;
    text-align: left;
    overflow-y: hidden;
    padding: 2px 4px 2px 4px;
    width: calc(100% - 70px) !important;
    height: calc(100% - 8px);
    border-radius: 12px;
}
.text-input-color {
    color: #fefefe;
    border-color: #3e3e3e;
    background-color: #2d3033;
}
.messages-list-footer .text-input-color {
    background-color: #3e3e3e;
}
.text-input-color:focus {
    outline: none !important;
}
.messages-list-col {
    height: calc(100%);
    width: calc(100% - 170px);
    overflow-x: hidden;
    overflow-y: hidden;
    position: absolute;
    display: inline-block;
    top: 0px;
    right: 0px;
    padding: 0px;
}
.messages-list {
    height: calc(100% - 50px);
    width: calc(100%);
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
    display: inline-block;
    top: 0px;
    right: 0px;
    margin: 0px;
    padding: 0px;
}
.messages-list-color {
    color: #fefefe;
    background-color: #222426;
}
.messages-list-scroll-div {
    height: calc(100%);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0px;
    padding: 10px 15px 10px 15px;
}
.message-list-item {
    position:relative;
    display: inline-block;
    width: 100%;
    margin: 0px;
}
.message-list-date {
    text-align: center;
    position:relative;
    display: inline-block;
    width: 100%;
    margin: 0px;
    margin-top: 10px;
}
.message-list-time {
    font-size: 11px;
    color: #a3a3a3;
}
.message-emoji-only {
    background-color: rgb(0,0,0,0) !important;
}
.message-emoji-only .message-list-body {
    font-size: 36pt;
}
.message-list-main {
    z-index: 2;
    position:relative;
    display: inline-block;
    padding: 4px 10px 4px 10px;
    border-radius: 12px;
    max-width: 80%;
}
.message-received .message-list-main {
    float: left;
    text-align: left;
    color: #f1f1f1;
    background-color: #4b4b4b;
}
.message-received .message-list-time {
    float: left !important;
}
.message-received.message-list-sender {
    float: left !important;
    padding-left: 6px;
}
.message-sent.message-list-sender {
    float: right !important;
    padding-right: 8px;
}
.message-list-sender {
    font-size: 10px;
    color: #a3a3a3;
    padding-top: 8px;
}
.message-received-last:before {
    content: "";
    position: absolute;
    z-index: -2;
    bottom: 0;
    left: -7px;
    height: 20px;
    width: 20px;
    background: #4b4b4b;
    border-bottom-right-radius: 15px;
}
.message-received-last:after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: -10px;
    width: 10px;
    height: 20px;
    background: #222426;
    border-bottom-right-radius: 10px;
}
.message-sent .message-list-time { 
    float: right !important;
}
.message-sent .message-list-main {
    float: right;
    text-align: left;
    color: #f1f1f1;
    background-color: #055fd7;
}
.message-sent-last:before {
    content: "";
    position: absolute;
    z-index: -2;
    bottom: 0;
    right: -8px;
    height: 20px;
    width: 20px;
    background: #055fd7;
    background-attachment: fixed;
    border-bottom-left-radius: 15px;
}
.imessage-sent-bg {
    background: linear-gradient(to bottom, #00D0EA 0%, #0085D1 100%);
}
.message-sent-last:after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 0;
    right: -10px;
    width: 10px;
    height: 20px;
    background: #222426;
    border-bottom-left-radius: 10px;
}
.chats-menu-settings-link-text {
    margin-left: 5px;
    display:inline-block;
}

@media only screen and (max-width:550px) {
    .chats-menu-settings-link-text { display:none; }

}

@media (prefers-color-scheme: light) {
    .chats-menu { background-color: #f5f5f5; }
    .chats-list-color { color: #060606; background-color: #f5f5f5; }
    .chat-selected-active { background-color: #1998ff; }
    .chat-selected-inactive { background-color: #cccccc; }
    .chat-selected-active .chat-list-item-preview { color: #c0c0c0; }
    .chat-selected-inactive .chat-list-item-preview { color: #b0b0b0; }
    .messages-list-color { color: #333; background-color: #ffffff; }
    .messages-list-footer { background-color: #f5f5f5; }
    .text-input-color { color: #060606; background-color: #e9eef0; border: #ccc; }
    .chats-list-color .text-input-color { background-color: #f5f5f5; }
    .messages-list-footer .text-input-color { background-color: #e9eef0; }
    .chat-list-item-delete-btn { color: #333; }
    .send-msg-btn {
        box-shadow: 0px 1px 2px 0px #005b3a;
        border:1px solid #00935c;
    }
    .send-msg-btn-disabled {
        background-color:#ebebeb;
        border:1px solid #e3e3e3;
        color:#dbdbdb;
        text-shadow:0px 1px 0px #bfbfbf;
    }
    .send-msg-btn-disabled:hover {
        background-color:#ebebeb;
    }
    .message-received { color: #060606; }
    .message-received .message-list-main { color: #060606; background-color: #e1e1e7; }
    .message-received .message-list-time { color: #909090; }
    .message-list-sender { color: #909090; }
    .message-received-last:before { background-color: #e1e1e7; }
    .message-received-last:after { background-color: #ffffff; }
    .message-sent .message-list-time { color: #c1c1c1; }
    .message-sent .message-list-main { color: #f1f1f1; background-color: #1998ff; }
    .message-sent-last:before { background: #1998ff; }
    .message-sent-last:after { background-color: #ffffff; }
}
