.main-chatbot {
    width: 100%;
    height: calc(100vh - 65px);
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-bg);
}

.chatbot-container {
    display: flex;
    width: 100%;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.chatbot-top-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-bg);
    width: 100%;
    padding: 8px 16px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--color-border);
}

.chatbot-top-nav-left, .chatbot-top-nav-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.chatbot-sidebar-btn, .chatbot-option-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 0.3s ease;
}
.chatbot-option-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px;
    border-radius: 4px;
    background-color: transparent;
    transition: background-color 0.3s ease;
    pointer-events: none;
    cursor: not-allowed;
}
.chatbot-option-btn.enable {
    pointer-events: auto;
    cursor: pointer;
}
.chatbot-sidebar-btn img, .chatbot-option-btn img {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.chatbot-option-btn.active {
    background-color: var(--color-active-btn);
}

.chatbot-nav-option-panel {
    display: flex;
    position: absolute;
    top: 110%;
    left: 0;
    right: unset;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    width: 120px;
    box-shadow: 0 2px 4px rgba(10, 10, 10, 0.1);
    background-color: var(--color-bg);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}
.chatbot-nav-option-panel.show {
    opacity: 1;
    z-index: 1;
}

.chatbot-nav-option-panel-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.chatbot-nav-option-panel-item {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 8px;
    width: 100%;
    gap: 4px;
    box-sizing: border-box;
    background-color: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.chatbot-nav-option-panel-item:hover {
    background-color: var(--color-active-btn);
}
.chatbot-nav-option-panel-item img {
    width: 18px;
    height: 18px;
    pointer-events: none;
    user-select: none;
}
.chatbot-nav-option-panel-item p {
    font-size: clamp(10px, 1.4vw, 12px);
    font-weight: 650;
    color: var(--color-text);
    margin: 0;
    text-align: center;
}

.chatbot-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    right: -71%;
    top: 0;
    width: 70%;
    background-color: #fdfdfd;
    transition: right 0.4s ease;
    height: 100%;
    z-index: 101;
    box-shadow: 4px 0 16px rgba(10, 10, 10, 0.15);

}

.chatbot-sidebar.show {
    right: 0;
}

.chatbot-sidebar-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.chatbot-sidebar-header-close-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 16px 16px 0 16px;
    box-sizing: border-box;

}

