:root {
    --white-color : #FFFFFF;
    --icon-color : #6F7890;
    --gray-color : #DDE1EB;
    --text-color : #495057;
    --secondary-light : #E6EDFC;
    --secondary-light-2 : #F1F4FD;
    --secondary-light-2-op50 : rgba(241, 244, 253, 0.5);
    --neutral-light-1 : #F6F8FE;
    --neutral-light-2 : #F9FAFF;
    --primary :#2860E6;
    --menu-color :#1F2228;
    --chat-hover-color : #EEF1F8;
    --green-chat-status :#68D8B2;
    --yellow-chat-status : #ffd500;
    --red-chat-status : #ff3636;
    --title-color : #333333;
    --message-sent-color : #D4E4FF;
    --chat-preview : #616161;
    --ellipse-green-color: #0F9151;
    --ellipse-yellow-color: #FF9E01;
    --ellipse-red-color: #FF525A;
    --border: #6F6C95;
    --boder-color:#ced4da;
    --bottom-bar-height: 60px;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #999 transparent;
}

@font-face {
    font-family: 'IranSans';
    src: url('../fonts/IRANSansXFaNum-Regular.woff2') format('woff2'),
    url('../fonts/IRANSansXFaNum-Regular.woff') format('woff');
    font-weight: 400;
}

@font-face {
    font-family: 'IranSans';
    src: url('../fonts/IRANSansXFaNum-Regular.woff2') format('woff2'),
    url('../fonts/IRANSansXFaNum-Regular.woff') format('woff');
    font-weight: 700;
}

html, body {
    overflow: hidden;
    color: var(--text-color);
    height: 100%;
    margin: 0;
    background-color: var(--secondary-light);
    font-family: "IranSans";
}

/* یا html+body اگر لازم است */
html:has(.page-archive-container , .page-setting-container , .page-user-container),
body:has(.page-archive-container , .page-setting-container , .page-user-container) {
    overflow: auto !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}


*{
    font-family: "IranSans";
}

.chat-panel-con{
    overflow: hidden;

}

ul{
    padding: 0;
    margin: 0;
}

i,img, a, button{
    cursor: pointer;
}

i{
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
}

h5{
    font-size: 16px;
    color: var(--title-color);
}

a{
    color: var(--title-color);
    text-decoration: none;

}

input , select {
    /*width: 100%;*/
    background-color: var(--white-color);
    border: 1px solid var(--gray-color);
    border-radius: 6px;
    color: var(--icon-color);
    height: 32px;
}

input:focus {
    outline: none;
    border: 1px solid var(--primary);
}

select:not(.filter-left select){
    appearance: none;
    text-align: start;
    padding-inline-start: 10px;
    box-sizing: border-box;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}


.filter-left select{
    appearance: none;
    text-align: center;
    padding-inline-start: 20px;
}

.form-select:focus{
    box-shadow: none;
    border-color:var(--boder-color);
}

.form-select{
    padding: 5px;
}
.filter-bar .filter-right .form-select{
    background-position: left .75rem center;
}
.filter-right input{
    text-indent: 18px !important;
}


.page-container {
    font-size : 14px;
    height: 100dvh;
}

.bold{
    color: var(--title-color) !important;
    font-weight: bold;
}

.navCon {
    padding: 5px 16.5px;
    font-size: 10px;
    background-color: var(--secondary-light-2);
    height: 33px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    position: relative;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    scrollbar-gutter: stable;

    /* --- اضافه کردن استایل های زیر برای مخفی کردن اسکرول بار --- */

    /* برای Webkit browsers (Chrome, Safari, Edge) */
    &::-webkit-scrollbar {
        display: none; /* کل اسکرول بار را مخفی می کند */
    }

    /* برای Firefox */
    scrollbar-width: none; /* این خاصیت اسکرول بار را در فایرفاکس مخفی می کند */

    /* برای IE/Edge (نسخه های قدیمی تر) - کمتر رایج است */
    -ms-overflow-style: none;
}

/* اطمینان از اینکه ul و li نیز درست عمل می کنند */
.navCon ul {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    list-style: none;
    justify-content : space-between;
    padding: 0;
    margin: 0;
    height: 100%;
    align-items: center;
}

.navCon li {
    display: flex;
    cursor: pointer;
    text-align: center;
    padding: 4px 4px;
    background-color: var(--neutral-light-1);
    border-radius: 50px;
    white-space: nowrap;
    position: relative;
    align-items: center;
    flex-shrink: 0;
}

.navSelect{
    padding: 4px 4px 4px 8px !important;
}

ul li.active {
    transition: background-color 0.3s ease;
    background-color: var(--primary);
    color:var(--white-color);
    border-radius: 50px;
}

.nav-badge {
    transition: background-color 0.3s ease;
    position: absolute;
    top: -1px;
    left: -3px;
    background-color: var(--primary);
    color: var(--white-color);
    font-size: 8.28px;
    width: 11px;
    height: 11px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
}

.nav-badge-menu {
    transition: background-color 0.3s ease;
    position: absolute;
    left: 36%;
    background-color: var(--primary);
    color: var(--white-color);
    font-size: 10.3px;
    width: 14px;
    height: 14px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    z-index: 100;
}

.red-badge {
    transition: background-color 0.3s ease;
    font-size: 8.28px;
    margin-right: 2px;
    top: 5px;
    left: -3px;
    width: 10.77px;
    height: 10.77px;
    background-color: var(--white-color);
    color: black;
    display: flex;
    justify-content: center;
    border-radius: 6px;
}

.leftSectionNavCon{
    gap: 5px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    height: 60px;
    max-height: 60px;
    background-color: var(--secondary-light-2);
}

