.MuiStack-outer{
    background: #fff;
    margin: 12px;
    border-radius: 10px;
    height: calc(100vh - 185px);
    overflow: hidden;
    display: flex;
    flex-direction: row;
}
.add-new-temp-section .table-responsive {
    background: #fff;
    margin: 12px;
    border-radius: 10px;
    height: 100%;
    overflow: hidden;
    padding: 12px;
}
.add-new-temp-section .content-body{
    padding-bottom: 0px;
}
.add-new-temp-section button#add-template-btn {
    margin: 15px 14px 5px;
}
.add-tem-inner {
    position:relative;
    background: #fff;
    z-index: 6;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 11px 15px -7px, rgba(0, 0, 0, 0.14) 0px 24px 38px 3px, rgba(0, 0, 0, 0.12) 0px 9px 46px 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding:20px;
    max-height: calc(100% - 64px);
    max-width: 1200px;
    width: calc(100% - 64px);
    border-radius: 10px;
    overflow-y: auto;
}
div#template-form{
    padding:20px;
    position: fixed;
    z-index:9999;
    background-color: rgba(0, 0, 0, 0.3);
    width:100vw;
    height:100vh;
    top:0;
    left:0;
    overflow: hidden;
}
.tem-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    margin-bottom:20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.tem-head h3 {
    font-size: 16px;
    font-weight: 500;
    color:#000;
}
.tem-head button,
.tem-head button:hover {
    background-color: transparent;
    padding: 0!important;
    border: 0;
    border-radius: 0;
    margin: 0;
}
.add-tem-inner input {
    border: 0;
    background: #f86b4f1c;
    border-radius: 8px;
}
.add-tem-inner textarea{
    border: 0;
    background: #f86b4f1c;
    border-radius: 8px;
    resize:none;
}
.add-tem-inner select#language, .add-tem-inner .chosen-container-single .chosen-single {
    border: none;
    margin: 0;
    box-shadow: none;
    width: 100%;
}
.broadcast-option-box{
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.lan-option{
    padding: 3px 6px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    cursor: pointer;
    color: #333;
}

div#media-options [type="radio"]:checked,
div#media-options [type="radio"]:not(:checked),
#cta-options [type="radio"]:checked,
#cta-options [type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
}
div#media-options [type="radio"]:checked + label,
div#media-options [type="radio"]:not(:checked) + label,
#cta-options [type="radio"]:checked + label,
#cta-options [type="radio"]:not(:checked) + label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    line-height: 20px;
    display: inline-block;
    color: #666;
}
div#media-options [type="radio"]:checked + label:before,
div#media-options [type="radio"]:not(:checked) + label:before,
#cta-options [type="radio"]:checked + label:before,
#cta-options [type="radio"]:not(:checked) + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid #47535fa6;
    border-radius: 100%;
    background: #fff;
}
div#media-options [type="radio"]:checked + label:after,
div#media-options [type="radio"]:not(:checked) + label:after,
#cta-options [type="radio"]:checked + label:after,
#cta-options [type="radio"]:not(:checked) + label:after {
    content: '';
    width: 10px;
    height: 10px;
    background: #f86b4f;
    position: absolute;
    top: 4px;
    left: 4px;
    border-radius: 100%;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