.chatbot-sidebar-header-close {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.chatbot-sidebar-header-close:hover {
    background-color: var(--color-active-btn);
}
.chatbot-sidebar-header-close img{
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.chatbot-sidebar-header-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.chatbot-sidebar-header-menu-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.chatbot-new-chat {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    direction: rtl;
    margin: 10px 0 10px 0;
    width: calc(100% - 20px);
    padding: 10px;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.chatbot-new-chat:hover {
    background-color: var(--color-active-btn);
}

.chatbot-new-chat img {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    pointer-events: none;
}

.chatbot-new-chat p {
    margin: 0;
    color: var(--color-text);
    font-size: 12px;
    font-weight: bold;
}

.chatbot-sidebar-header-search {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.chatbot-sidebar-search-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 13px;
    height: 13px;
    padding: 8px;
    border-radius: 50%;
    left: 25px;
    top: calc(50% - 15px);
    cursor: pointer;
    user-select: auto;
}
.chatbot-sidebar-search-btn img {
    width: 100%;
    height: 100%;
    user-select: none;
    pointer-events: none;
}

.chatbot-sidebar-header-search input {
    width: 100%;
    height: 31px;
    padding: 5px 10px 5px 45px;
    font-family: "PeydaWebVF", serif;
    font-size: 13px;
    direction: rtl;
    border-radius: 10px;
    background-color: #F5F5F5;
    border: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.chatbot-sidebar-header-search input:focus {
    outline: none;
    background-color: #f1f1f1;
}

.chatbot-sidebar-chat-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-top: 10px;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
    direction: ltr;
    border-top: 1px solid #efefef;
    position: relative;
}

.chatbot-sidebar-chat-item {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    width: 98%;
    box-sizing: border-box;
    border: 1px solid transparent;
    padding: 10px 10px;
    border-radius: 10px;
    color: var(--color-text);
    cursor: pointer;
    font-weight: 600;
    background-color: transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.chatbot-sidebar-chat-item.active {
    background-color: rgba(194, 165, 51, 0.3);
    font-weight: 750;
}
.chatbot-sidebar-chat-item:hover {
    background-color: rgba(194, 165, 51, 0.3);
}
.chatbot-sidebar-chat-item.active .chatbot-sidebar-chat-item-img {
    opacity: 1;
}
.chatbot-sidebar-chat-item:hover .chatbot-sidebar-chat-item-img {
    opacity: 1;
}

.chatbot-sidebar-chat-item p {
    margin: 0;
    font-size: clamp(12px, 1.6vw, 13px);
    color: var(--color-text);
    text-align: right;
    max-width: calc(100% - 18px);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.chatbot-sidebar-chat-item-img {
    display: flex;
    opacity: 0;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.chat-window-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;

    width: 100%;
    min-height: 100%;
    height: auto;      /* به جای height: 100% */
    overflow: hidden;      /* کلا اسکرول را ببند */

    overscroll-behavior: none; /* کمک به حذف رفتار bounce (در مرورگرهای پشتیبان) */
    -webkit-overflow-scrolling: auto;
}

.welcome-message {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: absolute;
    direction: rtl;
    top: 38%;
    opacity: 0;
    z-index: -1000;
    align-self: center;
    height: 40px;
    width: 100%;
    transition: opacity 0.3s ease;
}

.welcome-message.show {
    opacity: 1;
    z-index: 1;
}

.welcome-message p{
    margin: 0;
    text-align: center;
    font-size: clamp(13px, 2.2vw, 18px);
    font-weight: 500;
    color: var(--color-text);
}

#typewriter {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    direction: rtl;
}

.cursor {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    background-color: #595959;
    border-radius: 10px;
    transform-origin: center center;
       animation: blink 2s infinite;
}

@keyframes blink {
    0% { transform: scale(0.92); opacity: 0.9}
    51% { transform: scale(1.02); opacity: 1}
    100% { transform: scale(0.92); opacity: 0.9}
}

.user-chat-input-container-body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% - 1px);
    position: absolute;
    top: 45%;
    padding: 0 0 16px 0;
    background-color: #FFFFFF;
}

.user-chat-input-container {
    position: relative;
    width: 94%;
    max-width: 765px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: top 0.5s ease, bottom 0.5s ease;
}

.user-chat-input-container-body.active {
    top: unset;
    bottom: 0px;
}

.send-chat-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 7px;
    bottom: 7px;
    padding: 8px;
    background-color: var(--color-bg);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, bottom 0.3s ease;
}

.send-chat-btn img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.send-chat-btn:hover {
    background-color: var(--color-bg);
}

.user-chat-input-container textarea {
    width: 100%;
    resize: none;
    height: 36px;
    border-radius: 25px;
    border: 1px solid #e8e8e8;
    direction: rtl;
    font-family: "PeydaWebVF", serif;
    font-size: clamp(13px, 1.6vw, 15px);
    padding: 10px 50px 3px 45px;
    background-color: #F5F5F5;
    color: #222222;
    max-height: 150px;
    overflow-y: hidden;
    box-shadow: 0 2px 2px rgba(10, 10, 10, 0.05);
    transition: background-color 0.5s ease, border-color 0.5s ease, height 0.3s ease-in;
}

.user-chat-input-container textarea:focus {
    outline: none;
    background-color: #f1f1f1;
}

.chat-input-options {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 7px;
    bottom: 7px;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.3s ease, bottom 0.3s ease;
}
.chat-input-options.active {
    background-color: var(--color-bg);
}

.chat-input-options img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.chat-input-options-dropdown {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;position: absolute;
    top: calc(100% + 0px);
    left: 0;
    opacity: 0;
    pointer-events: none;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 8px;
    width: 130px;
    box-shadow: 2px 4px 8px rgba(10, 10, 10, 0.1);
    transition: opacity 0.3s ease;
}
.chat-input-options-dropdown.show {
    opacity: 1;
    pointer-events: auto;
}

.chat-input-option-item {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding: 8px 8px;
    width: 100%;
    border-radius: 10px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}
.chat-input-option-item img {
    width: 15px;
    height: 15px;
}
.chat-input-option-item p {
    font-size: clamp(12px, 1.4vw, 12px);
    font-weight: 550;
    color: var(--color-text);
    margin: 0;
    text-align: center;
}
.chat-input-option-item:hover {
    background-color: var(--color-active-btn);
}

.chat-window-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow-y: hidden;
    position: relative;
}

.chat-window {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    height: max-content;
    padding: 16px 36px 200px 36px;
    box-sizing: border-box;
}

.chat-row-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 70%;
    max-width: 712px;
    padding: 0px 0px 27px 0px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.chat-message {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 15px;
    width: 100%;
    gap: 16px;
    padding: 12px;
    align-self: center;
    direction: rtl;
    user-select: auto;
    box-sizing: border-box;

}