.leftSectionNavCon ul{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.leftSectionNavCon li{
    transition: background-color 0.3s ease;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    height: 50px;
    max-height: 50px;
    width: 30%;
    min-width: 90px;
    background-color: var(--neutral-light-2);
    border-radius: 6px;
    color: var(--icon-color);
    flex-shrink: 0;
}

.leftSectionNavCon i{
    font-size: 1.4rem;
}

.leftSectionNavCon ul li.active{
    transition: background-color 0.3s ease;
    background-color: var(--primary);
    color: var(--white-color);
    border-radius: 6px;
}

.sidebar {
    width: 70px;
    background-color: var(--menu-color);
    color: var(--white-color);
    height: 100vh;
    position: fixed;
    right: 0; /* Position on right side */
    top: 0;
    padding: 10px 0;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* This pushes menu-bottom to the bottom */
    align-items: center;
    transition: all 0.3s ease;
    /*transition: height  0.3s ease;*/
    overflow: hidden;
}

.menu-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.menu-top-start {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.menu-top-start li {
    list-style: none;
    margin-left: 8px;
}

.menu-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.sidebar.expanded {
    width: 333px;
    border-radius: 14px  0 0 14px;
    align-items: flex-start;
    padding-left: 15px;
}

.main-content {
    margin-right: 70px; /* Match sidebar width */
    width: calc(100% - 70px);
    min-height: 100vh;
    height: 100vh;
    padding: 3px; /* Add padding to create space for margins */
    transition: margin-right 0.3s ease;
}

.container-fluid{
    min-height: 100vh;
}

.content-row {
    height: calc(100vh - 6px); /* Account for padding */
}

.content-column {
    height: 100dvh;
    padding: 0 1.5px; /* Creates 3px gap between columns (1.5px on each side) */
}

.content-box {
    background-color: var(--neutral-light-1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px; /* As requested */
    overflow: hidden;
}

.right-box{
    background-color: var(--white-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
}

.right-box .icons{
    font-size: 18px;
    color: var(--icon-color);
    font-weight: bold;
}

.chat-con{
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    /*اسکرول نازک*/
    scrollbar-width: thin;
    scrollbar-color: #999 transparent;
    /*بدون اسکرول*/
    /*scrollbar-width: none; !* Firefox *!*/
    /*-ms-overflow-style: none; !* Internet Explorer 10+ *!*/
}

.menu-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    color: var(--white-color);
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.menu-icon:not(#menuToggle){
    margin-right: 25px;
}

.menu-icon #menuToggleIcon{
    margin-right: 15px;
}

.mobile-icon img {
    padding: 2px;
    border: 2px solid white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
}

.chat-panel-con .mobile-icon img{
    padding: 0;
    border: none;
    width: 42px;
    height: 42px;
}
.page-archive-container .mobile-icon img{
    border: none;
    width: 60px;
    height: 60px;
}

.menu-icon i {
    z-index: 10;
    padding: 8px 8.5px  0 8.5px;
    color: var(--gray-color);
}

.menu-icon:not(.menu-top-start li , #ellipsis i , .menu-bottom li){
    margin-top: 19px;
}

.menu-icon-select:not(#menuToggleIcon){
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 8.5px 0 8.5px;
    color: var(--white-color);
    cursor: pointer;
}

.menu-icon:hover i {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 8.5px 0 8.5px;
    color: var(--white-color);
    cursor: pointer;
}

.menu-icon:active i {
    color: var(--white-color);
    transform: scale(0.95);
}

.profile-container {
    position: relative;
    margin-bottom: 28px;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.profile-texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-icon .profile-texts .name {
    color: var(--white-color);
    font-size: 0.9rem;
    line-height: 1.2;
}

.menu-icon .profile-texts .title {
    display: flex;
    justify-content: start;
    color: rgba(221, 225, 235, 0.8);
    font-size: 0.8rem;
    margin-top: 4px;
}

.sidebar.expanded .menu-icon .mobile-icon{
    text-align: right;
}

.menu-bottom{
    margin-bottom: 0;
}

.menu-label {
    line-height: 1;
    display: none;
    font-size: 14px;
    color: var(--gray-color);
}

.menu-label div:not(.profile-texts .title){
    margin-top: 19px;
}

.menu-label:hover {
    color: var(--white-color);
}

.sidebar.expanded .menu-label {
    display: inline-block;
}

/* Chat list styling */
.chat-header {
    padding: 8px 12px;
    background-color: var(--white-color);
    box-shadow: 2px 2px 4px #EAECF1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 42px; !important;
    max-height: 42px;
}

.voice-header{
    border-top: 2px solid var(--neutral-light-2);
    padding: 8px 12px;
    background-color: var(--white-color);
    box-shadow: 2px 2px 4px #EAECF1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 33px; !important;
    max-height: 42px;
}

.voice-header i{
    color: var(--primary) !important;
}

.voice-header #cross{
    font-size: 20px;
    line-height: 0;
    color: var(--icon-color) !important;
}

.user-voice-name{
    font-size: 14px;
    color: var(--title-color);
}

.chat-container {
    max-width: 500px;
    margin: 20px auto;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-item {
    position: relative;
    height: 48px;
    min-height: 48px;
    padding: 5px;
    /*border-bottom: 1px solid var(--gray-color);*/
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
    gap: 10px;
}

.chat-item i{
    color: var(--icon-color);
}

.border-chat{
    position: absolute;
    bottom: 0;
    right: 60px;
    left: 0;
    height: 1px;
    background-color: var(--gray-color);
}

.chat-item:hover {
    background-color: var(--chat-hover-color);
}

.chat-item-select{
    background-color: var(--chat-hover-color);
}

.no-hover .chat-item:hover{
    background-color: transparent !important;
}

.group-member{
    border-bottom:1px solid var(--gray-color) ;
    padding: 9px 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-option{
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-rol{
    border-radius: 2px;
    font-size: 10px;
    color: var(--white-color);
    width: 3rem;
    /*height: 1rem;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-user-status{
    color: #507BE3;
}

.primary{
    background-color: var(--primary);
}

.yellow{
    background-color: var(--ellipse-yellow-color);
}

.green{
    background-color: #68D8B2;
}

.chat-avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    flex-shrink: 0;
}

.chat-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-info {
    font-size: 12px;
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chat-name {
    font-size: 12px;
    /*font-weight: bold;*/
    margin-bottom: 2px;
    color: var(--title-color);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-panel-con .chat-name{
    font-size: 14px;
}

.chat-preview  {
    color: var(--chat-preview);
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.2;
    max-width: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* حداکثر دو خط */
    -webkit-box-orient: vertical;

    /* برای شکستن کلمات طولانی */
    word-break: break-word;
    overflow-wrap: break-word;
    cursor: pointer;
}

/* حالت باز شده */
.chat-preview.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.chat-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    height: 100%;
    justify-content: space-between;
    flex-shrink: 0;
    min-width: 60px;
}

.chat-status i {
    font-size: 12px;
}

.status-top{
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-time {
    color: var(--chat-preview);
    font-size: 9.9px;
}

.online-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--green-chat-status);
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
    right: 2px;
    left: 31px;
    top: 33px;
    border: 2px solid white;
}

.online-indicator.yellow{
    background-color: var(--yellow-chat-status);
}

.online-indicator.red{
    background-color: var(--red-chat-status);
}

.message-badge {
    background-color: var(--primary);
    color: var(--white-color);
    font-size: 8.28px;
    font-weight: bold;
    width: 12.77px;
    height: 12.77px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.user-name {
    color: var(--title-color);
}

.user-status {
    font-size: 8px;
    margin-top: 2px ;
    color: rgba(111, 120, 144, 0.6);
}

.assistance-chat-box{
    transition: background-color 0.3s ease;
    margin-top: 6px;
    height: 43%;
}

.supervisor-chat-input,
.supervisor-chat-input #helpMessageInput{
    background: var(--secondary-light)!important;
    border: none;
}

.supervisor .chat-avatar{
    margin-left: 10px;
}
.supervisor #group-info{
    display: block !important;
}

.supervisor .group-user img{
    margin-left: -19px;
}

.supervisor .group-user-con{
    background-color: transparent;
}
/* Center section content */
.header-user-info-con{
    display: flex;
    flex-direction: row;
}

.chat-content {
    height: 100dvh;
    overflow-y: auto;
    padding: 10px;

    /*اسکرول نازک*/
    scrollbar-width: thin;
    scrollbar-color: #999 transparent;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    text-align: start; /* شروع متن بر اساس جهت */
    unicode-bidi: plaintext;
    direction: inherit;
    position: relative;
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 12px;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
    word-break: break-word !important;
    /*z-index: 0;*/
}

.message-sent {
    align-self: flex-start;
    background-color: var(--message-sent-color);
    border-bottom-right-radius: 0;
}

.message-received-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    justify-content: flex-end;
}

.message-system {
    text-align: center;
    margin: 8px 0;
}

.message-sent-wrapper {
    gap: 8px;
    display: flex;
    align-items: flex-end;
    /*margin: 10px;*/
}

.message-received {
    background-color: var(--gray-color);
    border-bottom-left-radius: 0;
}

.message-time {
    font-size: 10px;
    color: #555;
    margin-top: 4px;
    align-self: flex-end;
}

.chat-content::-webkit-scrollbar {
    width: 6px;
}
.chat-content::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.message-received-wrapper .avatar , .message-sent-wrapper .avatar{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.message {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.message img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.message-sent-username{
    font-size: 12px;
    color: var(--primary);
}

.message-received-username{
    display: flex;
    justify-content: flex-start;
    font-size: 12px;
    color: var(--primary);
}

.nav-assis{
    height: 100%;
}

.nav-assis .message{
    max-width: 100%;
}

.nav-assis .message-sent{
    margin: 9px 14.5px;
    background-color: var(--gray-color);
}

.nav-assis .message-respond{
    margin: 10px 21px;
}

.message-suggestion{
    background-color: var(--message-sent-color);
}

.nav-assis button{
    position: sticky;
    width: 97%;
    top: 100%;
    margin: 13px 6px;
    bottom: 0;
    border-radius: 12px;
}

#nav-info , #nav-report ,#nav-assis{
    overflow-x: hidden;
    overflow-y: auto;
    /*scrollbar-width: none; !* Firefox *!*/
    /*-ms-overflow-style: none; !* Internet Explorer 10+ *!*/
    height: 100%;
}

.message-time {
    font-size: 8px;
    color: var(--title-color);
    align-self: flex-end;
    margin-top: 2px;
}

.message .fi-sr-play , .message .fi-sr-pause{
    color: var(--white-color) !important;
    line-height: 0;
}

.chat-input {
    position: sticky;
    bottom: 20px;
    /*padding: 14px 15px;*/
    border: 1px solid var(--gray-color);
    background-color: var(--white-color);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    align-items: center;
    margin: 20px;
    /*height: 73px;*/
    max-height: 40dvh;
    border-radius: 8px;
    flex-shrink: 0;
}

.assistance-chat-box .chat-input{
    position: static;
}
.chat-input i:not(.icon-color){
    color: var(--icon-color);
}

.IcCon {
    padding: 14px 15px;
    height: 30px;
    max-height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.InCon {
    border-bottom: 1px solid  rgba(228, 231, 239, 0.8);
    min-height: 43px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
}

.InCon i {
    transform: scaleX(-1);
    display: inline-block;
}


.input-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.input-wrapper textarea {
    position: relative;
    border-radius: 0;
    height: 40px;
    padding:10px;
    color: var(--title-color);
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    resize: none;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
    /*min-height: 40px;  !* حداقل ارتفاع *!*/
    /*max-height: 50px;  !* حداکثر ارتفاع *!*/
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

#messageInput {
    min-height: 40px;
    max-height: 250px;
    resize: none;
    overflow-y: scroll;
}


.chat-input input {
    width: 100%;
    background-color: var(--white-color);
    border: 1px solid var(--white-color);
    border-radius: 40px;
    outline: none;
    color: var(--title-color);
}

.send-icon {
    position: absolute;
    bottom: 5px;
    left: 0;
    cursor: pointer;
}

.back-button {
    margin-left: 10px;
    cursor: pointer;
    display: none ;
}

.center-column .content-box {
    display: flex;
    flex-direction: column;
    height:100dvh;
}

.btn-icon{
    background-color: transparent;
    border: none;
    box-shadow: none;
}
/*search box */

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--white-color);
    border-radius: 40px;
    border:2px solid var(--gray-color);
}

.header-container{
    display: flex;
    flex-direction: column;
    padding: 8px 6px ;
}

input[type="search"] {
    text-indent: 25px;
    flex: 1;
    border: none;
    outline: none;
    height: 32px;
    color: var(--title-color);
    background: transparent;
    font-weight: normal;
}

.search-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-color);
    user-select: none;
    cursor: default;
    white-space: nowrap;
}

.search-label i {
    stroke: var(--gray-color);
    font-size: 16px;
}

.icon {
    color: rgba(111, 120, 144, 0.6);
    position: absolute;
    display: flex;
    align-items: center;
    gap: 2px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.mirrored {
    transform: scaleX(-1);
    height: 16px;
}

/* left sec */

.left-column .content-box{
    transition: background-color 0.3s ease;
    max-height: 100%;
    background-color: var(--white-color);
}

.left-column .leftSectionNavCon{
    padding: 5px 9.5px;
    background-color: var(--secondary-light-2);
}

.left-column .left-section-info{
    height: auto;
    max-height: 89%;
    background-color: var(--neutral-light-1);
    border-radius: 8px;
    overflow: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.left-section-info-item{
    height: 600px;
}

.left-section-info textarea{
    width: 100%;
}

.report-archive-icon{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px;
    height: 8%;
    width: 100%;
    background-color: var(--neutral-light-1);
    border-radius: 8px;
    margin-bottom: 6px;
}

.left-column .info-img{
    padding-top: 40px;
}

.left-column .personal-information{
    padding-top: 13.44px;
    padding-bottom: 22.72px;
}

.left-column .personal-information .num{
    color: var(--icon-color);
    padding-top:8.88px;
    padding-bottom: 6.14px;
}

.left-column .personal-information .user-email{
    color: var(--icon-color);
}

.left-column .info-img img{
    width: 65.38px;
    height: 65.38px;
    border-radius: 50%;
}

.group-user-con{
    background-color: transparent;
    padding: 9px 7px;
}

.group-user {
    margin-bottom: 3px ;
    display: flex;
    align-items: center;
}

.group-user img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: -14px;
}

/* info table */
.info-table{
    border-collapse: separate;
    border-spacing: 6px 4px;
}

.info-table td{
    display: flex;
    justify-content: space-between;
    border-radius: 6px;
    padding:8px 22px ;
    background-color: var(--white-color);
}

table .tag-1{
    background-color: var(--ellipse-green-color);
    width: 73px;
    height: 20px;
    display: flex;
    justify-content: center;
    color: var(--white-color);
    border-radius: 2px;
}

table .tag-2{
    background-color: var(--ellipse-yellow-color);
    width: 73px;
    height: 20px;
    display: flex;
    justify-content: center;
    color: var(--white-color);
    border-radius: 2px;
}


.triage{
    background-color: var(--ellipse-red-color);
    justify-content: center;
    color: var(--white-color);
    border-radius: 2px;
    font-size: 0.7rem;
    padding: 2px 4px;
}
.triage-urgent {background-color: var(--ellipse-red-color);}
.triage-high {background-color: var(--ellipse-yellow-color);}
.triage-normal {background-color: var(--green-chat-status);}
.triage-low_or_unknown {background-color: var(--message-sent-color); color: var(--text-color)}
.triage-need_for_counseling_or_concern_for_others {background-color: var(--primary);}

.w-min {
    width: min-content;
    display: inline-block; /* make block-level element shrink-to-fit */
}

table .tag-3{
    background-color: var(--ellipse-red-color);
    width: 73px;
    height: 20px;
    display: flex;
    justify-content: center;
    color: var(--white-color);
    border-radius: 2px;
}

.detail{
    color: var(--icon-color);
}

/*input group */
.form-group {
    display: flex;
    flex-direction: column;
    margin: 4px;
    /*margin-left: 10px;*/
    /*margin-right: 10px;*/
}

.form-group label {
    margin: 8px 4px;
    font-size: 0.8rem;
    color:var(--title-color) ;
    display: flex;
    align-items: center;
}

.required {
    color: red;
    margin-left: 4px;
    font-size: 16px;
}

.form-group input:not(input[type='search']) , textarea{
    width: 100%;
    color: var(--chat-preview);
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    background-color: white;
}

.form-group input::placeholder{
    color: rgba(97, 97, 97, 0.4);
    font-size: 14px;
}

.form-group input:focus {
    border-color: var(--primary);
}

.button , select{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 32px;
    width: 100%;
    border: 1px solid #e3e7f0;
    border-radius: 6px;
    background: #fff;
    color: #6b6b6b;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.btn-custom{
    border: none;
    width: 97%;
    background-color: var(--primary);
    color: var(--white-color) !important;
    border-radius: 8px;
    height: 38px;
    text-align: center;
}

.page-archive-container .btn-custom {
    width: auto;
    padding: 7px 11px;
    align-items: center;
    text-align: center;
    height: auto;
}

.btn-custom:hover{
    background-color: var(--primary);
    color: var(--white-color);
}

.btn{
    background-color: var(--white-color);
    border: 1px solid var(--gray-color);
    border-radius: 6px;
    color: var(--icon-color);
    height: 32px;
}

.btn:hover , .btn:focus{
    border: none;
    background-color: var(--primary);
    color: var(--white-color);
}

.btn-none{
    padding: 0;
    background-color: transparent;
    border: none;
    color: var(--icon-color);
}

/* modal */

.modal .modal-header , .modal-body , .modal-footer{
    border: none;
}
.modal-content{
    background-color: var(--secondary-light-2);
    color: var(--title-color);
}

#new-note .modal-content , #read-note .modal-content  , #setting-messages-auto-respond-collapse .modal-content , #request-detail .modal-content{
    background-color: var(--white-color);
}

.modal-body h5{
    color: var(--title-color);
}

/* modal note */
.modal-body .dropdown-toggle::after{
    display: none;
}

.modal-footer button{
    width: 147px;
}
.modal-footer{
    justify-content: center;

}

.note-modal-content , .request-modal-content{
    height: 275px;
    border-radius: 8px;
    padding:  2px 16px;
    border: 1px solid var(--gray-color);
    overflow-x: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-note-read-header{
    margin-top: 12px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    color: rgba(111, 120, 144, 0.6);
}

.dropdown-menu{
    width: 100%;
    height: 280px;
    text-align: right;
    background-color: var(--neutral-light-1);
    color: var(--title-color);
    border: 1px solid var(--gray-color);
    overflow: hidden;
    /*position: relative;*/
}

.custom-dropdown-content{
    position: absolute;
    width: 100%;
    height: 150px !important;
    background-color: var(--neutral-light-1);
    color: var(--title-color);
    border: 1px solid var(--gray-color);
    border-radius: 8px;
    overflow: auto;
    z-index: 10;
}

.custom-dropdown-content label{
    display: flex;
    align-items: center;
}

.custom-dropdown-content button{

}

.lable .dropdown-menu{
    padding-right: 11px;
    height: 200px;
    overflow-y: auto;
    scrollbar-width:thin;
    scrollbar-color: #999 transparent;
}

.lable .dropdown-menu input{
    background-color: var(--neutral-light-1) !important;
}

.lable .dropdown-menu button{
    width: auto;
    margin-top: 11px;
    height: 26px !important;
    border-radius: 6px;
    font-size: 12px;
}

.default-lable{
    margin-top: 27px;
    margin-right: 11px;
    font-size: 12px;
}

.dropdown-content {
    height: 100%;
    overflow-y: auto;
    scrollbar-width:thin;
    scrollbar-color: #999 transparent;
    padding-right: 6px;
    box-sizing: content-box;
}


.dropdown-menu .search-container{
    margin: 27px 11px ;
    background-color: var(--neutral-light-1);
}

.dropdown-menu .search-container input{
    text-indent: 25px;
    color: var(--title-color);

}
.dropdown-menu li a:hover{
    background-color: snow;
}

.dropdown-toggle{
    text-align: right;
    justify-content: right;
}
.note-public-con{
    border-bottom: 1px solid var(--gray-color);
}

.note-public{
    margin: 11px;
}

.note-public label  , .custom-dropdown-content label{
    background-color: var(--neutral-light-1);
    margin: 3px;
    justify-content: right;
    border: 1px solid var(--gray-color);
    border-radius: 6px;
    height: 32px;
    width: 100%;
    padding-right:12px ;
    color: var(--title-color);
}

.color-picker{
    width: 30px !important;
    height: 10px;
    border-radius: 50px;
}
.description-for-danger {
    gap: 5px;
    display: flex;
    align-items: center;
    font-size: 12px;
    text-align: center;
}

.description-for-danger label {
    position: relative;
    top: -2px;
}


/* Mobile styles */
@media (max-width: 990px) {

    .center-column, .left-column {
        display: none;
    }

    html , body{
        overflow: auto;
    }

    body {
        padding-bottom: var(--bottom-bar-height);
        overflow-y: hidden;
    }

    .pagination-container  , .pagination-archive-container , .help-pagination-container , .archive-pagination-container , .other-help-pagination-container , .other-archive-pagination-container , .per-pagination-container , .req-pagination-container{
        min-height: max-content;
        overflow-y: hidden;
    }

    .page-archive-container{
        padding-bottom: 65px !important;
    }
    .chat-con{
        /*بدون اسکرول*/
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* Internet Explorer 10+ */
    }

    .col-md-3 {
        flex: 0 0 auto;
        width: 100%;
    }

    .sidebar {
        width: 100%;
        height: 60px;
        position: fixed;
        flex-direction: row;
        margin-top: 80px;
        /*justify-content: center;*/
        align-items: center;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 1500;
    }

    .sidebar.expanded {
        height: 100dvh;
        width: 100%;
        flex-direction: column;
        border-radius: 12px 12px 0  0 ;
        align-items: stretch;
        top: auto;
        bottom: 0;
        z-index: 2000;
    }

    .sidebar:not(.expanded) .menu-top {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .sidebar:not(.expanded) .menu-top .menu-icon:not(.mobile-icon) {
        display: none;
    }

    .sidebar.expanded .menu-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding-top: 20px;
    }

    .chat-input{
        bottom: 20px;
    }

    .menu-bottom {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 10px 0;
    }

    .chat-preview {
        color: var(--chat-preview);
        /*white-space: nowrap;*/
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 400px;
    }

    .main-content {
        margin-right: 0;
        width: 100%;
        height: 100dvh;
        padding-bottom: 60px;
    }

    #nav-info{
        height: 100dvh;
        overflow-y: auto;
    }

    .back-button {
        display: block;
    }

    .center-active .right-column {
        display: none;
    }

    .center-active .center-column {
        display: block;
        width: 100%;
    }

    .left-active .right-column,
    .left-active .center-column {
        display: none;
    }

    .left-active .left-column {
        display: block;
        width: 100%;
    }

    .mobile-icon img{
        margin: 0;
    }

    .header-user-info-con .input-group {
        width: auto !important;
    }

    .page-user-el-container{
        flex-direction: column;
    }
    aside{
        width: 100% !important;
    }

    .donut-multi{
        width: 120px !important;
        height: 120px !important;
    }

    .donut-multi::before {
        width: calc(120px - 20px * 2) !important;
        height: calc(120px - 20px * 2) !important;
    }

    .report-nav-button button{
        font-size: 10px !important;
    }

    .modal{
        height: calc(100dvh - 60px);
    }

    .page-user-section{
        margin-bottom: 100px !important;
    }

    .notification-con , .note-con{
        margin: 0 !important;
        height: calc(100% - 64px) !important;
    }

    .show-archive-chat{
        display: block !important;
    }
    .filter-box , .filter-popup{
        margin: 5px !important;
        width: 97% !important;
        right: 0 !important;
    }
    .emoji-picker__wrapper{
        left: 400px !important;
        top: auto !important;
    }
    .emoji-picker__overlay{
        display: none !important;
    }
}


/* Archive page */

.page-archive-container {
    min-height: calc(100vh - 6px);
    background: var(--white-color);
    border-radius: 12px;
    padding: 22px;
}

.page-archive-container i {
    line-height: 0;
    font-size: 18px;
}

.show-archive-chat{
    display: none;
    font-size: 18px;
}

.breadcrumb {
    gap: 5px;
    color: var(--icon-color);
    margin-bottom: 22px;
    font-size: 12px;
}

.tabs-nav , .tag-nav {
    margin-bottom: 12.5px;
    border-bottom: 1px solid var(--gray-color);
}

.tabs-nav .nav-link {
    color: rgba(97, 97, 97, 0.7);
    border: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, color 0.3s;
    border-radius: 0;
}

/*.nav.tabs-nav .nav-item:first-child .nav-link {*/
/*    padding-right: 0;*/
/*}*/

.tabs-nav .nav-link.active {
    font-weight: bold;
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.filter-left , .filter-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-right input[type="search"] {
    color: rgba(111, 120, 144, 0.6);
    width: 230px;
    max-width: 100%;
    padding: 0.3rem 0.7rem;
    border-radius: 6px !important;
    border: 1px solid var(--boder-color);
    direction: rtl;
    font-size: 0.9rem;
}

.filter-right{
    color: var(--icon-color);
}

.filter-bar {
    line-height: 1;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-left select {
    width: 59px;
    background-color: var(--white-color);
    color: var(--icon-color);
    border: 1px solid var(--gray-color);
    border-radius: 6px;
}

.filter-left > div {
    display: flex;
    align-items: center;
    gap: -0.6rem;
}

.sort-section{
    white-space: nowrap;
    color:var(--icon-color) ;
}

#archive-user-list .hover-box{
    top: -6px !important;
}

/*table */

.custom-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--gray-color);
    border-radius: 0.5rem;
}