#cta-options [type="radio"]:checked + label:after,
div#media-options [type="radio"]:checked + label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}
div#media-options [type="radio"]:not(:checked) + label:after,
#cta-options [type="radio"]:not(:checked) + label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}
.MuiInputBase-root {
    display: flex;
    align-items: center;
}
svg.MuiSvgIcon-root,
.search-icon {
    user-select: none;
    width:24px;
    height:24px;
    display: inline-block;
    fill: currentcolor;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: rgb(248 107 79);
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.search-box {
    display: flex;
    align-items: center;
    padding: 7px;
    border: 2px solid rgba(0, 0, 0, 0.23);
    border-radius: 12px;
    position: relative;
}
ul#chatFilter {
    padding: 0;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
    list-style: none;
    width: 100%;
    margin: 0;
    top: 100%;
    left: 0;
    padding: 8px 0;
    position: absolute;
    background: #fff;
}
ul#chatFilter li{
    padding:6px 16px;
    font-size:15px;
    font-weight:500;
    cursor: pointer;
}
.search-box:focus-within {
    border: 2px solid #f86b4f;
}
.search-bar input {
    height: 12px;
    background: transparent;
    border: 0;
    font-size: 14px;
    width: 100%;
}
[type=radio]+span:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width:100%;
    height:100%;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    background: transparent;
}
[type=radio]:checked+span:after {
    content: "";
    width:100%;
    height:100%;
    background:#ebebeb;
    position: absolute;
    top:0;
    left:0;
    z-index: -1;
    border-radius: 10px;
    transition: all .2s ease;
}
.filter-options {
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: flex-end;
    width: 100%;
}
.search-container-inbox {
    padding: 12px;
    position: relative;
}
ul#chatFilter li:hover{
    background:#f5f5f5;
}
.selected-filter {
    font-size: 15px;
    width: 100%;
    padding: 1px 5px;
    font-weight: 500;
    cursor: pointer;
}
svg.MuiSelect-icon {
    width: 24px;
    height: 24px;
    position: absolute;
    fill: #666666;
    right: 10px;
    top: 6px;
}
.results-list li {
    padding: 15px 10px;
}
.results-list li:nth-child(odd) {
    background: #f86b4f0d;
}
.result-name {
    font-size: 15px;
    width: 100%;
    padding:0;
    font-weight: 500;
}
.results-list .selected-filter {
    line-height: 1.5;
    color: rgb(248 107 79);
    font-size: 10px;
    font-weight: 500;
    margin-top: 5px;
    background: #ebebeb;
    width: fit-content;
}
.result-num {
    display: none;
}
.search-container-inbox label.MuiFormLabel-root {
    position: absolute;
    background: #fff;
    top: 4px;
    z-index: 1;
    left: 18px;
    font-weight: 500;
    font-size: 12px;
    padding: 0 6px;
}
.search-bar {
    width: 100%;
    padding: 0 6px;
}
.results-list {
    margin: 0;
    padding: 0;
    list-style: none;
    padding-top: 0px;
    margin-top: 20px;
    border-top: 1px solid rgb(0 0 0 / 10%);
}

[type=radio]+span {
    position: relative;
}
.filter-options input {
    position: absolute;
    opacity: 0;
}
.filter-options span {
    font-size: 10px;
    font-weight: 400;
    padding: 2px 8px;
    cursor: pointer;
    color: rgb(83 33 33);
    z-index: 1;
}
.filter-options label {
    margin: 0;
}
.MuiBox-root.search-box {
    padding: 12px;
}
.MuiBox-root.search-box label {
    color: rgba(0, 0, 0, 0.6);
    font-weight: 400;
    font-size: 15px;
    line-height: 1;
    margin: 0;
    display: block;
    transform-origin: left top;
    text-overflow: ellipsis;
    max-width: calc(133% - 32px);
    position: absolute;
    left: 0px;
    top: 0px;
    transform: translate(14px, -9px) scale(0.75);
    z-index: 1;
    pointer-events: auto;
    user-select: none;
    padding: 0px;
    white-space: nowrap;
    overflow: hidden;
}
.MuiFormControl-root {
    position: relative;
}
.MuiBox-root.search-box input {
    border: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: 15px;
}
.MuiBox-root.inbox-left {
    width: 330px;
    height: calc(100vh - 185px);
    overflow-y: auto;
    overflow-x: hidden;
}
.right-panal {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}
.right-panal h6 {
    font-size: 16px;
    font-weight: 500;
}
img.chat-img {
    width: 100%;
    max-height: 190px;
    object-fit: contain;
}
.MuiBox-root.inbox-left.chatbot-left {
    width: 200px;
}
.chatbot-left .tab-buttons {
    display: flex;
    flex-flow: column;
    padding: 15px 10px;
}
.chatbot-left .tab-buttons button {
    border: 0;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    background: transparent;
}
.chatbot-left .tab-buttons button:hover{
    background-color: #ebebeb6c;
}
.chatbot-left .tab-buttons button + button {
    margin-top: 16px;
}
.chatbot-left button.chatbot-button.active {
    background: #ebebeb;
    color: #f86b4f;
}
button#open-chat-list {
    display: none;
}
ul.chat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.chat-list input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}
svg.check-icon {
    width: 24px;
    height: 24px;
    fill: #f86b4f;
    position: relative;
}
svg.check-icon path {border: 1px solid #000;}
svg.check-icon:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #000;
}
svg.check-icon.checked {
    display: none;
}
input[type="checkbox"]:checked + span svg.check-icon.checked {
    display: block;
}
input[type="checkbox"]:checked + span svg.check-icon.check-blank {
    display: none;
}
ul.chat-list label {
    display: flex;
    margin: 0;
}
ul.chat-list p {
    font-size: 12px;
    font-weight: 500;
    padding-left: 10px;
    margin-bottom: 8px;
}
ul.chat-list li {
    padding: 10px 12px;
}
label.all-chat-btn input {
    position: absolute;
    opacity: 0;
}

