/* Friend Select UI Improvements */
.friend-select-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding: 4px;
}

.friend-select-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background-color: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.friend-select-item:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-1px);
}

.friend-select-item.selected {
    background-color: rgba(88, 101, 242, 0.1);
    border-color: var(--brand);
}

.friend-select-content {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.friend-avatar-medium {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.friend-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.friend-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-normal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-email {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-checkbox-wrapper {
    display: flex;
    align-items: center;
}

.friend-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--brand);
}