.table-responsive{
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #999 transparent;
    border-radius: 8px;
}

.table-responsive table , .table-responsive .table-archive-custom {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
}

@media (max-width: 992px) {
    .table-responsive.Consultant {
        overflow-x: auto;
    }
}

.custom-table th,
.custom-table td {
    height: 38px;
    border-bottom: 1px solid var(--gray-color); /* خط زیر هر ردیف */
}

.table thead th , .table-archive-custom thead th{
    background: rgba(221, 225, 235, 0.5);
    height: 38px;
    padding: 8px 12px;
    font-weight: normal;
    border-bottom: 1px solid var(--gray-color);
    vertical-align: middle;
    color: var(--icon-color);
    position: sticky;
}

.table tr , .table-archive-custom tr{
    cursor: pointer;
    height: 38px;
}

.table tr:hover , .table-archive-custom tr:hover{
    background-color: var(--chat-hover-color);

}

.badge-status {
    min-width: 63px;
    width: max-content;
    color: var(--title-color);
    font-size: 12px;
    padding: 3px;
    border-radius: 50px;
    display: inline-block;
    text-align: center;
}

.badge-active {
    background-color: rgba(104 , 216, 178 , 0.3);
    border: 1px solid #68D8B2;
}

.badge-pending {
    background-color: rgba(255 , 158, 1 , 0.3);
    border: 1px solid #FF9E01;
}