label.all-chat-btn {
    margin: 0;
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 10px;
}
.tab-content-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid rgb(0 0 0 / 10%);
}

.right-panal.chatbot {
    display: block;
    padding: 20px;
    background: #fff;
}

.MuiDataGrid-columnHeaderTitle {
    font-size: 14px;
    font-weight: 500;
}

button.MuiButtonBase-root.MuiIconButton-root.MuiIconButton-sizeSmall.css-1j7qk7u {
    border: 0;
    background: transparent;
    position: absolute;
    opacity: 0;
}
.MuiDataGrid-columnHeaderTitleContainer:hover button.MuiButtonBase-root.MuiIconButton-root.MuiIconButton-sizeSmall.css-1j7qk7u {
    opacity: 1;
}
button.MuiButtonBase-root.MuiIconButton-root.MuiIconButton-sizeSmall.css-1j7qk7u svg {
    width: 18px;
    height: 18px;
}
.MuiDataGrid-columnHeaderTitleContainer {
    flex-grow: 1;
    display: flex;
}
.tab-content-table h2 {
    font-size: 18px;
    font-weight: 500;
    padding-bottom: 20px;
}
.right-panal.whatsapp-inbox {
    display: block;
    padding: 0 10px;
    height: calc(100vh - 185px);
    overflow-y: auto;
    overflow-x: hidden;
}

.right-panal.whatsapp-inbox .header {
    background: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.right-panal.whatsapp-inbox .header h4 {
    font-size: 15px;
    width: 100%;
    padding: 0;
    font-weight: 500;
}
.right-panal.whatsapp-inbox .header h4 span {
    line-height: 1.5;
    color: rgb(248 107 79);
    font-size: 10px;
    font-weight: 500;
    margin-top: 5px;
    background: #ebebeb;
    width: fit-content;
    display: block;
    padding: 0 5px;
}
.right-panal.whatsapp-inbox .user-img {
    background-color: rgb(189, 189, 189);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    margin-right: 10px;
}
.right-panal.whatsapp-inbox .img-text {
    display: flex;
    align-items: center;
}
.message-box.my-message {
    max-width: 505px;
    background-color: white;
    padding: 12px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
    margin: 8px 0;
}
.chat-container p {
    margin: 0;
}
.chat-container {
    /* height: calc(100vh - 200px); 
    overflow-y: auto;
    overflow-x: hidden; */
    padding: 10px;
    background-color: #f9f9f9; /* Optional styling */
    border-radius: 5px;
}

.message-box.my-message span,
.message-box.friend-message span {
    font-size: 9px;
    font-weight: 500;
    color: #33333380;
}
.message-box.friend-message {
    max-width: 505px;
    background-color: rgb(220, 241, 229);
    padding: 12px;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    margin: 8px 0;
    width: 100%;
    margin-left: auto;
}
@media (max-width:1024px){
    button#open-chat-list{
        display: block;
        text-align: center;
    border: 0;
    background: #f86b4f;
    padding: 8px 15px;
    border-radius: 20px;
    color: #fff;
    margin: 0 auto;
    width: 100%;
    margin: 15px 0px;
    }
    .MuiBox-root.inbox-left.whatsapp-inbox {
        position: fixed;
        background: #fff;
        top: 0;
        left: -330px;
        z-index: 9999;
        height: 100vh;
        transition: 0.3s all;
    }
    
    body.chat-list-open .MuiBox-root.inbox-left.whatsapp-inbox {
        left: 0;
    }
    
    body.header-fixed.chat-list-open:before {
        background: #00000026;
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        z-index: 1006;
        top: 0;
    }
    .MuiStack-root.MuiStack-outer.chatbot {
        flex-flow: column;
    }
    
    .MuiBox-root.inbox-left.chatbot-left {
        width: 100%;
        height: auto;
    }
    
    .chatbot-left .tab-buttons {
        flex-flow: row;
    }
    
    .chatbot-left .tab-buttons button + button {
        margin-top: 0;
        margin-left: 13px;
    }
}