.chat-message.user {
    direction: rtl;
    max-width: 100%;
    width: max-content;
    align-self: flex-end;
    background: rgba(245, 245, 245, 0.9);
    backdrop-filter: blur(40px);
    border-radius: 14px;
    /*border: 1px solid #e8e8e8;*/
    /*box-shadow: 0 1px 1px rgba(10, 10, 10, 0.08);*/
}

.chat-message.bot {
    direction: rtl;
    width: 100%;
    align-self: center;
    justify-content: flex-start;
    text-align: right;
}

.message-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
}

.message-container p{
    margin: 0;
    word-wrap: break-word;
    text-align: justify;
    font-size: clamp(13px, 1.4vw, 14px);
    font-weight: 500;
    color: var(--color-text);
    max-width: 100%;
}

.message-container p strong{
    word-wrap: break-word;
    text-align: justify;
    font-size: clamp(15px, 1.4vw, 16px);
    font-weight: 700;
    color: var(--color-text);
    max-width: 100%;
}

.message-container ul{
    margin: 0 0 16px 0;
    word-wrap: break-word;
    text-align: justify;
    font-size: clamp(13px, 1.4vw, 14px);
    font-weight: 600;
    color: var(--color-text);
    max-width: 100%;
}

.message-footer {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    align-items: center;
    padding: 8px 0 0 0;
    border-top: 1px solid var(--color-border);
}

.copy-msg-tooltip, .reference-msg-tooltip {
    position: absolute;
    top: 110%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-bg-soft);
    border-radius: 10px;
    width: max-content;
    padding: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(10, 10, 10, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.copy-msg-tooltip {
    right: calc(-50% - 5px);
}
.reference-msg-tooltip {
    left: calc(-50% - 25px);
}

.message-footer-btn:hover + .copy-msg-tooltip , .message-footer-btn:hover + .reference-msg-tooltip{
    opacity: 1;
}

.copy-msg-tooltip p, .reference-msg-tooltip p {
    margin: 0;
    text-align: center;
    font-size: clamp(11px, 1.4vw, 12px);
    font-weight: normal;
    color: var(--color-text);
}

.copy-text-message-btn, .reference-text-message-btn {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
}
.reference-text-message-btn.hide {
    display: none;
}

.message-footer-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.3s ease;
}
.message-footer-btn:hover {
    background-color: var(--color-active-btn);
}

.copy-text-message-btn img, .reference-text-message-btn img {
    width: 18px;
    height: 18px;
}

.chatbot-session-option-btn {
    display: flex;
    pointer-events: auto;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.chatbot-session-options-menu {
    position: absolute;
    top: 100%;
    left: 10px;
    width: max-content;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 6px;
    display: none;
    z-index: 102;
    box-shadow: 0 0 8px rgba(10, 10, 10, 0.15);
}

.chatbot-session-options-menu.show {
    display: block;
}

.delete-session-btn {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 8px;
}
.delete-session-btn img {
    width: 18px;
    height: 18px;
    margin-left: 8px;
}
.delete-session-btn p {
    margin: 0;
    color: #5b5b5b;
    font-size: 12px;
    font-weight: bold;
}

.used-doc-modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-bg);
    border-radius: 12px;
    width: 310px;
    height: 400px;
    position: fixed;
    left: calc(50% - 155px);
    top: calc(50% - 200px);
    z-index: -1;
    opacity: 0;
    padding: 0 8px 8px 8px;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.5s ease;
}
.used-doc-modal.show {
    opacity: 1;
    transform: scale(1);
    z-index: 1002;
}

.used-doc-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
}

.used-doc-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
}
.used-doc-header p {
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 550;
    color: var(--color-text);
    margin: 0;
    text-align: right;
}

.close-used-doc-container-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    border-radius: 5px;
    background-color: transparent;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
.close-used-doc-container-btn:hover {
    background-color: var(--color-active-btn);
}
.close-used-doc-container-btn img {
    pointer-events: none;
    user-select: none;
}

.used-doc-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 8px;
    border-radius: 10px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--color-bg-soft);
}

.used-doc-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    width: 100%;
    gap: 8px;
    box-sizing: border-box;
    border-radius: 12px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}
.used-doc-item:hover {
    background-color: var(--color-active-btn);
}