.badge-inactive {
    background-color: rgba(255,82,90,0.3);
    border: 1px solid #FF525A;
}

.hover-container {
    margin-left: 10px;
    position: relative;
    display: inline-block;
}

.hover-box {
    font-size: 12px;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8px;
    background: white;
    border: 1px solid var(--gray-color) ;
    border-radius: 6px;
    /*padding: 5px ;*/
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    z-index: 10;
}

#read-note .hover-box {
    top: 45px;
    left: -8px;
    cursor: pointer;
}

.hover-box a , .hover-box button , .hover-new_message-box a , .hover-new_message-box button , .hover-add-feedback button{
    padding:6px 4px;
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--gray-color);
    color: var(--icon-color) !important;
}

.hover-box-a{
    width: 100%;
}

.hover-box-a:last-child a {
    border-bottom: none;
}

.hover-box::after {
position: absolute;
right: 100%;
top: 50%;
transform: translateY(-50%);
border: 6px solid transparent;
border-left-color: white;
}

.hover-container:hover .hover-box {
    z-index: 100;
opacity: 1;
visibility: visible;
}

.filter-box {
    position: absolute;

    top: calc(100% + 5px);
    right: 0;

    width: 280px;
    max-height: 50vh;

    overflow-y: auto;
    overflow-x: hidden;

    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.15);

    z-index: 1000;
}

.filter-popup{
    display:none;
    height: 50%;
    overflow-y: auto;
    overflow-x: hidden;
    position:absolute;
    background:white;
    border:1px solid #ccc;
    padding:10px;
    border-radius:6px;
    box-shadow:0 2px 6px rgba(0,0,0,0.15);
    z-index:100;
}

.tags-container{
    width: 100%;
}

.page-archive-container aside{
    padding: 0;
}
.aside-header{
    height: 32px;
    background-color: var(--gray-color);
    border-radius: 8px 8px 0 0;
    padding: 5px    ;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 3px;
}
aside .tags{
    display: flex;
    flex-wrap: wrap;
    margin: 5px;
    gap: 2px;
    padding: 10px;
}

.tag-category-section{
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--gray-color);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category{
    margin: 5px;
    border: 1px solid var(--gray-color);
    border-radius: 8px;
}

.page-tags-el-container .row{
    margin-right: 0;
    margin-left: 0;
}

.tag-category-container .category{
    padding: 10px;
}

/*pagination*/
.pagination-container ,.pagination-archive-filter-container , .pagination-archive-container , .help-pagination-container , .archive-pagination-container , .other-help-pagination-container , .other-archive-pagination-container , .per-pagination-container , .req-pagination-container{
    width: max-content;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    padding: 5px 11px;
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
    /*line-height: 0;*/
    border: 1px solid var(--gray-color);
}

.highlighted {
    background-color: rgba(255, 255, 0, 0.3);
    transition: background-color 0.5s ease;
}


/*user detail */
.page-archive-user-icon{
    display: flex;
    justify-content: space-between;
}

.name {
    font-size: 12px;
    color: var(--title-color);
}

.page-archive-user-icon .profile-container{
    margin-top: 0;
    margin-bottom: 0;
}

.page-archive-user-icon .btn-custom{
    width: 100%;
}

.title {
    font-size: 12px;
    color: var(--icon-color);
}