.kanban-topbar{
    display: flex;
    align-items: center;
    justify-content:space-between;
}
.kanban-topbar .kanban-left {
    display: flex;
    padding: 20px 0 0;
    align-items: center;
    gap: 20px;
}

.kanban-topbar h1 {
    color: #f86b4f;
    font-size: 20px;
    line-height:28px;
    font-weight: 600;
}

.kanban-topbar .btn-grp {
    display: flex;
}

.kanban-topbar .btn-grp a.btn.active {
    border: 1px solid #f86b4f;
    color: #f86b4f;
}
.kanban-topbar .btn-grp a.btn {
    height: 32px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    padding: 0 15.5px;
}

.kanban-topbar .btn-grp a.btn svg {
    width: 16px;
    height: 16px;
}



.kanban-topbar .btn-grp a.btn:hover {
    background: #f5f5f5;
    color: #333;
}
.kanban-topbar button.btn-right {
    border: 2px solid #f86b4f;
    color: #fff;
    background: #f86b4f;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    height: 40px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
}

.kanban-topbar button.btn-right svg {
    width: 16px;
    height: 16px;
}
.content-body.s-contacts .page-header {
    display: none;
}
.content-body.s-contacts div#page-list-wrapper {
    margin-top: 15px;
}
.kanban_outer:nth-child(1) h3 {
    color: #f86b4f;
}
.kanban_outer h3:before {
    content: '';
    background: #f86b4f;
    position: absolute;
    height: 100%;
    width: 6px;
    border-radius: 0;
    top: 0;
    left: 0;
}
.kanban_outer:nth-child(2) h3:before {
    background: #3b82f6;
}
.kanban_outer:nth-child(2) h3 {
    color: #3b82f6;
}
.kanban_outer:nth-child(2) h3 svg {
    color: #3b82f6!important;
}
.kanban_outer:nth-child(3) h3:before {
    background: #10b981;
}
.kanban_outer:nth-child(3) h3 {
    color: #10b981;
}
.kanban_outer:nth-child(3) h3 svg {
    color: #10b981!important;
}
.kanban_outer:nth-child(4) h3:before {
    background: #8b5cf6;
}
.kanban_outer:nth-child(4) h3 {
    color: #8b5cf6;
}
.kanban_outer:nth-child(4) h3 svg {
    color: #8b5cf6!important;
}
.kanban_outer:nth-child(5) h3:before {
    background: #f59e0b;
}
.kanban_outer:nth-child(5) h3 {
    color: #f59e0b;
}
.kanban_outer:nth-child(5) h3 svg {
    color: #f59e0b!important;
}
.kanban_outer:nth-child(6) h3:before {
    background: rebeccapurple;
}
.kanban_outer:nth-child(6) h3 {
    color: rebeccapurple;
}
.kanban_outer:nth-child(6) h3 svg {
    color: rebeccapurple!important;
}

.kanban_outer:nth-child(7) h3:before {
    background: #E91E63;
}
.kanban_outer:nth-child(7) h3 {
    color: #E91E63;
}
.kanban_outer:nth-child(7) h3 svg {
    color: #E91E63!important;
}
.kanban_outer:nth-child(8) h3:before {
    background: #607D8B;
}
.kanban_outer:nth-child(8) h3 {
    color: #607D8B;
}
.kanban_outer:nth-child(8) h3 svg {
    color: #607D8B!important;
}
.kanban_outer:nth-child(9) h3:before {
    background: #009688;
}
.kanban_outer:nth-child(9) h3 {
    color: #009688;
}
.kanban_outer:nth-child(9) h3 svg {
    color: #009688!important;
}
.kanban_outer:nth-child(10) h3:before {
    background: #3F51B5;
}
.kanban_outer:nth-child(10) h3 {
    color: #3F51B5;
}
.kanban_outer:nth-child(10) h3 svg {
    color: #3F51B5!important;
}
button#openFilterBtn {
    border: 1px solid #EF785B;
    color: #EF785B;
    background: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    height: 40px;
    margin-top: 20px;
    cursor: pointer;
}
.kanban-right {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

button#openFilterBtn svg {
    width: 20px;
}

