/* /Components/Pages/Chats/ChatSideMenu.razor.rz.scp.css */
.side-menu > .side-menu-inner[b-jeeryobzuc] {
    width: 350px;
}
/* سایدبار لیست گفتگوها */
.chat-sidebar[b-jeeryobzuc] {
    position: relative;
    width: 100%;
    flex: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
    font-family: var(--fontFamily);
}

    .chat-sidebar *[b-jeeryobzuc] {
        font-family: var(--fontFamily);
    }

    .sidebar-header[b-jeeryobzuc] {
        padding: 18px 16px 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .sidebar-header h1[b-jeeryobzuc] {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
    }

.new-chat-button[b-jeeryobzuc] {
    position: absolute;
    inset-inline-start: 20px;
    cursor: pointer;
    bottom: 42px;
    width: 52px;
    border: none;
    height: 52px;
    border-radius: 16px;
    background: var(--bg-primary-primary);
    color: var(--white);
    box-shadow: 0 8px 20px var(--bg-shadow), 0 0 0 1px var(--elevation-border);
    z-index: 2;
    transition: background linear .2s, transform linear .2s;
    right: 20px;
    left: auto;
}

[dir="rtl"] .new-chat-button[b-jeeryobzuc] {
    right: auto;
    left: 20px;
}

    .new-chat-button .ti[b-jeeryobzuc] {
        font-size: 24px;
    }

    .new-chat-button:hover[b-jeeryobzuc] {
        background: var(--bg-primary-secondary);
        color: var(--white);
        transform: translateY(-2px);
    }

    .new-chat-button:active[b-jeeryobzuc] {
        background: var(--bg-primary-tertiary);
        transform: scale(0.94);
    }


.filter-tabs[b-jeeryobzuc] {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    padding-top: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .filter-tabs[b-jeeryobzuc]::-webkit-scrollbar {
        display: none;
    }

.tab-pill[b-jeeryobzuc] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    height: 26px;
    padding: 0 8px;
    border-radius: 99px;
    background: var(--surface-primary);
    color: var(--text-secondary);
    border: 1px solid var(--elevation-border);
    white-space: nowrap;
    transition: 0.15s;
    cursor: pointer;
    transition: all linear .2s;
}

    .tab-pill .ti[b-jeeryobzuc] {
        font-size: 16px;
    }

    .tab-pill:hover[b-jeeryobzuc] {
        background: var(--surface-tertiary);
        color: var(--text-primary);        
    }

    .tab-pill.active[b-jeeryobzuc] {
        background: var(--bg-primary-primary);
        border-color: var(--bg-primary-primary);
        color: var(--white);
        cursor: default;
    }

.channel-list[b-jeeryobzuc] {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px 88px;
    margin: 0;
    list-style: none;
}

    .channel-list li[b-jeeryobzuc] {
        background: none;
        background-color: transparent;
    }

.channel-item[b-jeeryobzuc] {
    color: var(--text-primary);
    display: flex;
    gap: 12px;
    width: 100%;
    padding: 10px 8px;
    border: none;
    border-radius: 8px;
    text-align: start;
    background: none;
    transition: background 0.15s;
    cursor: pointer;
}

    .channel-item:hover[b-jeeryobzuc] {
        background: var(--card-bg-hover);
    }

    .channel-item.active[b-jeeryobzuc] {
        background: var(--surface-tertiary);
        cursor: default;
    }

.avatar[b-jeeryobzuc] {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    font-weight: 700;
    position: relative;
    background: var(--surface-tertiary);
    color: var(--text-primary);
    font-size: 17px;
}

    .avatar .ti[b-jeeryobzuc] {
        font-size: 22px;
    }

    .avatar.square[b-jeeryobzuc] {
        border-radius: 14px;
    }

    .avatar.circle[b-jeeryobzuc] {
        border-radius: 50%;
    }

    .avatar.project[b-jeeryobzuc] {
        background: var(--surface-blue);
        color: var(--text-blue);
    }

    .avatar.team[b-jeeryobzuc] {
        background: var(--surface-success);
        color: var(--text-success);
    }

    .avatar.organization[b-jeeryobzuc] {
        background: color-mix(in srgb, var(--purple-500) 22%, var(--surface-secondary));
        color: var(--purple-500);
    }

    .avatar .status-dot[b-jeeryobzuc] {
        position: absolute;
        bottom: -1px;
        inset-inline-start: -1px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--bg-success-primary);
        border: 2px solid var(--surface-secondary);
    }

.channel-item.active .status-dot[b-jeeryobzuc] {
    border-color: var(--surface-tertiary);
}

.channel-info[b-jeeryobzuc] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
}

.channel-row-top[b-jeeryobzuc], .channel-row-bottom[b-jeeryobzuc] {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.channel-title[b-jeeryobzuc] {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-time[b-jeeryobzuc] {
    font-size: 12px;
    color: var(--text-tertiary);
    flex: none;
}

.channel-preview[b-jeeryobzuc] {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .channel-preview strong[b-jeeryobzuc] {
        font-weight: 500;
        color: var(--text-primary);
    }

.channel-badges[b-jeeryobzuc] {
    display: flex;
    gap: 5px;
    align-items: center;
    flex: none;
}

    .channel-badges .pin-icon[b-jeeryobzuc] {
        font-size: 15px;
        color: var(--text-tertiary);
    }

.badge[b-jeeryobzuc] {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 99px;
    background: var(--bg-primary-primary);
    color: var(--white);
    font-size: 12px;
    display: grid;
    place-items: center;
    font-weight: 600;
}

    .badge.mention-badge[b-jeeryobzuc] {
        width: 20px;
        padding: 0;
        background: var(--bg-primary-tertiary);
    }

.empty-state[b-jeeryobzuc] {
    padding: 40px 16px;
    text-align: center;
    color: var(--text-tertiary);
}