.profile-wrapper {
    gap: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-wrapper img{
    border-radius: 50%;
    width: 42px;
    height: 42px;
}

/* user chat detail */

.archive-right-con{
    background-color: var(--white-color);
}

.archive-info {
    gap: 17px;
    margin: 34px 10px ;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.archive-info i , .archive-info img{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--white-color);
    font-size: 21px;
}

.badge-blue {
    background-color: rgba(40 , 96, 230 , 0.3);
    border: 1px solid var(--primary);
}

.badge-gray {
    background-color: rgba(111 , 120, 144 , 0.3);
    border: 1px solid var(--icon-color);
}

.badge-yellow {
    background-color: rgba(255 ,0, 0 , 0.3);
    border: 1px solid var(--icon-color);
}

.archive-chat-user{
    background-color: var(--chat-hover-color);
    position: relative;
    height: 48px;
    min-height: 48px;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
    gap: 10px;
}

.archive-right-con .group-member{
    padding: 5px;
}

.w-20rem {
    width: 20rem !important;
}

.chat-header i{
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.disable-sp {
    pointer-events: none;
    opacity: .3;
    border: none;
    background-color: rgba(111 , 120 , 144 , 0.6);
}

.disable-sp input {
    background-color: transparent;
    opacity: 1;
    border: none;
}

.center-column .fi {
    color: var(--icon-color);
}

/* replay */
.replay-con{
    display: flex;
    padding: 6px 8px;
    background-color: rgba(40,96,230,0.2);
    border-radius: 4px;
    width: fit-content;
    max-width: 100%;
    align-items: stretch;
    cursor: pointer;
}

.replay-line{
    width: 2px;
    border-radius: 6px;
    margin-left: 8px;
    border-right: 4px solid var(--primary);
}

.replay-preview{
    color:#5B5858;
    width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.replay-btn {
    all: unset;
    position: absolute;
    top: 12px;
    left: 2px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--white-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.replay-menu {
    box-shadow:0 2px 6px rgba(0,0,0,0.15);
    position: absolute;
    white-space: nowrap;
    right: 91%;
    top: 25px;
    color: var(--title-color);
    background-color: var(--white-color);
    border-radius: 6px;
    padding: 5px;
    transition: all 0.2s ease;
    text-align: right;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
}

.replay-menu div{
    padding: 3px 7px;
    cursor: pointer;
}

.replay-menu div:hover{
    background-color: rgba(40 , 96 ,230 , 0.1);
    border-radius: 4px;
    padding: 3px 7px;
}

.message-received .replay-btn{
    right:2px;
}

.message-received .replay-menu{
    right:-63px;
}

.message:hover .replay-btn , .message:hover .replay-menu{
    opacity: 1;
    visibility: visible;
}

.replay-btn i{
    line-height: 0;
}

.chat-input.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.reply-indicator {
    display: flex;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
}

.close-reply {
    float: left;
    cursor: pointer;
    margin-top: 7px;
    font-weight: bold;
}

.chat-input .replay-con{
    padding: 0;
    background-color: transparent;
    font-size: 8px;
}

.chat-input .reply-indicator{
    padding: 8px 15px;
    padding-bottom: 0;
}

/* chat - box */

.header-chat-login-container{
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 10.5%;
    background-color: #BECFEA;
}

.group-user-chat-con{
    padding: 10px 23px;
}

.group-chat-user img{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: -10px;
    border: 2px solid #BECFEA;
}

.group-chat-user {
    margin-bottom: 3px ;
    display: flex;
    align-items: center;
}

.header-chat-login-container .online-indicator{
    width: 7px;
    height: 7px;
    right: 6px;
    top: 25px;
}

.header-chat-container .online-indicator{
    right: 6px;
    top: 31px;
}


.form-control{
    background-color: var(--white-color);
    color: var(--title-color);
    border: 1px solid  rgba(51 , 51 , 51 , 0.4) !important;
}

.form-padding{
    margin-bottom:11px ;
}


.form-control{
    border: none;
}

.main-chat{
    height: 100svh;
    background-color: var(--white-color);
}

.main-chat .chat-input{
    /*height: 88px;*/
    border-radius: 18px;
}

.main-chat .input-wrapper{
    padding-bottom: 17px;
}

.icon-color {
    color: rgba(0 , 0 , 0 , 0.1);
}

.icon-color:hover {
    color: rgba(0 , 0 , 0 , 0.4);
}

.voice-recording{
    color: var(--primary) !important;
}

/*::placeholder {*/
/*    color: rgba(0 , 0 , 0 , 0.1) !important;*/
/*}*/

.header-chat-container .profile-container{
    padding: 11px 15px;
}

.blue{
    color: var(--primary);
}

.dot {
    position: relative;
    top: 0;
    display: inline-block;
    vertical-align: middle;
    margin: 0 5px;
}

#arrow-circle-up{
    font-size: 26px;
}

.header-chat-container .name{
    font-size: 12px;
}

.controls button{
    margin-right: 5px;
    background-color: var(--primary);
    border-radius: 50%;
    border: none;
    box-shadow: none;
    align-items: center;
    width: 38px;
    height: 38px;
}

/* audio styles */
.audio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.audio-detail{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.waveform {
    flex-grow: 1;
    min-width: 75%;
    max-width: 13rem;
    height: 50%;
    border-radius: 5px;
    background: transparent;
}


/* */
.form-check-input {
    background-color: transparent;
    border: 1px solid #888;
}

.form-check-input:checked{
    background-color: var(--primary);
    border: none;
}

.form-check-input,
.form-check-input:focus,
.form-check-input:checked{
    box-shadow: none;
}

.select-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-menu{
    position: absolute;
    top: 100% !important;
    left: 0 !important;
    transform: none !important; /* برای جلوگیری از محاسبه اشتباه */
}
.select-wrapper select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 5px 0;
    border-radius: 6px;
}

.select-wrapper select:focus {
    border-color: var(--primary);
    outline: none;
}

.select-wrapper i:not(.mirrored , .fi-sr-cross-small) {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* ticket */

.nav-item{
    position: relative;
}

.nav-item .nav-badge{
    top: 11px;
    left: 3px;
}

.disable-badge{
    position: absolute;
    transition: background-color 0.3s ease;
    font-size: 8.28px;
    margin-right: 2px;
    top: 11px;
    left: 3px;
    width: 11px;
    height: 11px;
    display: flex;
    justify-content: center;
    border-radius: 6px;
    background-color: var(--chat-preview) !important;
    color: var(--white-color);
}

.table-preview{
    text-align: right;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.align-right{
    text-align: right;
}

.table , .table-archive-custom{
    white-space: nowrap;
}

.table .status-gray ,.table-archive-custom .status-gray{
    width: auto;
    height: auto;
    background-color: rgba(111 , 120 , 144 , 0.2);
    color: var(--title-color);
    border-radius: 2px;
    padding: 4px 8px;
}

.table .status-orange , .table-archive-custom .status-orange{
    width: auto;
    height: auto;
    background-color: var(--ellipse-yellow-color);
    color: var(--white-color);
    border-radius: 2px;
    padding: 4px 8px;
}

.table .status-blue , .table-archive-custom .status-blue{
    width: auto;
    height: auto;
    background-color: var(--primary);
    color: var(--white-color);
    border-radius: 2px;
    padding: 4px 8px;
}

/*volume */

.volume-slider-container {
    position: absolute;
    background: #fff;
    border-radius: 4px;
    padding:2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    width: 15px;
    z-index: 1000;
}

#volumeBar {
    -webkit-appearance: none;
    appearance: none;
    width: 66px;
    height: 2px;
    background: transparent;
    cursor: pointer;
}

input[type="range"] {
    border: none;
    writing-mode: bt-lr; /* Makes it vertical */
    transform: rotate(-90deg); /* Vertical */
}


/* Thumb (handle) */
#volumeBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0; /* Hide thumb */
    height: 0;
    background: transparent;
    border: none;
}

#iAnswerThis, #intervening {
    position: absolute; /* یا fixed اگر میخوای روی کل صفحه باشه */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--secondary-light-2-op50); /* قرمز نیمه شفاف */
    backdrop-filter: blur(8px);       /* بلور */
    z-index: 999;                      /* در صورت نیاز برای روی دیگر عناصر */
}

#iAnswerThis a, #intervening a {
    color: var(--text-color);
    font-size: 24px;
    text-decoration: none;
    padding: 10px 20px;
    background: var(--gray-color);
    border-radius: 8px;
    transition: background 0.3s;
}

#iAnswerThis a:hover, #intervening a:hover {
    color: var(--white-color);
    background: var(--primary);
}

.cursor-pointer{
    cursor: pointer !important;
}

#forbiddenAnswer, #offlineVisitor, #closedChat{
    position: absolute; /* یا fixed اگر میخوای روی کل صفحه باشه */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--secondary-light-2-op50); /* قرمز نیمه شفاف */
    backdrop-filter: blur(8px);       /* بلور */
    z-index: 999;                      /* در صورت نیاز برای روی دیگر عناصر */
    cursor: not-allowed !important;
}

.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s;
}

.not-visible {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* جلوگیری از کلیک */
    transition: opacity 0.3s;
}

.visitor-chat-actions{
position: absolute;
width: calc(100% - 1rem);
bottom: 1px !important;
margin-left: 15px;
}

.visitor #messageInput{
margin-bottom: 18px;
}

.form-control:focus {
    outline: none;
    box-shadow: none;
    background-color: var(--white-color);
    border-color: var(--gray-color);
    color: var(--title-color);
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px var(--white-color) inset; /* پس‌زمینه سفید */
    -webkit-text-fill-color: #000;
    transition: background-color 5000s ease-in-out 0s;
}

#user-start-form button[type="submit"] {
    background-color: #123D79;
}


/* note card */

.card{
    cursor: pointer;
    font-size: 12px;
    background-color: var(--white-color);
    border: 1px solid var(--gray-color);
    border-radius: 8px;
    height: 200px;
    word-break: break-word;

}

.card .hover-box{
    padding: 0;
    left: 0;
    top: 50px;
    margin-left: 0;
}

.visitor-forms-item-con .card .hover-box , .visitor-add-forms-item-con .card .hover-box {
    top: 32px;
}

.card .hover-container{
    margin-left: 0;
}

.card-header .user-rol{
    margin-right: 5px;
}

.pad{
padding: 12px 16px;
}

.card:hover{
box-shadow: rgba(0, 0, 0, 0.15) 0 2px 8px;
}

.card-header{
    display: flex;
    justify-content: space-between;
    color: rgba(111 , 120 ,144,0.6);
    border-bottom: none !important;
    background-color: transparent;
}

.card-body{
padding-top: 0;
padding-bottom: 0;
max-height: 100%;
}

.card-body .card-title{
color: var(--title-color);
font-weight: bold;
}

.card-body .card-text{
    text-align: right;
color: var(--chat-preview);
height: auto;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
}

.tag{
    cursor: pointer;
    height: 22px;
    width: max-content;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    border: 1px solid var(--gray-color);
    background-color: rgba(111 , 120 ,144 ,0.1);
    color: var(--title-color);
    margin: 4px;
}
.tag span{
    width: max-content;
}

.tag i{
font-size: 12px;
color: var(--icon-color);
}

