/* ConversationItem 主题变量 */
html {
    --conversationitem-hover-bg: rgba(0, 0, 0, 0.05);
    --conversationitem-title-color: rgba(0, 0, 0, 1);
    --conversationitem-icon-bg: rgba(255, 255, 255, 0.7);
    --conversationitem-icon-border-color: rgba(0, 0, 0, 0.1);
    --conversationitem-time-color: rgba(0, 0, 0, 0.5);
    --conversationitem-description-color: rgba(0, 0, 0, 0.7);
    --conversationitem-option-hover-bg: rgba(0, 0, 0, 0.08);
}

html.dark {
    --conversationitem-hover-bg: rgba(255, 255, 255, 0.1);
    --conversationitem-title-color: rgba(255, 255, 255, 1);
    --conversationitem-icon-bg: rgba(255, 255, 255, 0.1);
    --conversationitem-icon-border-color: rgba(255, 255, 255, 0.1);
    --conversationitem-time-color: rgba(255, 255, 255, 0.5);
    --conversationitem-description-color: rgba(255, 255, 255, 0.7);
    --conversationitem-option-hover-bg: rgba(255, 255, 255, 0.1);
}

.conversation-item__wrapper {
    display: flex;
    align-items: flex-start;
}

.conversation-item__wrapper:hover {
    border-radius: 6px;
    background-color: var(--conversationitem-hover-bg);
    cursor: pointer;
    user-select: none;
}

.conversation-item {
    position: relative;
    padding: 10px;
    /* border-bottom: 1px solid #f0f0f0; */
    transition: background-color 0.2s;
    flex: 1;
    min-width: 0;
}

/* .conversation-item:hover {
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.05);
} */

.conversation-item__header {
    display: flex;
    align-items: center;
    height: 20px;
    min-width: 0;
}

.conversation-item__checkbox {
    margin-top: 10px;
    margin-left: 10px;
    flex-shrink: 0;
}

.conversation-item__icon {
    width: 24px;
    height: 24px;
    background-color: var(--conversationitem-icon-bg);
    border: 1px solid var(--conversationitem-icon-border-color);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 5px;
}

.conversation-item__icon .svg-icon {
    color: var(--conversationitem-title-color);
}

.conversation-item__icon img {
    width: 24px;
    height: 24px;
}

.conversation-item__title {
    flex: 1;
    min-width: 0;
    font-size: var(--uosai-font-size-base);
    line-height: var(--uosai-line-height-extra-tight);
    font-weight: 400;
    color: var(--conversationitem-title-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-item__right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.conversation-item__time {
    font-size: var(--uosai-font-size-3xs);
    color: var(--conversationitem-time-color);
    font-weight: 400;
}

.conversation-item__option-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.conversation-item__option-button:hover {
    background-color: var(--conversationitem-option-hover-bg);
}

.conversation-item__description {
    margin-top: 6px;
    /* margin-left: 10px; */
    font-size: var(--uosai-font-size-xs);
    font-weight: 400;
    color: var(--conversationitem-description-color);
    line-height: var(--uosai-line-height-relaxed);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.conversation-item__highlight {
    color: var(--system-active-color);
}