.used-doc-title {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    max-width: calc(100% - 106px);
}
.used-doc-title img {
    pointer-events: none;
    user-select: none;
}
.used-doc-title p {
    font-size: clamp(10px, 1.4vw, 12px);
    font-weight: 650;
    color: var(--color-text);
    margin: 0;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-used-doc-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-primary);
    border-radius: 8px;
    padding: 8px 0px;
    width: 90px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.read-used-doc-btn:hover {
    background-color: var(--color-primary-hover);
}
.read-used-doc-btn p {
    font-size: clamp(10px, 1.4vw, 12px);
    font-weight: 650;
    color: var(--color-text);
    margin: 0;
    text-align: center;
}


.retry-btn-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    gap: 8px;
}
.retry-error {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.retry-error p {
    font-size: clamp(10px, 1.4vw, 12px);
    font-weight: 650;
    color: var(--color-text);
    margin: 0;
    text-align: center;
}
.retry-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background-color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 999px;
}
.retry-btn p {
    font-size: clamp(10px, 1.4vw, 12px);
    font-weight: 650;
    color: var(--color-text);
    margin: 0;
    text-align: center;
}
.retry-btn img {
    width: 16px;
    height: 16px;
    pointer-events: none;
    user-select: none;
}


.chat-session-option-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 110%;
    left: 0;
    border-radius: 12px;
    background-color: var(--color-bg);
    box-shadow: 0px 2px 4px rgba(10, 10, 10, 0.1);
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
}
.chat-session-option-panel.show {
    opacity: 1;
}

.chat-session-option-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.edit-session-item, .delete-session-item {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    background-color: transparent;
    cursor: pointer;
    width: 100%;
    padding: 8px;
    gap: 4px;
    box-sizing: border-box;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.edit-session-item:hover, .delete-session-item:hover {
    background-color: var(--color-active-btn);
}
.edit-session-item p, .delete-session-item p {
    font-size: clamp(10px, 1.4vw, 12px);
    font-weight: 650;
    color: var(--color-text);
    margin: 0;
    text-align: center;
}

.edit-session-item img, .delete-session-item img {
    width: 18px;
    height: 18px;
    pointer-events: none;
    user-select: none;
}


.delete-session-modal, .rename-session-modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-radius: 12px 12px 0 0;
    background-color: var(--color-bg);
    position: fixed;
    left: 0;
    z-index: 1002;
    bottom: -120%;
    height: max-content;
    transition: bottom 0.3s ease;
}
.delete-session-modal.show, .rename-session-modal.show {
    bottom: 0;
}

.delete-session-modal-header, .rename-session-modal-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
}

.delete-session-modal-header-title, .rename-session-modal-header-title {
    display: flex;
    justify-content: center;
    align-items: center;
}
.delete-session-modal-header-title p, .rename-session-modal-header-title p {
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 550;
    color: var(--color-text);
    margin: 0;
    text-align: right;
}

.close-delete-session-modal, .close-rename-session-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}
.close-delete-session-modal img, .close-rename-session-modal img {
    pointer-events: none;
    user-select: none;
}
.close-delete-session-modal:hover, .close-rename-session-modal:hover {
    background-color: var(--color-active-btn);
}

.delete-session-modal-body, .rename-session-modal-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px;
    gap: 16px;
    box-sizing: border-box;
}

.delete-session-modal-message-container, .rename-session-modal-message-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0px;
    width: 100%;
}
.delete-session-modal-message-container img {
    width: 45px;
    height: 45px;
    pointer-events: none;
    user-select: none;
}
.delete-session-modal-message-container p {
    font-size: clamp(13px, 1.4vw, 17px);
    color: var(--color-text);
    font-weight: 550;
    margin: 0;
    text-align: center;
}
.rename-session-modal-message-container input {
    width: 100%;
    max-width: 300px;
    height: 31px;
    padding: 5px 10px 5px 45px;
    font-family: "PeydaWebVF", serif;
    font-size: 13px;
    direction: rtl;
    border-radius: 10px;
    background-color: #F5F5F5;
    border: 1px solid var(--color-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.rename-session-modal-message-container input:focus {
    outline: none;
}

.delete-session-modal-btn-container, .rename-session-modal-btn-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 32px;
    align-items: center;
    width: 100%;
}

.delete-session-modal-btn, .cancel-delete-session-modal-btn, .rename-session-modal-btn, .cancel-rename-session-modal-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background-color: var(--color-danger);
    color: #FFFFFF;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.delete-session-modal-btn p, .cancel-delete-session-modal-btn p, .rename-session-modal-btn p, .cancel-rename-session-modal-btn p {
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 600;
    margin: 0;
    text-align: center;
}
.cancel-delete-session-modal-btn {
    background-color: var(--color-bg-soft);
    color: var(--color-text);
}
.rename-session-modal-btn {
    background-color: var(--color-primary);
}