div#filterPanel {
    position: fixed;
    background-color: #fff;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
div#filterField_chosen {
    width: 84% !important;
}
.chosen-container-multi .chosen-choices {
    padding: 3px 8px;
    height: 40px;
    border: 1px solid #e4e4e7;
    border-radius: 5px;
    background: #fff;
}
.filterpannel .chosen-container-multi .chosen-choices .search-field {
    width: 82%;
}
.filterpannel-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
div#filterField_chosen {
    width: 84%!important;
}
div#filterInputContainer div + div {
    margin-top: 12px;
}
div#filterInputContainer input {
    width: 100%;
    min-width: 100%;
}
div#filterInputContainer {
    width: calc(100% + 10px);
    max-height: 400px;
    overflow-y: auto;
    max-width: 570px;
    padding: 15px 25px 0 0;
    margin-left: -8px;
    scrollbar-width: thin;
}
.filterpannel-head .close {
    color: #ef785b;
    opacity: 1;
    padding: 5px 0;
}
.filterpannel-head label {
    color: #ef785b;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}
.filterpannel .chosen-container-multi .chosen-choices .search-choice {
    color: #ef785b;
    font-size: 10px;
    outline-color: #ef785b;
    padding: 1px 10px;
}
.filterpannel .chosen-container-multi .chosen-choices .search-choice .search-choice-close {
    color: #ef785b;
    width: 12px;
    font-size: 0;
    height: 10px;
}
.filterpannel .chosen-container-multi .chosen-choices:active,
.filterpannel .chosen-container-multi .chosen-choices:focus-within {
    outline: 1px solid #ef785b;
}
body.filter-open {
    position: relative;
    overflow: hidden;
}
body.filter-open:before {
    background: #00000029;
    width: 100%;
    height: 100%;
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 999;
}
.filterpannel span.select2-selection.select2-selection--multiple {
    padding: 8px 20px;
    height: 40px;
    border: 1px solid #e4e4e7;
    border-radius: 5px;
    width: 100%;
    min-width: 180px;
    background: transparent;
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin: 0 10px;
}
.filterpannel .chosen-container-multi .chosen-choices:hover {
    background-color: #ef785b0a;
}
.filterpannel span.select2-dropdown.select2-dropdown--below {
    margin-left: 10px;
}
.filterpannel .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
    background:#ef785b;
}
.filterpannel .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #fff;
    border: 1px solid #ef785b;
    font-size: 12px;
    color: #ef785b;
}

.filterpannel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #ef785b;
}

/* WhatsApp Chat Status Enhancement Styles */
/* WebSocket connection status */
#websocket-status {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1000;
}

#websocket-status.connected {
    background-color: #4caf50;
    color: white;
}

#websocket-status.disconnected {
    background-color: #f44336;
    color: white;
}

/* Notification styles */
.whatsapp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    max-width: 300px;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.chat-item.unread {
    background-color: #e6f7ff;
    font-weight: bold;
}

/* Enhanced chat status styles */
.chat-item.new-chat {
    background-color: #f0f9ff;
    border-left: 4px solid #10b981;
}

.chat-status.new-chat {
    background-color: #10b981;
    color: white;
    font-weight: bold;
}

.chat-status.new-message {
    background-color: #f59e0b;
    color: white;
    font-weight: bold;
}

.chat-status.active {
    background-color: #3b82f6;
    color: white;
}

.unread-indicator {
    color: #10b981;
    font-size: 16px;
    font-weight: bold;
    margin-left: 5px;
}

.chat-item:hover .chat-status {
    opacity: 0.8;
}

/* WebSocket error message */
.websocket-error {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    text-align: center;
    z-index: 10000;
}

.websocket-error button {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Chat status badge improvements */
.chat-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

/* Default open status */
.chat-status:not(.new-chat):not(.new-message):not(.active) {
    background-color: #e6f7ff;
    color: #1890ff;
}

/* Chat item hover effects */
.chat-item {
    transition: all 0.2s ease;
}

.chat-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Active chat styling */
.chat-item.active {
    background-color: #e6f7ff;
    border-left: 4px solid #1890ff;
    transform: translateX(2px);
}

/* Unread message count badge */
.unread-count {
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}






