/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    width: fit-content;
    /* 根据内容宽度自适应 */
    /* width: 200px; */
}

.user-profile:hover {
    background-color: #f8fafc;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #e5e7eb;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* align-items: center; */
    position: relative;
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    /* 控制溢出宽度 */
}

.user-role {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}