.loading-spinner-chat-list {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #f9f9f9;
}
.spinner-chat-list {
    width: 30px;
    height: 30px;
    border: 4px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner-chat-windows {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    background-color: var(--color-bg);
    transition: opacity 0.3s ease;
}
.loading-spinner-chat-windows.show {
    opacity: 1;
}
.spinner-chat-windows {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner-send-chat {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: absolute;
    border-radius: 50%;
    background-color: #f9f9f9;
}
.spinner-send-chat {
    width: 22px;
    height: 22px;
    border: 3px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.sp-loader-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.sp-loader-message {
    display: flex;
    justify-content: center;
    align-items: center;
}
.sp-loader-message p {
    color: var(--color-text);
    font-weight: 750;
    font-size: clamp(13px, 1.2wv, 14px);
    margin: 0;
    text-align: center;
}

.sp-loading-chatbot-container {
    --uib-size: 60px;
    --uib-color: var(--color-text);
    --uib-speed: 5s;
    --uib-dot-size: calc(var(--uib-size) * 0.18);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: var(--uib-size);
    height: var(--uib-dot-size);
}

.sp-loading-chatbot-dot {
    position: absolute;
    top: calc(50% - var(--uib-dot-size) / 2);
    left: calc(0px - var(--uib-dot-size) / 2);
    display: block;
    height: var(--uib-dot-size);
    width: var(--uib-dot-size);
    border-radius: 50%;
    background-color: var(--uib-color);
    animation: stream var(--uib-speed) linear infinite both;
    transition: background-color 0.3s ease;
}

.sp-loading-chatbot-dot:nth-child(2) {
    animation-delay: calc(var(--uib-speed) * -0.2);
}

.sp-loading-chatbot-dot:nth-child(3) {
    animation-delay: calc(var(--uib-speed) * -0.4);
}

.sp-loading-chatbot-dot:nth-child(4) {
    animation-delay: calc(var(--uib-speed) * -0.6);
}

.sp-loading-chatbot-dot:nth-child(5) {
    animation-delay: calc(var(--uib-speed) * -0.8);
}

@keyframes stream {
    0%,
    100% {
        transform: translateX(0) scale(0);
    }

    50% {
        transform: translateX(calc(var(--uib-size) * 0.5)) scale(1);
    }

    99.999% {
        transform: translateX(calc(var(--uib-size))) scale(0);
    }
}


@media (min-width: 992px) {
    .chatbot-sidebar {
        right: 0;
        top: 45px;
        width: 20%;
        height: calc(100% - 45px);
        box-shadow: 0px 0 0px rgba(10, 10, 10, 0.0);
        /*border-left: 1px solid var(--color-border);*/
    }
    .chat-window-body {
        width: calc(80% - 1px) !important;
        align-self: flex-end;
    }
    .chatbot-sidebar-btn {
        display: none;
    }
    .chatbot-top-nav {
        justify-content: flex-end;
    }
    .chatbot-sidebar-header-close {
        display: none;
    }
}




/* Mobile */
@media (max-width: 991.999px) {
    .main-chatbot {
        height: calc(100vh - 133px);
    }
    .user-chat-input-container-body {
        width: 100%;
    }
    .chat-row-container {
        width: 100%;
    }
    .chatbot-nav-option-panel {
        right: 0;
        left: unset;
    }
}

/*.sag {*/

/*    position: absolute;*/
/*    width: 408px;*/
/*    height: 408px;*/
/*    left: 104px;*/
/*    top: 463px;*/
/*    */
/*    background: linear-gradient(0deg, #0F0F0F, #0F0F0F), linear-gradient(0deg, rgba(51, 51, 51, 0.45), rgba(51, 51, 51, 0.45)), rgba(153, 153, 153, 0.3);*/
/*    background-blend-mode: plus-lighter, luminosity, darken;*/
/*    box-shadow: inset 2.70199px 2.70199px 0px -1.35099px #333333, inset -2.70199px -2.70199px 0px -1.35099px #262626, inset 2.70199px 2.70199px 1.35099px -2.70199px #FFFFFF, inset -2.70199px -2.70199px 1.35099px -2.70199px #FFFFFF, inset 0px 0px 8.10596px rgba(255, 255, 255, 0.5), inset 0px 0px 43.2318px #F2F2F2;*/
/*    border-radius: 91.8676px;*/
/*}*/
