#frame {
    width: 100%;
    min-width: 360px;
    height: 100vh;
    min-height: 300px;
    background: #E6EAEA;
    }
    @media screen and (max-width: 360px) {
    #frame {
        width: 100%;
        height: 100vh;
    }
    }
    #frame #sidepanel {
    float: left;
    min-width: 280px;
    max-width: 340px;
    width: 40%;
    height: 100%;
    /* background: #2c3e50; */
    background: #1d2c3b;
    color: #f5f5f5;
    overflow: hidden;
    position: relative;
    }
    @media screen and (max-width: 735px) {
        #frame {
            width: 100%;
            height: 100vh;
        }
    #frame #sidepanel {
        width: 58px;
        min-width: 58px;
    }
    }
    #frame #sidepanel #profile {
    width: 80%;
    margin: 25px auto;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #profile {
        width: 100%;
        margin: 0 auto;
        padding: 5px 0 0 0;
        background: #32465a;
    }
    }
    #frame #sidepanel #profile.expanded .wrap {
    height: 210px;
    line-height: initial;
    }
    #frame #sidepanel #profile.expanded .wrap p {
        cursor: pointer;
    margin-top: 20px;
    }
    #frame #sidepanel #profile.expanded .wrap i.expand-button {
    -moz-transform: scaleY(-1);
    -o-transform: scaleY(-1);
    -webkit-transform: scaleY(-1);
    transform: scaleY(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
    }
    #frame #sidepanel #profile .wrap {
    height: 60px;
    line-height: 60px;
    cursor: pointer;
    overflow: hidden;
    -moz-transition: 0.3s height ease;
    -o-transition: 0.3s height ease;
    -webkit-transition: 0.3s height ease;
    transition: 0.3s height ease;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap {
        height: 55px;
        vertical-align: middle;
    }
    }

    @media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap img {
        width: 40px;
        margin-left: 4px;
    }
    }
    #frame #sidepanel #profile .wrap img.online {
    border: 2px solid #2ecc71;
    }
    #frame #sidepanel #profile .wrap img.away {
    border: 2px solid #f1c40f;
    }
    #frame #sidepanel #profile .wrap img.busy {
    border: 2px solid #e74c3c;
    }
    #frame #sidepanel #profile .wrap img.offline {
    border: 2px solid #95a5a6;
    }
    #frame #sidepanel #profile .wrap p {
    float: left;
    margin-left: 15px;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap p {
        display: none;
    }
    }
    #frame #sidepanel #profile .wrap i.expand-button {
    float: right;
    margin-top: 23px;
    font-size: 0.8em;
    cursor: pointer;
    color: #435f7a;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap i.expand-button {
        display: none;
    }
    }
    #frame #sidepanel #profile .wrap #status-options {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    width: 150px;
    margin: 70px 0 0 0;
    border-radius: 6px;
    z-index: 99;
    line-height: initial;
    background: #435f7a;
    -moz-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    -webkit-transition: 0.3s all ease;
    transition: 0.3s all ease;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap #status-options {
        width: 58px;
        margin-top: 57px;
    }
    }
    #frame #sidepanel #profile .wrap #status-options.active {
    opacity: 1;
    visibility: visible;
    margin: 75px 0 0 0;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap #status-options.active {
        margin-top: 62px;
    }
    }
    #frame #sidepanel #profile .wrap #status-options:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #435f7a;
    margin: -8px 0 0 24px;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap #status-options:before {
        margin-left: 23px;
    }
    }
    #frame #sidepanel #profile .wrap #status-options ul {
    overflow: hidden;
    border-radius: 6px;
    }
    #frame #sidepanel #profile .wrap #status-options ul li {
    padding: 15px 0 30px 18px;
    display: block;
    cursor: pointer;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap #status-options ul li {
        padding: 15px 0 35px 22px;
    }
    }
    #frame #sidepanel #profile .wrap #status-options ul li:hover {
    background: #496886;
    }
    #frame #sidepanel #profile .wrap #status-options ul li span.status-circle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 5px 0 0 0;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap #status-options ul li span.status-circle {
        width: 14px;
        height: 14px;
    }
    }
    #frame #sidepanel #profile .wrap #status-options ul li span.status-circle:before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    margin: -3px 0 0 -3px;
    background: transparent;
    border-radius: 50%;
    z-index: 0;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap #status-options ul li span.status-circle:before {
        height: 18px;
        width: 18px;
    }
    }
    #frame #sidepanel #profile .wrap #status-options ul li p {
    padding-left: 12px;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap #status-options ul li p {
        display: none;
    }
    }
    #frame #sidepanel #profile .wrap #status-options ul li#status-online span.status-circle {
    background: #2ecc71;
    }
    #frame #sidepanel #profile .wrap #status-options ul li#status-online.active span.status-circle:before {
    border: 1px solid #2ecc71;
    }
    #frame #sidepanel #profile .wrap #status-options ul li#status-away span.status-circle {
    background: #f1c40f;
    }
    #frame #sidepanel #profile .wrap #status-options ul li#status-away.active span.status-circle:before {
    border: 1px solid #f1c40f;
    }
    #frame #sidepanel #profile .wrap #status-options ul li#status-busy span.status-circle {
    background: #e74c3c;
    }
    #frame #sidepanel #profile .wrap #status-options ul li#status-busy.active span.status-circle:before {
    border: 1px solid #e74c3c;
    }
    #frame #sidepanel #profile .wrap #status-options ul li#status-offline span.status-circle {
    background: #95a5a6;
    }
    #frame #sidepanel #profile .wrap #status-options ul li#status-offline.active span.status-circle:before {
    border: 1px solid #95a5a6;
    }
    #frame #sidepanel #profile .wrap #expanded {
    padding: 100px 0 0 0;
    display: block;
    line-height: initial !important;
    }
    #frame #sidepanel #profile .wrap #expanded label {
    float: left;
    clear: both;
    margin: 0 8px 5px 0;
    padding: 5px 0;
    }
    #frame #sidepanel #profile .wrap #expanded input {
    border: none;
    margin-bottom: 6px;
    background: #32465a;
    border-radius: 3px;
    color: #f5f5f5;
    padding: 7px;
    width: calc(100% - 43px);
    }
    #frame #sidepanel #profile .wrap #expanded input:focus {
    outline: none;
    background: #435f7a;
    }
    #frame #sidepanel #search {
    border-top: 1px solid #32465a;
    border-bottom: 1px solid #32465a;
    font-weight: 300;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #search {
        display: none;
    }
    }
    #frame #sidepanel #search label {
    position: absolute;
    margin: 10px 0 0 20px;
    }
    #frame #sidepanel #search input {
    font-family: "proxima-nova",  "Source Sans Pro", sans-serif;
    padding: 10px 0 10px 46px;
    width: calc(100% - 25px);
    border: none;
    background: #32465a;
    color: #f5f5f5;
    }
    #frame #sidepanel #search input:focus {
    outline: none;
    background: #435f7a;
    }
    #frame #sidepanel #search input::-webkit-input-placeholder {
    color: #f5f5f5;
    }
    #frame #sidepanel #search input::-moz-placeholder {
    color: #f5f5f5;
    }
    #frame #sidepanel #search input:-ms-input-placeholder {
    color: #f5f5f5;
    }
    #frame #sidepanel #search input:-moz-placeholder {
    color: #f5f5f5;
    }
    #frame #sidepanel #contacts {
    height: calc(100% - 177px);
    overflow-y: scroll;
    overflow-x: hidden;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #contacts {
        height: calc(100% - 149px);
        overflow-y: scroll;
        overflow-x: hidden;
    }
    #frame #sidepanel #contacts::-webkit-scrollbar {
        display: none;
    }
    }
    #frame #sidepanel #contacts.expanded {
    height: calc(100% - 334px);
    }
    #frame #sidepanel #contacts::-webkit-scrollbar {
    width: 8px;
    background: #2c3e50;
    }
    #frame #sidepanel #contacts::-webkit-scrollbar-thumb {
    background-color: #243140;
    }
    #frame #sidepanel #contacts ul li.contact {
    position: relative;
    padding: 5px 0 5px 0;
    font-size: 0.9em;
    /* cursor: pointer; */
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #contacts ul li.contact {
        padding: 6px 0 46px 8px;
    }
    }
    #frame #sidepanel #contacts ul li.contact:hover {
    background: #32465a;
    }
    #frame #sidepanel #contacts ul li.contact.active {
    background: #32465a;
    border-right: 5px solid #435f7a;
    }
    #frame #sidepanel #contacts ul li.contact.active span.contact-status {
    border: 2px solid #32465a !important;
    }
    #frame #sidepanel #contacts ul li.contact .wrap {
    width: 88%;
    margin: 0 auto;
    position: relative;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #contacts ul li.contact .wrap {
        width: 100%;
    }
    }
    #frame #sidepanel #contacts ul li.contact .wrap span {
    position: absolute;
    left: 0;
    margin: -2px 0 0 -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #2c3e50;
    background: #95a5a6;
    }
    #frame #sidepanel #contacts ul li.contact .wrap span.online {
    background: #2ecc71;
    }
    #frame #sidepanel #contacts ul li.contact .wrap span.away {
    background: #f1c40f;
    }
    #frame #sidepanel #contacts ul li.contact .wrap span.busy {
    background: #e74c3c;
    }
    #frame #sidepanel #contacts ul li.contact .wrap img {
        width: 20px;
        border-radius: 50%;
        float: left;
        margin-right: 10px;
        padding-top: 9px;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #contacts ul li.contact .wrap img {
        margin-right: 0px;
    }
    }

    @media screen and (max-width: 735px) {
    #frame #sidepanel #contacts ul li.contact .wrap .meta {
        display: none;
    }
    }
    #frame #sidepanel #contacts ul li.contact .wrap .meta .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    font-size: 14px;
    }
    #frame #sidepanel #contacts ul li.contact .wrap .meta .preview {

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -moz-transition: 1s all ease;
    -o-transition: 1s all ease;
    -webkit-transition: 1s all ease;
    transition: 1s all ease;
    color: rgb(156 163 175);
    }
    #frame #sidepanel #contacts ul li.contact .wrap .meta .preview span {
    position: initial;
    border-radius: initial;
    background: none;
    border: none;
    padding: 0 2px 0 0;
    opacity: .5;
    }
    #frame #sidepanel #bottom-bar {
    position: absolute;
    float: right;
    width: 100%;
    bottom: 0;
    }
    #frame #sidepanel #bottom-bar button {
    float: left;
    border: none;
    width: 50%;
    padding: 10px 0;
    background: #32465a;
    color: #f5f5f5;
    cursor: pointer;
    font-size: 0.85em;
    font-family: "proxima-nova",  "Source Sans Pro", sans-serif;

    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #bottom-bar button {
        float: none;
        width: 100%;
        padding: 15px 0;
    }
    }
    #frame #sidepanel #bottom-bar button:focus {
    outline: none;
    }
    #frame #sidepanel #bottom-bar button:nth-child(1) {
    border-right: 1px solid #2c3e50;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #bottom-bar button:nth-child(1) {
        border-right: none;
        border-bottom: 1px solid #2c3e50;
    }
    }
    #frame #sidepanel #bottom-bar button:hover {
    background: #435f7a;
    }
    #frame #sidepanel #bottom-bar button i {
    margin-right: 3px;
    font-size: 1em;
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #bottom-bar button i {
        font-size: 1.3em;
    }
    }
    @media screen and (max-width: 735px) {
    #frame #sidepanel #bottom-bar button span {
        display: none;
    }
    }
    #frame .content {
    float: right;
    width: 60%;
    height: 100%;
    overflow: hidden;
    position: relative;
    }
    @media screen and (max-width: 735px) {
    #frame .content {
        width: calc(100% - 58px);
        /* min-width: 300px !important; */
        min-width: 100%;
    }
    }
    @media screen and (min-width: 900px) {
    #frame .content {
        width: calc(100% - 340px);
    }
    }
    #frame .content .contact-profile {
    width: 100%;
    height: 60px;
    line-height: 60px;
    background: #f5f5f5;
    }
    #frame .content .contact-profile img {
    width: 40px;
    border-radius: 50%;
    float: left;
    margin: 9px 12px 0 9px;
    }

        #frame .content .contact-profile .social-media i {
        margin-left: 14px;
        cursor: pointer;
        }
        #frame .content .contact-profile .social-media i:nth-last-child(1) {
        margin-right: 20px;
        margin-top: 20px;
        }
        #frame .content .contact-profile .social-media i:hover {
        color: #435f7a;
        }

    #frame .content .messages {
    height: auto;
    /* min-height: calc(100% - 93px); */
    min-height: calc(100% - 200px);
    /* max-height: calc(100% - 93px); */
    max-height: calc(100% - 200px);
    overflow-y: scroll;
    overflow-x: hidden;
    margin-bottom: 20px;
    } 
    @media screen and (max-width: 735px) {
    #frame .content .messages {
        max-height: calc(100% - 200px);
    }
    }

    @media screen and (min-width: 768px), (min-width: 992px),(min-width: 1200px) {
        #frame .content .messages {
            min-height: calc(100% - 160px) !important;
            max-height: calc(100% - 160px) !important;
        }
    }
    #frame .content .messages::-webkit-scrollbar {
    width: 8px;
    background: transparent;
    }
    #frame .content .messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    }
    #frame .content .messages ul li {
    display: inline-block;
    clear: both;
    float: left;
    margin: 15px 15px 5px 15px;
    width: calc(100% - 25px);
    font-size: 0.9em;
    }
    #frame .content .messages ul li:nth-last-child(1) {
    margin-bottom: 20px;
    }
    #frame .content .messages ul li.sent img {
    margin: 6px 8px 4px 0;
    }
    #frame .content .messages ul li.sent p {
    background: #f5f5f5;
    font-size: 14px;
    
    }
    #frame .content .messages ul li.replies img {

    margin: 6px 8px 4px 0;
    }
    #frame .content .messages ul li.replies p {
    background: #435f7a;
    color: #f5f5f5;
    float: left;
    font-size: 14px;
    }
    #frame .content .messages ul li img {
    width: 22px;
    border-radius: 50%;
    float: left;
    }
    #frame .content .messages ul li p {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 2050px;
    line-height: 130%;
    }
    @media screen and (min-width: 735px) {
    #frame .content .messages ul li p {
        /* max-width: 300px; */
    }
    }

    #chat_download{
        cursor: pointer;
    }
  
    .footer_text{
        font-family: sans-serif;
    }
    #footer_left{
        font-size: 12px;
    }
    #footer_right{
        font-size: 12px;
    }

    /*#sendblock .form-control{
        flex: none;
        width: calc(100% - 135px);
    }*/

    
    /* SELECT2 */
    /*.select2-container .select2-selection--single{height: 52px !important;border-color:#dfe3e7 !important;}
    .select2-container .select2-selection--multiple{min-height: 52px !important;border-color:#dfe3e7 !important;}
    .select2-container--default .select2-selection--multiple .select2-selection__choice{line-height: 2.3rem;margin-top: 5PX !important;background: #fff !important;}
    .input-group .select2-container .select2-selection--single,.select2-container--default .select2-selection--multiple{border-radius: 0 !important;}
    .select2-container--default .select2-selection--single .select2-selection__rendered,.select2-container--default .select2-selection--select2-selection--multiple .select2-selection__rendered{line-height:52px !important;padding: 0 12px;}
    .select2-container--default .select2-selection--single .select2-selection__arrow,.select2-container--default .select2-selection--multiple .select2-selection__arrow{top:11px !important;}
    .select2-dropdown{z-index:1100 !important}
    .select2-container .select2-search--inline .select2-search__field{margin-top:15px !important;margin-left: 10px !important;}
    .input-group#searchbox {width:101.2% !important;}
    .select2-container--default .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove,.select2-container--default .select2-selection--multiple .select2-selection__choice__display{color:#000 !important}
    */
  
    pre{
       margin:0 !important;
    }

    .input-group {
        border-radius: 10px;
    }

    #final_send_button,#send_file{
        cursor: pointer;
    }
    #final_send_button{
        border-left: 1px solid inherit !important;
        border-radius: 0 5px 5px 0;
    }
    /*#send_file{
        border-right: 1px solid inherit !important;
    }*/
    /*#final_send_span{
        background: transparent;
        height: 100%;
        border-radius: 0;

    }*/

    #send_message{
        height: 52px;
        padding-top: 17px;
        border-right: none;
    }
    select.sendblock-attachment option:first-child {
      color: #fff;
      background: #000;
    }
    select.sendblock-attachment2 option:first-child {
      color: #fff;
      background: #000;
    }
    select.sendblock-attachment{
        height:52px !important;
        padding:5px; 
        width:150px !important;
        font-size:11px;
        font-weight: bold;
        overflow-y: auto;
    }

    select.sendblock-attachment2{
        height:52px !important;
        padding:5px; 
        width:calc(100% - 100px) !important;
        font-size:11px;
        font-weight: bold;
        overflow-y: auto;
    }
    .sendblock-attachment-sm {
        width: 100px !important;
    }

    select::-webkit-scrollbar {
        width: 8px;
    }

    select::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 0;
    }

    select::-webkit-scrollbar-track {
        background-color: #ccc;
        border-radius: 0;
    }



    .prompt_msg{
        font-size: 16px;
        font-weight: 600;
        font-family: ui-sans-serif;
    }

    #frame .content .contact-profile p #prompt_msg{
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;

    }
    #frame .content .contact-profile p #prompt_msg_p{
        white-space: nowrap !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    }
    #side_chat_content{
        cursor: pointer;
    }


    #new_chat_id{
        text-align: center;
        padding-top: 34px;
    }

    #new_chat{
        cursor:pointer
    }
    #brand_logo{
        height:40px; 
        width:140px;
    }
    #edit_btn{
        padding-right: 8px;
    }
    #edit_btn_div{
        padding-left: 30px;
    }
    .img_custom{
        width: 12px;
        cursor: pointer;
        height: 12px;
    }


      
    .light-mode .content {
        color: #333;
    }
      
    .dark-mode .content {
        background-color: #2c3e50;
        color: #fff;
    }
    .dark-mode #send_message,.dark-mode #file_ids {
        /* background-color: #3d556d; */
        background-color: #1d2c3b;
    }
    .dark-mode #file_ids {
        border:none;
        color: #ccc;
    }
    .dark-mode .content  #send_message{
        color: #ffffff;
    }
    .dark-mode .content .contact-profile {
        background-color: #557799 !important;
        color: #ffffff;
    }

    .dark-mode .content .messages ul li.sent p {
        /* background: #f5f5f5; */
        background: #e1e5e9;
        color: #000000;
        
    }
    .dark-mode #custom_staating_msg {
        background: #2c3e50;
        color: #fff;
        
    }
    .dark-mode .card-body{
        /* background: #516a83; */
        background: #1d2c3b;
        color: #fff;
    }
    .dark-mode .card-subtitle{
        color: rgb(156 163 175);
    }
    .dark-mode .card-title{
        color: #fff;
    }


    .card-body{
        background: #e1e5e9;
    }
    pre code{
        background: #1d2c3b !important;
    }


    /* DROPZONE */
    .dropzone {
        border: 2px dashed #6777ef !important;
        min-height: 200px !important;
        text-align: center !important;
    }
    .dropzone .dz-message {
        font-size: 24px !important;
        color: #34395e !important;
    }