.red-circle{
background-color: var(--ellipse-red-color);
border-radius: 50px;
width: 8px;
height: 8px;
margin-right: 15px;
}

.circle-color{
    border-radius: 50px;
    width: 8px !important;
    height: 8px !important;
    margin-right: 15px;
}

.tag-container .circle-color {
    display: inline-table;
    margin-right: 0;
}

.blue-circle{
background-color: var(--primary);
border-radius: 50px;
width: 8px;
height: 8px;
margin-right: 15px;
}

.card-footer{
display: flex;
gap: 5px;
    height: 40px;
    background-color: transparent;
}

/* radio */

.custom-radio , .blocked-radio {
    appearance: none ;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* استایل برای حالت انتخاب شده */
.custom-radio:checked + .radio-label {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.blocked-select-style{
    background-color: var(--primary);
    color: white;
    border-color: #3b82f6;
}

.blocked-noSelect-style{
    background-color: white;
    color: var(--title-color);
    border: 1px solid var(--gray-color);
}

/* انیمیشن نرم */
.radio-label {
    transition: all 0.3s ease;
}

#filterForm .blocked-label{
    transition: all 0.3s ease;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 3px;
    margin-left: 4px;
    border-radius: 6px;
    height: 32px;
    padding-right: 12px;
    cursor: pointer;
    border: 1px solid var(--gray-color);
}

.radio-label:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.custom-radio:checked + .radio-label:hover {
    background-color: #2563eb;
}

/* KEYFRAMES */

@keyframes spin {
    from {
        transform: rotate(0);
    }
    to{
        transform: rotate(359deg);
    }
}

@keyframes spin3D {
    from {
        transform: rotate3d(.5,.5,.5, 360deg);
    }
    to{
        transform: rotate3d(0deg);
    }
}

@keyframes configure-clockwise {
    0% {
        transform: rotate(0);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes configure-xclockwise {
    0% {
        transform: rotate(45deg);
    }
    25% {
        transform: rotate(-45deg);
    }
    50% {
        transform: rotate(-135deg);
    }
    75% {
        transform: rotate(-225deg);
    }
    100% {
        transform: rotate(-315deg);
    }
}

@keyframes pulse {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: .25;
        transform: scale(.75);
    }
}
/* spinner */
.spinner-box {
    position: absolute;
    top: 50%;
    right: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    z-index: 100;
}


.circle-border {
    width: 30px;
    height: 30px;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgb(63,249,220);
    background: linear-gradient(0deg, rgba(40,96,230,0.5) 33%, rgba(640,96,230,1) 100%);
    animation: spin .8s linear 0s infinite;
}

.circle-core {
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    border-radius: 50%;
}

.none-display{
    display: none;
}

.read-note-time{
    color: rgba(111 , 120 , 144 , 0.6);
    font-size: 12px;
    text-align: left;
}

/* emoji */
.emoji-picker__emojis h2.emoji-picker__category-name{
    text-align: right !important;
}

.emoji-picker::-webkit-scrollbar {
    width: 8px;
}

.emoji-picker::-webkit-scrollbar-track {
    background: #fff;
}

.emoji-picker::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
    border: 2px solid #fff;
}

.emoji-picker {
    scrollbar-width: thin;
    scrollbar-color: #ccc #fff;
}

.emoji-picker__emoji {
    font-size: 20px !important;
    width: 24px !important;
    height: 24px !important;
}


/* response temp */

.dropdown-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    max-height: 200%;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dropdown-box.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 15px;
    top: 7px;
    z-index: 10;
    line-height: 0;
}

.dropdown-content {
    padding: 0;
    height: 100%;
    overflow-y: auto;
}

.text-row {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
    color: #495057;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.text-row:first-child {
    padding-left: 40px;
}

.text-row:last-child {
    border-bottom: none;
}

/* Custom Scrollbar */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.res-temp-public{
    color: var(--title-color);
}

.res-temp-private{
    color: rgba(51 , 51 , 51 ,0.7);
}

.audio-card{
    display: flex;
    min-width: 200px;
    direction: ltr;
}

.audio-card .waveform{
    margin-top: 9px;
}

.voice-time{
    position: absolute;
    bottom: 8px;
    font-size: 8px;
}

/* voice live lines */

#waveformVisualize {
    width: 100%;
    max-width: 95%;
    margin: auto;
    background: transparent;
    padding: 10px;
}

#record-btn.recording {
    color: green;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#chatList .status-icon{
    font-size: 8px;
}

#plaRecordeBtn i , #sendVoiceBtn i{
    color: var(--primary);
}

#imgOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 99999;

    display: none; /* مخفی اولیه */
    justify-content: center;
    align-items: center;

    cursor: zoom-out;
}

#imgOverlay.show {
    display: flex !important; /* وقتی کلاس show اضافه شد، flex میشه */
}

#imgOverlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.8);
    cursor: default;
}

#close-overly-img{
    position: absolute;
    top: 5%;
    left: 2%;
    color: var(--white-color);
}


.highlight-message {
    position: relative; /* برای اینکه pseudo-element روی پیام قرار بگیره */
}

.highlight-message::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--chat-preview);
    opacity: 0.4; /* شفافیت کاور */
    pointer-events: none; /* برای اینکه کاور کلیک‌ها را نگیرد */
    animation: highlightCover 2s ease;
}

@keyframes highlightCover {
    0% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
    }
}


.chat-content {
    position: relative; /* برای وابستگی دکمه */
}

#jumpDownMessage{
    position: sticky;
    bottom: 0;
    height: 30px;
}

#jumpDownMessage button {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 30px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#jumpDownMessage button:hover {
    transform: scale(1.05);
    background-color: #0056b3;
}

/* آیکن */
#jumpDownMessage .fi {
    font-size: 16px; /* یا اندازه آیکن دلخواه */
    color: var(--white-color);
}

/* setting */
.page-setting-container {
    min-height: calc(100vh - 6px);
    background: var(--white-color);
    border-radius: 12px;
    /*padding: 22px;*/
}

.setting-container{
    border-top: 1px solid var(--gray-color);
    height: 100dvh;
}

.setting-menu{
    color: var(--icon-color);
    padding: 0 !important;
    height: 100%;
    border-left: 1px solid var(--gray-color);
}

.setting-menu i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 21px;
    color: var(--white-color);
    background-color: rgba(111 , 120, 144 , 0.6);
}

.setting-menu li{
    align-content: center;
    align-items: center;
    cursor: pointer;
    list-style-type: none;
    height: 50px;
    padding: 10px 20px;
    overflow: hidden;
}

.setting-menu ul{
    width: 100%;
    overflow: hidden;
}

.overlay-wrapper {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
}


.selected{
    background-color: var(--primary);
    color: var(--white-color);
}

.selected i{
    color: var(--primary);
    background-color: var(--white-color);
}

.main-setting{
    color: var(--title-color);
    padding: 0;
}

.main-setting .setting-info{
    padding: 19px 24px;
}

.setting-user-profile{
    display: flex;
    flex-direction: row;
    background-color: var(--neutral-light-1);
    border-radius: 8px;
    border: 1px solid var(--gray-color);
}

.setting-user-profile img{
    width: 75px;
    height: 75px;
    border-radius: 50%;
}

.setting-user-profile-border{
    border: 4px solid #363636;
}

.setting-user-info{
    background-color: var(--neutral-light-1);
    border-radius: 8px;
    border: 1px solid var(--gray-color);
    margin-top: 6px;
    padding: 24px 14px;
}

.setting-user-info .col{
    display: flex;
    flex-direction: column;
    margin: 15px 0;
}

.overlay{
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: rgba(225, 225, 225, 0.53);
}

.overlay i{
    margin-top: -6px;
    color: var(--white-color);
    font-size: 18px;
}

.setting-user-profile .rounded-circle{
    margin: 8px ;
}

.setting-user-profile .modal-content{
    background-color: var(--white-color);
}

.setting-user-profile .fi-sr-cross-small{
    color: var(--icon-color);
}

.user-avatar{
    border-radius: 8px;
    padding: 23px 63px;
    border: 1px solid var(--gray-color);

}

.user-avatar img{
    margin: 5px;
    width: 51px;
    height: 51px;
}

.default-img-text{
    margin: 20px;
    display: flex;
    justify-content: center;
}

.default-img img{
    width: 51px !important;
    height: 51px !important;
}

.choose-avatar{
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px dashed var(--gray-color);
}

.choose-avatar i{
    color: var(--gray-color);
    margin-top: 5px;
    font-size: 24px;
}

.user-avtar-modal{
    margin: 14px;
    display: flex;
    justify-content: center;
}

.choose-avtar-img{
    border: none;
    box-shadow: none;
    padding: 6px 11px;
    border-radius: 4px;
    /*width: 28px;*/
    background-color: var(--gray-color);
    color: var(--icon-color);
}

.pad-22{
    padding: 22px;
}

.setting-messages , .setting-telegram , .setting-forms , .setting-info{
    height: 85dvh;
    overflow-y: auto;
    overflow-x: hidden;
    /*اسکرول نازک*/
    scrollbar-width: thin;
    scrollbar-color: #999 transparent;
}

.setting-messages-item{
    background-color: transparent;
    box-shadow: none;
    width: 100%;
    color: var(--icon-color);
    display: flex;
    justify-content: space-between;
    height: 70px;
    border: 1px solid var(--gray-color);
    padding: 24px;
}

.collapse-content{
    padding: 24px;
}

.ready-messages-con{
    padding: 12px;
}

.ready-messages-con .col-md-6{
    padding-right: 0;
    padding-bottom: 6px;
}

.ready-messages-con .card{
    border-radius: 12px 12px 0 12px;
    background-color: var(--message-sent-color);
    height: 140px;
}

.ready-messages-con .disable-card{
    background-color: var(--icon-color) !important;
}

.visitor-forms-item-con .card ,.visitor-add-forms-item-con .card{
    height: 140px;
    padding-right: 0;
}

/*.visitor-add-forms-item-con .card{*/
/*    height: max-content;*/
/*    min-height: 140px;*/
/*    padding-right: 0;*/
/*}*/
.active-new-message {
    opacity: 1 !important;
    visibility: visible !important;
}

.hover-new_message-box , .hover-add-feedback{
    right: 90%;
    top: 50px;
    width: 83px;
    font-size: 12px;
    position: absolute;
    transform: translateY(-50%);
    margin-left: 8px;
    background: white;
    border: 1px solid var(--gray-color) ;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    z-index: 10;
}
.hover-add-feedback{
    width: max-content !important;
}


.disable-card .card-body .card-text , .disable-card .card-header{
    border-bottom: none;
    color: var(--white-color);
}

.clock{
    height: 22px;
    font-size: 12px;
    background-color: var(--primary);
    color: var(--white-color);
    border-radius: 2px;
    padding: 3px;
}

.collapse-content .fi-sr-clock{
    height: 22px;
    padding: 4px;
    border-radius: 2px;
    color: var(--white-color);
    background-color: var(--primary);
}

.setting-messages-item i{
    font-size: 22px;
    margin-left: 6px;
    color: var(--gray-color);
}

/* switch */

.switch-container{
    /*flex: 1 1 calc(33.333% - 10px);*/
    height: 50px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    background-color: var(--gray-color);
    text-align: center;
    align-items: center;
    padding: 0 16px;
}

/* لیبل متن */
.switch-label {
    cursor: pointer;
}

/* خود سوییچ */
.switch {
    position: relative;
    display: inline-block;
    width:40px;
    height: 11.5px;
    cursor: pointer;
}

/* مخفی کردن چک‌باکس اصلی */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* استایل خود سوییچ */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--icon-color);
    transition: .4s;
    border-radius: 34px;
    border: none;
}

.slider:before {
    position: absolute;
    content: "";
    height: 9.5px;
    width: 20px;
    left: 1px;
    bottom: 1px;
    background-color: white;
    transition: .4s;
    border-radius: 34px;
}

/* وقتی فعال شد */
.switch input:checked + .slider {
    background-color: #54DD64;
}

.switch input:checked + .slider:before {
    transform: translateX(17px);
}

.ready-messages-con .card-footer{
    color: rgba(11 , 120 , 144, 0.6);
}

.modal-body img{
    width: 78px;
    height: 78px;
    margin-bottom: 16px;
}

.setting-telegram-first button{
    width: 147px;
}

.setting-telegram-first textarea{
    width: 70%;
    margin: 38px 15%;
    padding: 11px 28px;
    border-radius: 8px;
    border: 1px solid var(--gray-color);
    background-color: var(--neutral-light-1);
}


.connection-section , .error-section{
    margin: 38px 75px;
    display: flex;
    gap: 5px;
}

.connection-section img , .connection-section-text{
    background-color: rgba(212 , 228 , 255 ,0.5);
    padding: 3px;
    border-radius: 11px;
}

.error-section img , .error-section-text{
    background-color: rgba(225 , 82 , 90 ,0.2);
    padding: 3px;
    border-radius: 11px;
}

.connection-section-text  {
    padding: 16px 14px;
    width: 211px;
}

.error-section-text{
    padding: 16px 14px;
    width: 354px;
}

.pass-btn{
    margin-top: 38px;
    border: none;
    background-color: var(--green-chat-status);
    border-radius: 8px;
    color: var(--white-color);
    padding: 8px 66px;
    width: 342px !important;
}

.setting-telegram-second {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.setting-telegram-second textarea{
    padding: 11px 28px;
    border-radius: 8px;
    border: 1px solid var(--gray-color);
    background-color: var(--neutral-light-1);
}

.textarea-wrapper {
    position: relative;
    margin-top: 38px;
}

.textarea-wrapper i {
    font-size: 24px;
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    color: #666;
}

@media (max-width: 991px) {
    .main-setting {
        display: none; /* اول مخفی */
    }
    .main-setting.active {
        display: block;
    }
    .setting-menu.hidden {
        display: none;
    }
    .back-btn {
        display: block;
        margin-bottom: 10px;
    }
    .col-md-9 {
        width: 100%;
    }
}

.main-setting .back-btn{
    padding: 10px;
}

.red-text{
    color: var(--ellipse-red-color) !important;
}

.blue-text{
    color: var(--primary) !important;
}

.white-text{
    color: var(--white-color) !important;
}

.fa-star {
    font-size: 18px;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
}

.fa-star.checked {
    color: gold;
}

.opt-item{
    background-color: var(--neutral-light-1);
    margin: 3px;
    border: 1px solid var(--gray-color);
    border-radius: 6px;
    height: 32px;
    width: 100%;
    color: var(--title-color);
    display: flex;
    justify-content: space-between;
    padding: 5px;
    align-items: center;
}

.opt-item i{
    font-size: 8px;
    padding: 10px;
}
/* users */

.page-user-container{
    min-height: calc(100vh - 6px);
    background: var(--white-color);
    border-radius: 12px;
    padding: 22px;
}

.btn-exp{
    width: 90px;
    height: 28px;
}

.page-user-el-container , .page-tags-el-container{
    display: flex;
    gap: 13px;
}

.page-user-section{
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--gray-color);
    padding: 22px 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
}

.page-user-section .btn-exp {
    width: 110px;
    color: #7B838E;
}

.page-user-section .selected{
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--chat-preview);
}

aside{
    width: 25%;
    border-radius: 8px;
    border: 1px solid var(--gray-color);
    padding: 36px 30px;
    height: 100%;
}

.aside-img {
    width: 63px;
    height: 63px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.swiper {
    width: 100%;
    height: 100%;
    margin: 0 !important;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-slide .card{
    color: var(--white-color) !important;
    background: linear-gradient(to left, #4377F4, #2249A6);
}

.swiper-slide .card-body .card-title , .swiper-slide .card-body .card-text , .swiper-slide .card-header{
    color: var(--white-color);
}

.swiper-pagination-bullet-active{
    background: var(--white-color) !important;
}

.swiper-pagination-bullet{
    background: rgba(255 , 255 , 255 , 0.3) !important;
}

.user-info-detail {
    font-size: 12px;
    gap: 17px;
    margin: 34px 10px ;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.user-info-detail img{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
}

.info-row{
    display: flex;
    flex-direction: row;
    gap: 10px;
    border-bottom: 2px solid var(--gray-color);
}

.text-detail {
    color: var(--chat-preview);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.2;
    max-width: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-bottom: 3px;
}

.user-score{
    border-radius: 12px;
    color: var(--green-chat-status) ;
    height: 38px;
    width: 100%;
    align-content: center;
}

.chart-month-filter{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.chart-month-filter select , .user-charts .calender{
    width: 123px;
}

.chart-month-filter i{
    line-height: 0;
    font-size: 18px;
}

.shift-text{
    margin-top: 35px;
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 900;
    text-shadow: 0 0 0.5px currentColor;
}

.card-header-title{
    color: var(--title-color);
    font-size: 14px;
}

.progress, .progress-stacked{
    background-color: #D9D9D9;
    height: 26px;
}

.progress-bar{
    background-color: var(--primary);
    border-radius: 50px;
}

.commitment-text{
    display: flex;
    justify-content: center;
    font-weight: bold;
    margin-top: 23px;
    margin-bottom: 16px;
}

.chart-date{
    color: rgba(97,97,97,0.7);
    font-size: 14px;
}

.user-charts .card-body{
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-charts .card{
    height: 260px;
}

.user-opinion .card , .user-co-feedback .card{
    height: 138px !important;
}

.donut-multi {
    --size: 157px;
    --thickness: 30px;

    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.donut-multi::before {
    content: '';
    width: 50%;
    height: 50%;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.donut-text {
    position: absolute;
    font-size: 1.2em;
    font-weight: bold;
}

.user-opinion-bdg{
    margin: 0 10px;
    width: 33px;
    height: 16px;
    color: var(--white-color);
    font-size: 8px;
    padding: 3px;
    border-radius: 50px;
    display: inline-block;
    text-align: center;
    background-color: var(--green-chat-status);
}

.star-font-size{
    font-size: 12px;
}

.primary-text{
    color: var(--primary) !important;
}

.user-opinion .card , .user-co-feedback .card{
    margin-bottom: 6px;
}

.card-count{
    margin-top: 21px;
}

.co-opinion-bdg{
    margin: 0 10px;
    width: 33px;
    height: 16px;
    color: var(--white-color);
    font-size: 8px;
    padding: 3px;
    border-radius: 50px;
    display: inline-block;
    text-align: center;
    background-color: var(--ellipse-yellow-color);
}

.user-other-activity .card .hover-box{
    top: 25px;
}

.page-user-container .read-note-userName{
    margin-left: 5px;
}
.dropdown-toggle::after {
    content: none !important;
}

.user-charts .dropdown-menu {
    background-color: var(--neutral-light-1);
    border-radius: 4px;
    border: 1px solid var(--gray-color);
    z-index:100;
    position: absolute !important;
    width: 354px;
    height: auto;
    display: none;
    padding: 0;
    right: 0;
}

.page-user-section .dropdown-menu button{
    padding: 4px;
    background-color: transparent;
}

.shifts-dropdown-menu{
    display: flex;
    flex-direction: column;
    padding: 14px !important;
    width: 100% !important;
    left: 0;
}

.shifts-dropdown-menu input{
    background: transparent;
    width: 100%;
    margin: 6px 0;
}

.input-icon {
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-icon input {
    width: 100%;
    padding-right: 35px;
    box-sizing: border-box;
}

.input-icon i {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
    cursor: pointer;
}

.text-lines {
    width: 121px;
    margin-top: 0;
    color: rgba(97,97,97,0.7);
}
.text-line {
    display: flex;
    flex-direction: row;
}

.chart-color{
    width: 14px;
    height: 14px;
    background-color: #D9D9D9;
    border-radius: 2px;
    margin-right: 5px;
}

.button-container{
    display: flex;
    flex-direction: column;
    align-items: start;
}

.button-container button{
    margin: 2px;
}

.primary-border{
    border: 1px solid var(--primary);
    width: 90px;
}

.green-border{
    border: 1px solid var(--green-chat-status);
    width: 90px;
}

.orange-border{
    border: 1px solid var(--ellipse-yellow-color);
    width: 90px;
}

.donut-chart .button{
    font-size: 10px;
    width: 100%;
}

.report-nav-button {
    display: flex;
    flex-direction: row;
    gap: 2px;
}

.report-nav-button button{
    width: 106px !important;
}

.month-list button{
    width: 113px;
}

.notification-con , .note-con{
    border-radius: 16px;
    height: 100%;
    max-height: calc(100% - 12px);
    margin: 6px 73px;
    background-color: var(--neutral-light-1);
    width: 380px;
    position: absolute;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.note-con .items{
    font-size: 11px;
}

.note-con .hover-box{
    top: 100%;
}

.overlay-notification-con , .overlay-note-con{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2); /* سایه سیاه */
    z-index: 999;
    display: none;
}

.user-charts , .user-opinion , .user-co-feedback , .user-other-activity , .user-periodic-feedback , .user-my-performance{
    margin-bottom: 50px !important;
}


.notification-con-header , .note-con-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    background-color: var(--white-color);
    height: 50px;
    border-radius: 16px 16px 0 0 ;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-item , .note-item{
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.notification-item img , .note-item img{
    border-radius: 50%;
    width: 42px;
}

.message-count{
    color: var(--primary);
    margin-top: 12px;
    font-size: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
}

.circle{
    width: 7px;
    height: 7px;
    background-color: var(--primary);
    border-radius: 50%;
}

.notification-item-con , .note-item-con{
    border-radius: 12px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    height: auto;
    background-color: var(--white-color);
    margin: 8px 6px;
    direction: rtl;
}

.notification-item-con button , .note-item-con button{
    width: 70px !important;
}

.green-text{
    color: var(--green-chat-status);
}

.notification-con .items , .note-con .items{
    height: 94%;
    overflow-y: auto;
    /*اسکرول نازک*/
    scrollbar-width: thin;
    scrollbar-color: #999 transparent;
    direction: ltr;

}

.notification-item-con .badge-status , .note-item-con .badge-status{
    width: 43px;
    background-color: var(--primary);
    color: var(--white-color);
    margin-left: 5px;
}

/*.modal-backdrop{*/
/*    display: none;*/
/*    opacity: 0;*/
/*}*/

.user-main > div {
    display: none;
}

#spinner-user-box {
    display: block;
}


.reportForm .modal-content{
    background-color: var(--white-color) !important;
    color: var(--title-color);
}

.reportForm .modal-body {
    overflow: auto;                  /* لازم برای فعال شدن gutter */
    scrollbar-gutter: stable both-edges; /* دوطرفه برای حفظ تقارن */
    scrollbar-width: thin;           /* برای فایرفاکس */
    scrollbar-color: #999 transparent;
    padding: 0 30px;
}

.reportForm .modal-header{
    padding-bottom: 0;
}

.report-form-item{
    height: 100%;
    background-color: var(--neutral-light-1);
    padding: 17px;
    border-radius: 8px;
    margin-top: 16px;
}

.report-form-item .form-group{
    width: 100%;
}

.creat-group-user-con, .join-group-user-con{
    align-items: center;
    height: 48px;
    width: 100%;
}

.research-con , .tags-item{
    align-items: center;
    height: 48px;
    width: 100%;
    border-radius: 4px;
    margin: 4px 0;
    border: 1px solid var(--gray-color);
}
.creat-group-user-item{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 5px 14px;
    height: 100%;
    align-items: center;
    cursor: pointer;
}

.creat-group-user-con img, .join-group-user-con img{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-bottom: 0;
}

.creat-group-user-con .user-rol, .join-group-user-con .user-rol{
    height: 18px !important;
}

.green-back{
    background-color: var(--green-chat-status) !important;
}

#creat-group .modal-header{
    border-bottom: 1px solid var(--gray-color);
    padding-bottom: 0;
}

#creat-group .modal-footer{
    border-top: 1px solid var(--gray-color);
}

#creat-group .modal-body{
    scrollbar-width: thin;
    scrollbar-color: #A3AABB transparent;
    direction: ltr;
    padding: 0;
}


#creat-group button{
    width: auto !important;
}

.creat-group-user-con:hover , .research-con:hover{
    background-color: rgba(111 ,120 , 144 ,0.1) ;
}

.join-group-user-con:hover , .research-con:hover{
    background-color: rgba(111 ,120 , 144 ,0.1) ;
}

.member{
    position: absolute;
    left: 28px;
    top: 27px;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 3px;
}

.member i{
    font-size: 8px;
    line-height: 0;
}


.red-back{
    background-color: var(--ellipse-red-color);
}


.creat-group-user-con .member,
.creat-group-user-con .user-rol.green-back,
.join-group-user-con .member,
.join-group-user-con .user-rol.green-back {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.creat-group-user-con.active .member,
.creat-group-user-con.active .user-rol.green-back,
.join-group-user-con.active .member,
.join-group-user-con.active .user-rol.green-back {
    opacity: 1;
    visibility: visible;
}

.member .icon-cross {
    display: none;
}

.creat-group-user-con:hover .member.primary,
.join-group-user-con:hover .member.primary {
    background-color: var(--ellipse-red-color);
}

.creat-group-user-con:hover .member .icon-check,
.join-group-user-con:hover .member .icon-check {
    display: none;
}

.creat-group-user-con:hover .member .icon-cross,
.join-group-user-con:hover .member .icon-cross {
    display: inline;
}

#user-start-form .modal-dialog-scrollable .modal-content{
    overflow: auto;
    scrollbar-gutter: stable both-edges; /* دوطرفه برای حفظ تقارن */
    scrollbar-width: thin;           /* برای فایرفاکس */
    scrollbar-color: #999 transparent;
}

input[type="search"]::placeholder {
    color: rgba(111, 120, 144, 0.6);
    text-indent: 25px;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.6;
}

.disabled {
    opacity: 0.5;
    pointer-events: none; /* جلوی کلیک واقعی رو می‌گیره */
}

.form-control:disabled{
    border: 1px solid #e3e7f0;
    background-color: var(--white-color);
}

#helpMessageBox{
    min-height: 25%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #999 transparent;
    padding: 0 10px;
}


.text-indent{
    text-indent: 10px;
}

#researcher-conversation input{
    height: auto !important;
}

#PerformanceContinuum .modal-body{
    border-radius: 8px;
    border: 1px solid var(--gray-color);
}

.performance-continuum{
    padding: 10px 25px 25px 25px !important;
}

#PerformanceContinuum form {
    padding: 35px;
    padding-top: 0;
    overflow: auto;
}

#PerformanceContinuum form .switch-container{
    margin-bottom: 8px;
}

.highcharts-credits{
    display: none!important;
}

.text-option{
    padding: 5px;
    cursor: pointer;
    width: max-content;
    align-items: center;
    border-radius: 50px;
    border: 1px solid var(--gray-color);
    background-color: rgba(111 , 120 ,144 ,0.1);
    color: var(--title-color);
}

#report-form.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: default;
}

.form-disabled {
    pointer-events: none !important;
    opacity: 0.5;
}

.wrap-td{
    white-space: normal;
    overflow-wrap: anywhere;
}


.feedback-request-date{
    font-size: 10px;
    margin-left: 5px;
}

.icon-menue button{
    display: flex;
    justify-content: start;
    gap: 10px;
}

.breadcrumb-link{
    color: var(--icon-color);
}

#center-column .hover-container i {
    font-size: 23px;
}

.chat-main-hover-menu button{
    padding: 10px !important;
}
.pwt-btn-today {
    display: none !important;
}

.text-limit{
    max-width: 200px; /* عرض مورد نظر */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

#notificationBox{
    height: 88%;
    overflow: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

#notification-more-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 32px;
    width: 100%;
    border: 1px solid #e3e7f0;
    border-bottom: none;
    border-radius: 6px;
    background: #fff;
    color: #6b6b6b;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

/* پیش‌نمایش گزینه‌های انتخاب‌شده روی دکمه نوع مشکل */
.problem-type-button{
    justify-content: space-between;
    gap: 6px;
    padding: 0 8px;
    overflow: hidden;
}

.problem-type-button.has-selection{
    border-color: var(--primary);
    color: var(--chat-preview);
}

.problem-type-summary{
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.problem-type-button.has-selection .problem-type-summary{
    text-align: right;
}

.problem-type-count{
    flex-shrink: 0;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 10px;
    background-color: var(--primary);
    color: var(--white-color);
    font-size: 12px;
    text-align: center;
    padding: 0 6px;
}